Andrew Hammond wrote:
> If you want something that checks if the slons are running and
> automagically restarts them, slon-mkservice.sh in the FreeBSD package
> will make a service directory a la DJB daemontools.
>
> There are at least two different versions of that script. The one
> currently packaged with the FreeBSD package is kinda old (but is well
> integrated in the package). There's also a version in CVS head that's
> much more sophisticated (IMHO, of course, I wrote it so...). If you
> want to go with the daemontools approach, you should take a look at
> the two different scripts.
I've been using daemontools for almost a year. Though there are
certain signals that the daemon needs to obey. But so far, I've seen
no problems.
But my script is something along these lines:
----
#!/bin/sh
exec 2>&1
exec envdir ./env sh -c '
exec setuidgid $user slon -f $conf
'
----
Most of the mkservice scripts are too general
and add more than they should.
Also, I'm using multilog for logging.
cheers,
l
_______________________________________________
Slony1-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/slony1-general