anacron: init.d: do not require clock/hostname #546138
authorMike Frysinger <vapier@gentoo.org>
Mon, 10 Aug 2015 07:29:49 +0000 (03:29 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 10 Aug 2015 07:59:47 +0000 (03:59 -0400)
If the system initializes these settings via other means (such as the
kernel handling it), there's no need to force them to start up.  Change
the "need" to "use" so that things work correctly.

sys-process/anacron/files/anacron.rc6 [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 4e4a0a7..0baa217
@@ -1,15 +1,14 @@
 #!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 depend() {
-       use logger
-       need clock hostname 
+       use clock hostname logger
 }
 
 start() {
        ebegin "Running anacron"
-       /usr/sbin/anacron -s >>/var/log/cron.log 2>&1
+       anacron -s >>/var/log/cron.log 2>&1
        eend $?
 }