[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [openldap2.1.12] script of automatic restarting for linux



Helene.Lastennet@alcatel.fr writes:

> So do you have a complete script of automatic restarting ... ?

Have a look at http://cr.yp.to/daemontools.html - it's a really stable
and reliable replacement for most of /etc/init.d/whatever scripts and
ensures the automatic restart of each service which is controlled by
supervise.

# cat /service/slapd/run
---- snip ----
#!/bin/sh
#
# Use DEBUG to be sure that slapd stays in foreground
DEBUG='-d 264'
HOST='ldap://my.host.dom/'
exec /usr/bin/envuidgid ldap \
        /usr/lib/openldap/slapd $DEBUG \
        -h "${HOST}" 2>&1
---- snap ----

# cat /service/slapd/log/run
---- snip ----
#!/bin/sh
# Adjust the logged entries to your needs
exec /usr/bin/setuidgid ldap \
        /usr/bin/multilog t \
        s499999 n20 -* '+* conn=*' /var/log/svscan/slapd \
        s499999 n5 +* /var/log/svscan/slapd/debug
---- snap ----

HTH, Martin

-- 
Better-Com bietet Support für freie Software
http://www.bettercom.de - Tel.: +49-40-38037272