public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/chrony/files: chronyd.rc
@ 2010-03-23  9:09 Torsten Veller (tove)
  0 siblings, 0 replies; 2+ messages in thread
From: Torsten Veller (tove) @ 2010-03-23  9:09 UTC (permalink / raw
  To: gentoo-commits

tove        10/03/23 09:09:50

  Modified:             chronyd.rc
  Log:
  Anchor the config options check in the init script (#310773)
  (Portage version: 2.2_rc67/cvs/Linux x86_64)

Revision  Changes    Path
1.10                 net-misc/chrony/files/chronyd.rc

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/chrony/files/chronyd.rc?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/chrony/files/chronyd.rc?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/chrony/files/chronyd.rc?r1=1.9&r2=1.10

Index: chronyd.rc
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/chrony/files/chronyd.rc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- chronyd.rc	16 Nov 2009 14:28:14 -0000	1.9
+++ chronyd.rc	23 Mar 2010 09:09:50 -0000	1.10
@@ -1,7 +1,7 @@
 #!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/files/chronyd.rc,v 1.9 2009/11/16 14:28:14 cla Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/chrony/files/chronyd.rc,v 1.10 2010/03/23 09:09:50 tove Exp $
 
 depend() {
 	need net
@@ -30,16 +30,20 @@
 		# know if it might be handy
 		PIDFILE=`awk '/^ *pidfile/{print $2}' "${CFGFILE}"`
 	fi
+	return 0
+}
 
+setxtrarg() {
 	if [ -c /dev/rtc ]; then
-		grep -q 'rtcfile' "${CFGFILE}" && ARGS="${ARGS} -s"
+		grep -q '^rtcfile' "${CFGFILE}" && ARGS="${ARGS} -s"
 	fi
-	grep -q 'dumponexit' "${CFGFILE}" && ARGS="${ARGS} -r"
+	grep -q '^dumponexit$' "${CFGFILE}" && ARGS="${ARGS} -r"
 	return 0
 }
 
 start() {
 	checkconfig || return $?
+	setxtrarg
 
 	[ -n "${PIDFILE}" ] || PIDFILE=/var/run/chronyd.pid
 






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-misc/chrony/files: chronyd.rc
@ 2013-08-28 12:25 Jeroen Roovers (jer)
  0 siblings, 0 replies; 2+ messages in thread
From: Jeroen Roovers (jer) @ 2013-08-28 12:25 UTC (permalink / raw
  To: gentoo-commits

jer         13/08/28 12:25:07

  Removed:              chronyd.rc
  Log:
  Old.
  
  (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key A792A613)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-28 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-23  9:09 [gentoo-commits] gentoo-x86 commit in net-misc/chrony/files: chronyd.rc Torsten Veller (tove)
  -- strict thread matches above, loose matches on Subject: below --
2013-08-28 12:25 Jeroen Roovers (jer)

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