[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#155219: dpkg: making --make-pidfile and --chuid compatible in start-stop-daemon by reordering

On Fri, 2 Aug 2002 15:50, you wrote:
> On  2 Aoû, Russell Coker wrote:
> > On Fri, 2 Aug 2002 14:43, Marc Herbert wrote:
> >> The two start-stop-daemon's options --make-pidfile and --chuid are not
> >> compatible, because of a very obvious reason: the --chuid option makes
> >> start-stop-daemon giving up its root privileges very early, and thus it
> >> can not create the /var/run/$DAEMON.pid file later.
> >
> > It would be nice if start-stop-daemon gave the option of operating in
> > either way.
> >
> > Sometimes you want the pidfile under /chroot/var/run/ ...
> Sorry, I don't get that (my english is not so good).
> But maybe that's not so important :-)

If you have three versions of apache installed with three different complete 
woody setups (different shared objects etc) then you want to create pidfiles 
under the same directories.  You can do
"chroot /chroot/1/ /etc/init.d/apache start", or
start-stop-daemon --pidfile /chroot/1/var/run/apache.pid -c /chroot/1 apache
but doing:
start-stop-daemon --pidfile /var/run/apache.pid -c /chroot/1 apache
is easier.

It's a minor thing.

Russell Coker

Reply to: