[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#19466: cron: init script error



On 11 Mar 1998, Joey Hess wrote:

> 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
> "#".

Yes, I saw this, too.

Please also add 'echo "."' lines to the restart section and the
reload|force-reload section. They are missing in the file below.

And please also change the usage message to something like this:

echo "Usage: /etc/init.d/cron start|stop|restart|reload|force-reload"

Remco

<snip>
> --- 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: