Change in init script

This commit is contained in:
Marcela Mašláňová 2007-07-11 15:12:06 +00:00
commit b052d01a75
2 changed files with 10 additions and 5 deletions

View file

@ -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)

View file

@ -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 <mmaslano@redhat.com> 2.3-48
- changes in init script (not build)
* Tue Feb 6 2007 Marcela Maslanova <mmaslano@redhat.com> 2.3-47
- thanks for review from Jef Spaleta
- rhbz#225247, rhbz#211309