Has anyone had any success using start-stop-daemon and mono-service2 together? I\'ve been fighting this for a few days now and have gotten various bits to work, but have ha
do_stop()
{
test -f $PIDFILE && kill `cat $PIDFILE` && return 2
start-stop-daemon --stop --quiet --verbose --oknodo --retry=0/30/KILL/5\
--exec mono-service2
[ "$?" = 2 ] && return 2
# Many daemons don't delete their pidfiles when they exit.
rm -f $PIDFILE
return "$RETVAL"
}
So it works, I think it just because you can't stop a process by the command "start-stop-daemon" i'm learning to use mono now,your invitation help me very much.thank you. my english is poor,forgive my half-baked english.