Date: Fri, 11 Sep 2015 16:12:28 +0100 (BST) From: Kevin Golding <kpg@caomhin.org> To: Michelle Sullivan <michelle@sorbs.net> Cc: freebsd-ports@freebsd.org Subject: Re: rc script problem - pidfile not being recognised Message-ID: <692733240.176.1441984346441.JavaMail.Kevin@Thoth> In-Reply-To: <55F2EC32.3090602@sorbs.net>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- > From: "Michelle Sullivan" <michelle@sorbs.net> > To: "Kevin Golding" <kpg@caomhin.org> > Cc: freebsd-ports@freebsd.org > Sent: Friday, 11 September, 2015 3:58:58 PM > Subject: Re: rc script problem - pidfile not being recognised > > Kevin Golding wrote: > > It dopes create a pidfile so I have the following line in my > > script: > > > > pidfile="/var/run/${name}.pid" > > > > Alas... > > > > # service fuglu stop > > fuglu not running? (check /var/run/fuglu.pid). > > # cat /var/run/fuglu.pid > > 24013 > > > > I don't get it. It is the right process ID: > > > > # ps -waux | grep fuglu > > nobody 24013 0.0 0.5 139532 37372 - I 3:57PM > > 0:01.03 /usr/local/bin/python2.7 /usr/local/bin/fuglu > > --pidfile /var/r > > root 26179 0.0 0.0 18824 1976 0 S+ 4:30PM > > 0:00.00 grep fuglu > > > > I'd take a bet as it's running as a user the process is being called > to > shutdown and there is some permissions issue on the PID file (I see > the > same thing with bucardo when running bucardo as non root) I did wonder about that but the pidfile is world readable: -rw-r--r-- 1 root wheel 6 Sep 11 15:57 /var/run/fuglu.pid And certainly the process's user can read the file # sudo -u nobody cat /var/run/fuglu.pid 24013 Which isn't to say that isn't the problem, just that if it is I think I'm even more confused.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?692733240.176.1441984346441.JavaMail.Kevin>