Pause is not included with any toolkit, but you can get the pause.c code we use 
here:

https://code.google.com/p/runit-for-lfs/

You can grab 1.0rc1 and run make in the lfs-servicescripts directory and copy 
it over:

cd runit-for-lfs/lfs-servicescripts
make
cp -v pause /usr/bin

The logging script should working once the daemon starts and goes into holding 
mode with pause. As long as the daemon itself is in the execution phase the log 
should remain running.

Just make sure you use chmod +x on the run and finish scripts as such:

chmod +x /etc/sv/ejabberd/*
chmod +x /etc/sv/ejabberd/log/*

-Jim

> Date: Fri, 26 Sep 2014 05:22:58 +0300
> From: [email protected]
> To: [email protected]
> Subject: Re: ejabberd
> 
> Hi!
> 
> On Thu, Sep 25, 2014 at 07:02:03PM -0700, James Powell wrote:
> > You may need a utility like runit-for-lfs uses cause pause. Pause stops
> > the execution process until the termination signal is given.
> 
> Yeah, good idea. With pause these ./run and ./finish should work.
> I don't see pause tool in Gentoo, but I think bash's `wait` command
> probably will work in same way.
> 
> But, still, issue with log files doesn't solved. :(
> 
> -- 
>                       WBR, Alex.
                                          

Reply via email to