Bug#19466: cron: init script error
Package: cron
Version: 3.0pl1-43
root@kite:/usr/src/linux>/etc/init.d/cron stop
/etc/init.d/cron: line 20: syntax error near unexpected token `;'
/etc/init.d/cron: line 20: ` ; cron reloads automatically'
root@kite:/usr/src/linux>/etc/init.d/cron start
/etc/init.d/cron: line 20: syntax error near unexpected token `;'
/etc/init.d/cron: line 20: ` ; cron reloads automatically'
It turns out you have a line prefaced by ";", that should be prefaced by
"#".
-- System Information
Debian Release: 2.0 (unstable)
Kernel Version: Linux kite 2.1.89 #1 Mon Mar 9 13:45:26 PST 1998 i586 unknown
Versions of the packages cron depends on:
libc6 Version: 2.0.7pre1-3
bsdutils Version: 4.1
debianutils Version: 1.7
--- Begin /etc/checksecurity.conf (modified conffile)
CS_NFSAFS='(nfs|afs) \(.*(nosuid|noexec).*nodev.*\)'
CS_TYPES=' type (proc|msdos|iso9660|ncpfs|smbfs|'$CS_NFSAFS')'
CS_DEVS='^/dev/fd'
CS_DIRS='on /mnt|on /kite|on /box'
CHECKSECURITY_FILTER="$CS_TYPES|$CS_DEVS|$CS_DIRS"
unset CS_NFSAFS CS_TYPES CS_DIRS
--- End /etc/checksecurity.conf
--- Begin /etc/crontab (modified conffile)
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 0 * * * root nice run-parts /etc/cron.daily
21 0 * * 7 root nice run-parts /etc/cron.weekly
31 0 1 * * root nice run-parts /etc/cron.monthly
0-55/5 * * * * root /usr/bin/mrtg /etc/mrtg.cfg
--- End /etc/crontab
--- Begin /etc/init.d/cron (modified conffile)
test -f /usr/sbin/cron || exit 0
case "$1" in
start) echo -n "Starting periodic command scheduler: cron"
start-stop-daemon --start --quiet --exec /usr/sbin/cron
echo "."
;;
stop) echo -n "Stopping periodic command scheduler: cron"
start-stop-daemon --stop --quiet --exec /usr/sbin/cron
echo "."
;;
restart) echo -n "Re-starting periodic command scheduler: cron"
start-stop-daemon --stop --quiet --exec /usr/sbin/cron
start-stop-daemon --start --quiet --exec /usr/sbin/cron
;;
reload|force-reload) echo -n "Re-loading configuration files for periodic command scheduler: cron"
# cron reloads automatically
;;
*) echo "Usage: /etc/init.d/cron start|stop"; exit 1
;;
esac
exit 0
--- End /etc/init.d/cron
--
E-mail the word "unsubscribe" to debian-devel-request@lists.debian.org
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble? E-mail to listmaster@debian.org .
Reply to: