On Wed, Apr 08, 2009 at 07:44:07PM +0100, Gary Law wrote: > 2009/4/6 Marcin Owsiany <mar...@owsiany.pl> > > > > > On Mon, Apr 06, 2009 at 10:50:17AM +0100, Gary Law wrote: > > > + start-stop-daemon --stop --quiet --pidfile /var/run/puppet/puppetd.pid > > [...] > > > g...@dv01:~ $ ps -ef | grep [p]uppet > > > root 6774 1 0 Apr04 ? 00:06:49 ruby /usr/sbin/puppetd -w > > 5 > > > > Try: > > start-stop-daemon --stop --pidfile /var/run/puppet/puppetd.pid --verbose > > > > dv01:~# ps -ef | grep [p]uppet > root 28518 1 0 18:52 ? 00:00:16 ruby /usr/sbin/puppetd -w 5 > dv01:~# cat /var/puppet/run/puppetd.pid > 28518dv01:~# > dv01:~# start-stop-daemon --stop --pidfile /var/run/puppet/puppetd.pid > --verbose > No process in pidfile `/var/run/puppet/puppetd.pid' found running; none > killed. > dv01:~# cat /var/puppet/run/puppetd.pid > 28518dv01:~# > dv01:~# kill $(!cat) > kill $(cat /var/puppet/run/puppetd.pid ) > dv01:~# ps -ef | grep [p]uppet > dv01:~# > > so it seems the start-stop-daemon doesn't like the pid file for reasons I > cannot explain. Missing trailing CR?
A quick look at the source code shows it does not pay attention to line termination at all. However looking at the utils/start-stop-daemon.c:check(pid_t pid) function, it seems that just --pidfile should be enough, unless this is debian on something else than Linux, HP-UX, HURD, FreeBSD or NetBSD? (As in that case the function would simply be a no-op). Please try with --test, it might print more useful debugging info. -- Marcin Owsiany <mar...@owsiany.pl> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail." -- Unknown --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---