Re: unbound.conf.5.in: remove reference to default pidfile

2020-11-11 Thread Jason McIntyre
On Sat, Nov 07, 2020 at 12:48:11PM +0100, Martin Vahlensieck wrote: > Hi > > Unbound on OpenBSD does not have a pidfile, so remove the reference in > the manual. As the variable is empty, it also incorrectly formats the > description as italic. > > Best, > > Ma

unbound.conf.5.in: remove reference to default pidfile

2020-11-07 Thread Martin Vahlensieck
Hi Unbound on OpenBSD does not have a pidfile, so remove the reference in the manual. As the variable is empty, it also incorrectly formats the description as italic. Best, Martin Index: unbound.conf.5.in === RCS file: /cvs/src

Re: [patch] rc.subr support for pidfile-based daemons

2018-06-02 Thread Theo de Raadt
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 pro

Re: [patch] rc.subr support for pidfile-based daemons

2018-06-02 Thread IL Ka
> > 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). > Wo

Re: [patch] rc.subr support for pidfile-based daemons

2018-06-02 Thread Stuart Henderson
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 an

[patch] rc.subr support for pidfile-based daemons

2018-06-02 Thread Il Ka
able to produce pidfile, but lacks of tool to control it. So, I added ``daemon_pidfile`` variable to rc.subr(8). If this variable is not set then everything works as usual. But if you set it then system uses it to check (ps -p), stop and reload (kill) daemon. I then simply tell gunicorn to write

Re: pidfile()

2015-10-28 Thread Jason McIntyre
On Tue, Oct 27, 2015 at 02:28:51PM +0100, Jan Stary wrote: > > usr.sbin/rbootd: rbootd.c > > usr.sbin/rarpd : rarpd.c > > usr.sbin/mrouted: main.c > > usr.bin/usbhidaction: usbhidaction.c > > usr.sbin/wsmoused: wsmoused.8 wsmoused.c wsmoused.h > > usr.sbin/ypserv/ypserv

Re: pidfile()

2015-10-27 Thread Todd C. Miller
d cron have already had the pidfile removed. Below is a diff for lpd. - todd Index: usr.sbin/lpr/SMM.doc/7.t === RCS file: /cvs/src/usr.sbin/lpr/SMM.doc/7.t,v retrieving revision 1.5 diff -u -p -u -r1.5 7.t --- usr.sbin/lpr/SMM.doc/7.t

Re: pidfile()

2015-10-27 Thread Jan Stary
> usr.sbin/rbootd: rbootd.c > usr.sbin/rarpd : rarpd.c > usr.sbin/mrouted: main.c > usr.bin/usbhidaction: usbhidaction.c > usr.sbin/wsmoused: wsmoused.8 wsmoused.c wsmoused.h > usr.sbin/ypserv/ypserv: Makefile ypserv.c > usr.sbin/pppd : main.c Belo

Re: route6d: another pidfile() removal

2015-10-25 Thread Sebastian Benoit
ok! J??r??mie Courr??ges-Anglas(j...@wxcvbn.org) on 2015.10.25 23:15:12 +0100: > > Following the recent discussions, here's another pidfile(3) removal. > route6d(8) doesn't document it. > > ok? > > Index: Makefile >

route6d: another pidfile() removal

2015-10-25 Thread Jérémie Courrèges-Anglas
Following the recent discussions, here's another pidfile(3) removal. route6d(8) doesn't document it. ok? Index: Makefile === RCS file: /cvs/src/usr.sbin/route6d/Makefile,v retrieving revision 1.7 diff -u -p -r1.

Re: rtadvd: pledge() and pidfile() are in a boat

2015-10-25 Thread Jérémie Courrèges-Anglas
L_FORWARDING in base, so IMO it doesn't call for a change > in kern_pledge.c. There are other exotic setsockopt calls that would > probably prevent early pledge calls. > > Another minor issue is that pidfile(3) installs an atexit(3) handler > that calls unlink(2). It makes little

rtadvd: pledge() and pidfile() are in a boat

2015-10-25 Thread Jérémie Courrèges-Anglas
.c. There are other exotic setsockopt calls that would probably prevent early pledge calls. Another minor issue is that pidfile(3) installs an atexit(3) handler that calls unlink(2). It makes little sense to have rtadvd slaughtered when it tries to unlink /var/run/rtadvd.pid, especially as that

Re: ifstated pidfile

2010-06-07 Thread Marco Pfatschbacher
On Mon, Jun 07, 2010 at 09:33:34AM +0200, Michael Lechtermann wrote: > Hi, > > >> Well, that makes sense. But what about not showing the arguments > >> ifstated was started with? Any reason to wipe them? It would really help > >> to identify the correct process when those are showed. > >> > >> Wha

Re: ifstated pidfile

2010-06-07 Thread Michael Lechtermann
Hi, >> Well, that makes sense. But what about not showing the arguments >> ifstated was started with? Any reason to wipe them? It would really help >> to identify the correct process when those are showed. >> >> What I mean is: >> setproctitle(NULL); > > I have asked a two developers why that was

Re: ifstated pidfile

2010-06-05 Thread Theo de Raadt
> Am 05.06.2010 18:51, schrieb Theo de Raadt: > >> since it is possible to supply a config file to ifstated and run it > >> multiple times with different configs, I thought it nice for it to also > >> write a pidfile _and_ actually show in ps which arguments it g

Re: ifstated pidfile

2010-06-05 Thread Michael Lechtermann
Am 05.06.2010 18:51, schrieb Theo de Raadt: >> since it is possible to supply a config file to ifstated and run it >> multiple times with different configs, I thought it nice for it to also >> write a pidfile _and_ actually show in ps which arguments it got. > > Whe

Re: ifstated pidfile

2010-06-05 Thread Theo de Raadt
> since it is possible to supply a config file to ifstated and run it > multiple times with different configs, I thought it nice for it to also > write a pidfile _and_ actually show in ps which arguments it got. When possible, we don't use pidfiles. You can't do anything with

ifstated pidfile

2010-06-05 Thread Michael Lechtermann
Hi, since it is possible to supply a config file to ifstated and run it multiple times with different configs, I thought it nice for it to also write a pidfile _and_ actually show in ps which arguments it got. Below is a diff that does just that. The pidfile part is stolen from isakmpd