public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler (polynomial-c)" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/uptimed/files: uptimed.init
Date: Tue,  4 Feb 2014 09:06:02 +0000 (UTC)	[thread overview]
Message-ID: <20140204090602.7D21D2004C@flycatcher.gentoo.org> (raw)

polynomial-c    14/02/04 09:06:02

  Modified:             uptimed.init
  Log:
  Fixed pidfile location and removed obsolete code in init script
  
  (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)

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

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

Index: uptimed.init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-misc/uptimed/files/uptimed.init,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- uptimed.init	14 Jan 2013 18:08:59 -0000	1.8
+++ uptimed.init	4 Feb 2014 09:06:02 -0000	1.9
@@ -1,26 +1,14 @@
 #!/sbin/runscript
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 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.8 2013/01/14 18:08:59 polynomial-c Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/uptimed/files/uptimed.init,v 1.9 2014/02/04 09:06:02 polynomial-c Exp $
 
 description="uptimed - a daemon to record uptime records"
-pidfile="/var/run/uptimed/uptimed.pid"
+pidfile="/run/uptimed/uptimed.pid"
 command="/usr/sbin/uptimed"
 command_args="-p ${pidfile}"
 start_stop_daemon_args="-u uptimed"
 
 start_pre() {
 	checkpath -d -o uptimed ${pidfile%/*}
-
-	# Initialize bootid for uptimed < 0.3.17
-	local udver=$(${command} -v | head -n 1 | sed 's@.*[[:space:]]\([[:digit:]\.]\+\)[[:space:]].*@\1@;s@\.@@g')
-	local bootid="/var/spool/uptimed/bootid"
-	if [ "${udver}" -lt "0317" ] ; then
-		${command} -b || eend $?
-		checkpath -f -o uptimed ${bootid}
-	else
-		if [ -f "${bootid}" ] ; then
-			rm ${bootid}
-		fi
-	fi
 }





             reply	other threads:[~2014-02-04  9:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-04  9:06 Lars Wendler (polynomial-c) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-12-25 20:05 [gentoo-commits] gentoo-x86 commit in app-misc/uptimed/files: uptimed.init Lars Wendler (polynomial-c)
2014-03-03 13:55 Lars Wendler (polynomial-c)
2013-01-14 18:08 Lars Wendler (polynomial-c)
2012-12-24 10:07 Lars Wendler (polynomial-c)
2012-12-24  9:27 Lars Wendler (polynomial-c)
2011-08-07 13:22 Raul Porcel (armin76)
2009-04-14 17:13 Raul Porcel (armin76)
2009-02-20 20:03 Raul Porcel (armin76)
2009-02-19 19:33 Raul Porcel (armin76)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140204090602.7D21D2004C@flycatcher.gentoo.org \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox