On Nov 16, 3:29 pm, Anton Krasovsky <
anton.krasov...@gmail.com> wrote:
> Yes, I use it instead of init.d script, the startup script I use is
> based on start.sh by mochiweb.
>
> The startup script for daemontools is really simple, all it has to do
> is to start your application, it can be just one line like:
>
> exec setuidgid $ACCOUNT /opt/erlang/bin/erl -pa $PWD/ebin
> $PWD/deps/*/ebin -boot start_sasl -s $APPNAME -name $NODENAME
> -setcookie $COOKIE -noinput 2>&1
>
> To start/stop etc, you'll use appropriate daemontools commands, for example:
>
> Check status:
>
> # svstat /etc/service/pavome
> /etc/service/pavome: up (pid 5285) 523597 seconds
>
> Kill existing process and start a new one (equivalent of restart):
> # svc -k /etc/service/pavome
>
> See the daemontools documentation for the rest.
>
> As an added benefit of using daemontools, can get logs that are
> printed by your application stored on a filesystem and rotated by
> daemontools:
http://cr.yp.to/daemontools/multilog.html
>
> Regards,
> Anton
>
> On Mon, Nov 16, 2009 at 5:26 AM, pablo <
pablo.pl...@gmail.com> wrote:
>
> > Do you use it instead of init.d script?
> > Do you use the start.sh script that is generated with this skeleton of
> > a mochiweb app?
> > Does it support start/stop/restart/reload/status?
>
> > On Nov 13, 9:26 pm, Anton Krasovsky <
anton.krasov...@gmail.com> wrote: