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 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? >
another option would be to call setproctitle() only in the child processes (or processes you're not supposed to kill), that's what we do for sndiod to allow multiple instances to run allowing the user to kill the right one: $ ps ax |grep sndiod 14501 ?? Ssp 0:00.00 sndiod: helper (sndiod) 32743 ?? S<sp 0:00.00 sndiod -U1 -frsnd/0 288 ?? Ssp 0:00.00 sndiod: helper (sndiod) 23727 ?? S<sp 0:00.00 sndiod -z 120 -frsnd/1 Anyway, I'm very interested in what option you'll choose, to make all daemons look the same in ps.