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

start-stop-daemon --exec on debian-live



Hi

I noticed that on several services start-stop-daemon will fail to
stop / restart because it looks for a specific binary.

For instance, I'm playing with monit. The init.d script uses
start-stop-daemon --exec for both the start and the stop targets.

In the stop target this badly fails, as the executable of the process 
is called /filesystem.squashfs/usr/sbin/monit rather than
/usr/sbin/monit that the init.d script expects.

Short of patching individual scripts to rely on the PID file alone, 
do you have any smarter suggestion?

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



Reply to: