I would like to use start-stop-daemon for a daemon, which has a control
program. On stop, I have to call it with the argument stop. It's ok if I
do it alone, but I must be sure it's really stopped. For this I would
like to use start-stop-daemon --stop with --retry, but on --stop, it's
also sends a signal, which kills the process without let it any chance
to clean up even in normal cases. How can I achieve this with
start-stop-daeamon or is it impossible?