public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-misc/uptimed/files: uptimed.init uptimed
@ 2012-12-19  0:31 Lars Wendler (polynomial-c)
  0 siblings, 0 replies; only message in thread
From: Lars Wendler (polynomial-c) @ 2012-12-19  0:31 UTC (permalink / raw
  To: gentoo-commits

polynomial-c    12/12/19 00:31:19

  Modified:             uptimed.init
  Removed:              uptimed
  Log:
  Revision bump so stable users get a working init script again (bug #445398). Version bump
  
  (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 0x981CA6FC)

Revision  Changes    Path
1.5                  app-misc/uptimed/files/uptimed.init

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/uptimed/files/uptimed.init?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/uptimed/files/uptimed.init?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/uptimed/files/uptimed.init?r1=1.4&r2=1.5

Index: uptimed.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-misc/uptimed/files/uptimed.init,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- uptimed.init	7 Aug 2011 13:22:39 -0000	1.4
+++ uptimed.init	19 Dec 2012 00:31:18 -0000	1.5
@@ -1,24 +1,18 @@
 #!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/files/uptimed.init,v 1.4 2011/08/07 13:22:39 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/files/uptimed.init,v 1.5 2012/12/19 00:31:18 polynomial-c Exp $
 
-# Copyright 2002-2011 Sean Russell
+pidfile="/var/run/uptimed/uptimed.pid"
+command="/usr/sbin/uptimed"
+command_args="-p ${pidfile}"
+start_stop_daemon_args="--user uptimed"
 
-PIDFILE="/var/run/uptimed/uptimed.pid"
+start_pre() {
+	checkpath -d -o uptimed ${pidfile%/*}
 
-start() {
-	ebegin "Starting uptimed"
-	start-stop-daemon --quiet --start --user uptimed \
-		--exec /usr/sbin/uptimed --pidfile "${PIDFILE}" -- -b
-	start-stop-daemon --quiet --start --user uptimed \
-		--exec /usr/sbin/uptimed --pidfile "${PIDFILE}" \
-		-- -p ${PIDFILE}
-	eend $?
-}
-
-stop() {
-	ebegin "Stopping uptimed"
-	start-stop-daemon --quiet --stop --user uptimed --pidfile "${PIDFILE}"
-	eend $?
+	# Initialize bootid
+	start-stop-daemon --start ${start_stop_daemon_args} --exec ${command} \
+		-- -b \
+			|| eend $?
 }





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-19  0:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19  0:31 [gentoo-commits] gentoo-x86 commit in app-misc/uptimed/files: uptimed.init uptimed Lars Wendler (polynomial-c)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox