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 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 0:00.05 httpd:
> > > parent (httpd)
> > >
> > > vs
> > >
> > > root 17247 0.0 0.1 920 1376 ?? Ss 12:09PM 0:00.03
> > > /usr/sbin/sshd -f /etc/ssh/test_sshd_config
> > >
> > > Or is there any other way to distinguish between two httpd instances?
> > >
> > > j.
> > >
> >
> > Interesting point, I never thought about it.
>
> That's not httpd specific. Most of our privilege separated daemons do that
> and it sucks :-)
>
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 like setproctitle("parent, %s", conffile).
Command line flags suck and I don't think that -d or -v would be
helpful in the output, so I prefer the latter.
All rc scripts would have to be adjusted by somebody with better rc-fu.
Opinions?
Reyk