new version of rc.darkice
This commit is contained in:
parent
84760a8f0c
commit
704124e400
|
@ -1,12 +1,13 @@
|
|||
#!/bin/sh
|
||||
# generic init file for darkice
|
||||
#
|
||||
# Author:
|
||||
# Niels Dettenbach - nd@syndicat.com - 2009-11-05
|
||||
# Last Change: 2010-12-21
|
||||
#
|
||||
# License:
|
||||
# GPLv3 (2009)
|
||||
#
|
||||
# thanks to:
|
||||
# - Roland Whitehead
|
||||
# GPL (2009)
|
||||
# 0.7
|
||||
|
||||
## settings ##
|
||||
# check your paths!
|
||||
|
@ -42,9 +43,9 @@ case $1 in
|
|||
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
|
||||
|
@ -73,7 +74,7 @@ case $1 in
|
|||
kill -s TERM $PID 2> /dev/null
|
||||
echo
|
||||
sleep $restart_delay
|
||||
rm $pidfile
|
||||
rm -f $pidfile
|
||||
echo " stopped"
|
||||
else
|
||||
echo "$progname not running"
|
||||
|
|
Loading…
Reference in New Issue