From b052d01a753bf58ab54cdfc2a80453a183a41666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcela=20Ma=C5=A1l=C3=A1=C5=88ov=C3=A1?= Date: Wed, 11 Jul 2007 15:12:06 +0000 Subject: [PATCH] Change in init script --- anacron.init | 11 ++++++----- anacron.spec | 4 ++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/anacron.init b/anacron.init index 4d20e76..ee009d8 100755 --- a/anacron.init +++ b/anacron.init @@ -19,7 +19,8 @@ LOCKFILE=/var/lock/subsys/$prog # The anacron binary now creates its own /var/run/anacron.pid pid file # and /var/lock/subsys lock files, and removes them automatically at exit, # so at least there will be no more "anacron is dead but subsys locked" -# messages. +# messages. The pid and lock is existing only, when anacron is running +# (only when cron wake anacron up). # start() { @@ -30,23 +31,20 @@ start() { failure; fi; echo - return $RETVAL } stop() { echo -n $"Stopping $prog: " if [ -f $PIDFILE ]; then - killproc anacron + killproc $ANACRON RETVAL=$? if [ $RETVAL -ne 0 ]; then failure; fi; else - RETVAL=1 failure; fi echo - return $RETVAL } case "$1" in @@ -59,7 +57,10 @@ case "$1" in ;; status) + ## anacron's status is always stopped, because anacron sleep, until + ## cron wake him status anacron + RETVAL=1 ;; restart) diff --git a/anacron.spec b/anacron.spec index c477197..b811282 100644 --- a/anacron.spec +++ b/anacron.spec @@ -19,6 +19,7 @@ Patch6: anacron-2.3-hostname.patch #Patch8: anacron-2.3-memoryleak.patch Patch9: anacron-2.3-pic.patch Patch10: anacron-2.3-memleaking.patch + Requires: /bin/sh Requires: crontabs Requires: initscripts @@ -134,6 +135,9 @@ fi %attr(755,root,root) %dir /etc/cron.weekly/0anacron %changelog +* Wed Jul 11 2007 Marcela Maslanova 2.3-48 +- changes in init script (not build) + * Tue Feb 6 2007 Marcela Maslanova 2.3-47 - thanks for review from Jef Spaleta - rhbz#225247, rhbz#211309