IL Ka wrote:
> >
> > pid files can easily get out of sync with the expected process (example:
> > daemon starts, writes a pid file, later it crashes. at any point between
> > the crash and you trying to stop/restart the daemon another process
> > could be assigned the same pid, then the wrong
>
> pid files can easily get out of sync with the expected process (example:
> daemon starts, writes a pid file, later it crashes. at any point between
> the crash and you trying to stop/restart the daemon another process
> could be assigned the same pid, then the wrong process is signalled).
>
On 2018/06/02 23:07, Il Ka wrote:
> rc.subr(8) uses pgrep(1)/pkill(1) to control daemons
> using their command lines.
This is intentional.
pid files can easily get out of sync with the expected process (example:
daemon starts, writes a pid file, later it crashes. at any point between
the crash
Hello,
rc.subr(8) uses pgrep(1)/pkill(1) to control daemons
using their command lines.
But in some cases it is more convenient to use pidfiles.
Many services do so, inluding apache and postgresql.
But not all services do have special tool for that.
I run gunicorn (python wsgi server) that is