Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-29 Thread Ingo Schwarze
Hi Antoine, Antoine Jacoutot wrote on Thu, Jan 28, 2016 at 11:52:48PM +0100: > Please give me a couple of days and I'll send a diff. Sure, no problem, diff retracted. Yours, Ingo

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Ingo Schwarze
Hi, Antoine Jacoutot wrote on Thu, Jan 28, 2016 at 10:41:52AM +0100: > As mentioned in another thread already: > # ln -s /etc/rc.d/mydaemon /etc/rc.d/mydaemon2 > Then use mydaemon2_flags ... in rc.conf.local. This seems to be a recurring user question. Do you consider this addition useful? I

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Stuart Henderson
On 2016-01-28, Ingo Schwarze wrote: > I'd love to make the example more specific and document an actual > use case that frequently occurs in practice, but even though many > have said that such cases do occur, i can't think of any. For > example, for httpd(8), it looks like all

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Antoine Jacoutot
> # ln -s httpd httpd2 > > That's a terrible name. The next admin coming along will have no Duh, I was just making a point. > clue what this second httpd is needed for. As I said, I thing it'd be a worthful addition to the doc indeed. However I don't think this should go into rcctl. "I

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Claudio Jeker
On Thu, Jan 28, 2016 at 06:52:18PM +0100, Ingo Schwarze wrote: > Hi, > > Antoine Jacoutot wrote on Thu, Jan 28, 2016 at 10:41:52AM +0100: > > > As mentioned in another thread already: > > # ln -s /etc/rc.d/mydaemon /etc/rc.d/mydaemon2 > > Then use mydaemon2_flags ... in rc.conf.local. > > This

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Remi Locherer
On Thu, Jan 28, 2016 at 06:52:18PM +0100, Ingo Schwarze wrote: > Hi, > > Antoine Jacoutot wrote on Thu, Jan 28, 2016 at 10:41:52AM +0100: > > > As mentioned in another thread already: > > # ln -s /etc/rc.d/mydaemon /etc/rc.d/mydaemon2 > > Then use mydaemon2_flags ... in rc.conf.local. > > This

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Alexandre Ratchov
On Wed, Jan 27, 2016 at 10:51:50PM +0100, Reyk Floeter wrote: > > Well, we "tradionally" had setproctitle("[priv]") in the parent. I > changed the tradition to setproctitle("parent"). > > I have no objections with changing this in the parent (but keeping the > setproctitles in the children) to

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Jiri B
On Thu, Jan 28, 2016 at 09:49:32AM +0100, Alexandre Ratchov wrote: > $ ps ax |grep sndiod > 14501 ?? Ssp 0:00.00 sndiod: helper (sndiod) ^^ excuse my ignorance but what's purpose of repeating daemon name in brackets? j.

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Antoine Jacoutot
> Fine, this is what I suggested as the first option. > > But let's do it everywhere and not just for httpd - > don't use setproctitle in the parent process. > > It does make sense for many more privsep daemons, especially in combination > with rdomains (ntpd, iked, …). bgpd would probably not

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Paolo Aglialoro
When this goes implemented, how will one start/stop/reload/check the single instance or all instances through /etc/rc.d/ ?

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Stuart Henderson
On 2016/01/28 08:50, Reyk Floeter wrote: > > On 27.01.2016, at 23:31, Stuart Henderson wrote: > > > > This does the trick. It probably doesn't make sense to run multiple > > copies of all of the privsep daemons though I see definite use cases > > for httpd, snmpd [v4 and v6

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Antoine Jacoutot
On Thu, Jan 28, 2016 at 10:29:56AM +0100, Paolo Aglialoro wrote: > When this goes implemented, how will one start/stop/reload/check the single > instance or all instances through /etc/rc.d/ ? You'll have a different rc.d script and associated rc.conf variables for each of your instances.

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Antoine Jacoutot
On Thu, Jan 28, 2016 at 10:45:31AM +0100, Kamil Cholewiński wrote: > On Thu, 28 Jan 2016, Paolo Aglialoro wrote: > > When this goes implemented, how will one start/stop/reload/check the single > > instance or all instances through /etc/rc.d/ ? > > I hate to repeat myself, but

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread Kamil Cholewiński
On Thu, 28 Jan 2016, Paolo Aglialoro wrote: > When this goes implemented, how will one start/stop/reload/check the single > instance or all instances through /etc/rc.d/ ? I hate to repeat myself, but runit solves all of these problems cleanly, with no need for ps grepping,

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-28 Thread lists
Thu, 28 Jan 2016 18:52:18 +0100 Ingo Schwarze > I'd love to make the example more specific and document an actual > use case that frequently occurs in practice, but even though many > have said that such cases do occur, i can't think of any. I have this use case, and have not

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-27 Thread Stuart Henderson
On 2016-01-27, Antoine Jacoutot wrote: > On Wed, Jan 27, 2016 at 12:30:08PM +0100, Reyk Floeter wrote: >> On Wed, Jan 27, 2016 at 06:12:22AM -0500, Jiri B wrote: >> > Hi, >> > >> > I can't run multiple instances of httpd via rc.d as I can't distinguish >> > between httpd

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-27 Thread Reyk Floeter
On Wed, Jan 27, 2016 at 01:49:30PM +0100, Antoine Jacoutot wrote: > On Wed, Jan 27, 2016 at 12:30:08PM +0100, Reyk Floeter wrote: > > On Wed, Jan 27, 2016 at 06:12:22AM -0500, Jiri B wrote: > > > Hi, > > > > > > I can't run multiple instances of httpd via rc.d as I can't distinguish > > > between

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-27 Thread Reyk Floeter
> On 27.01.2016, at 23:31, Stuart Henderson wrote: > > On 2016-01-27, Antoine Jacoutot wrote: >> On Wed, Jan 27, 2016 at 12:30:08PM +0100, Reyk Floeter wrote: >>> On Wed, Jan 27, 2016 at 06:12:22AM -0500, Jiri B wrote: Hi, I can't run

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-27 Thread Antoine Jacoutot
> Well, we "tradionally" had setproctitle("[priv]") in the parent. I > changed the tradition to setproctitle("parent"). > > I have no objections with changing this in the parent (but keeping the > setproctitles in the children) to either the default (all command line > flags) or to something

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-27 Thread Antoine Jacoutot
> This does the trick. It probably doesn't make sense to run multiple > copies of all of the privsep daemons though I see definite use cases > for httpd, snmpd [v4 and v6 need separate daemons], and possibly some > others, but it would be better to keep them all in-sync.. Yes, if we go this way,

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-27 Thread Reyk Floeter
On Wed, Jan 27, 2016 at 06:12:22AM -0500, Jiri B wrote: > Hi, > > I can't run multiple instances of httpd via rc.d as I can't distinguish > between httpd instances. ps aux never show flags passed to httpd. > > Could httpd be extended to show flags like sshd does it? > > root 15681 0.0 0.1

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-27 Thread Kamil Cholewiński
> Or is there any other way to distinguish between two httpd instances? Try runit: http://smarden.org/runit/

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-27 Thread Antoine Jacoutot
On Wed, Jan 27, 2016 at 12:30:08PM +0100, Reyk Floeter wrote: > On Wed, Jan 27, 2016 at 06:12:22AM -0500, Jiri B wrote: > > Hi, > > > > I can't run multiple instances of httpd via rc.d as I can't distinguish > > between httpd instances. ps aux never show flags passed to httpd. > > > > Could

Re: can't run multiple instances of httpd, flags not visible in processes

2016-01-27 Thread Aner Perez
On 01/27/2016 06:12 AM, Jiri B wrote: Hi, I can't run multiple instances of httpd via rc.d as I can't distinguish between httpd instances. ps aux never show flags passed to httpd. Could httpd be extended to show flags like sshd does it? root 15681 0.0 0.1 1196 2308 ?? Ssp 12:08PM