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

Re: Your mon / s-p-u upload



On Mon, Jan 24, 2011 at 22:56:08 +0100, Dario Minnucci wrote:

> +case "$1" in
> +  start)
> +	if [ -f $PIDFILE ] ; then
> +		echo "$NAME daemon is already running."	
> +	else
> +		start_deamon
> +	fi
> +	;;

Dario, this is still not correct.  Existence of the pid file alone is
not proof that the daemon is running.  You should remove this check, and
let start-stop-daemon handle this.

Cheers,
Julien


Reply to: