--- rc.darkice 2010-12-21 11:48:03.000000000 +0100 +++ rc.darkice.new 2010-12-21 11:57:01.000000000 +0100 @@ -2,8 +2,12 @@ # generic init file for darkice # # Niels Dettenbach - nd@syndicat.com - 2009-11-05 +# Last Change: 2010-12-21 +# +# thanks to: +# - Roland Whitehead # GPL (2009) -# 0.6 +# 0.7 ## settings ## # check your paths! @@ -39,9 +43,9 @@ if ( [ "$progname" == "$running" ] ); then echo "$progname is still running" else - echo "$progname seems crashed - PID does not match the deamon" + echo "$progname seems crashed - PID ($PID) does not match the deamon" echo "removing stale PID File $pidfile" - rm $pidfile + rm -f $pidfile $0 start exit $? fi @@ -70,7 +74,7 @@ kill -s TERM $PID 2> /dev/null echo sleep $restart_delay - rm $pidfile + rm -f $pidfile echo " stopped" else echo "$progname not running"