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

RE: startup script when server reboots



Siao,

Below is a script I threw together. It doesn't do much error checking, but
it's on par with most of the start up scripts that come with systems. You
should be able to modify it as needed.



Derek
djdees@mm.com
http://www.mm.com/user/djdees/

"Out the 10Base-T, through the router,
down the T1, over the leased line,
off the bridge, past the firewall,
      ...nothing but Net."
                    -- Dilbert (Scott Adams)


#!/bin/sh

#       This is the management script for starting/stopping slapd

case $1 in
        start)
                echo "Starting slapd ...."
                echo
                /usr/local/libexec/slapd
                ;;
        stop)
                echo "Stopping slapd ...."
                echo
                kill `cat /usr/local/var/slapd.pid`
                ;;
        pid)
                ps aux | grep slapd | grep -v grep | grep -v "slapd pid"
                ;;
        *)
                echo "usage: $0 {start|stop|pid}"
                ;;
esac

#	End of Script

-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Siao Chiun
Sent: Tuesday, November 21, 2000 01:44
To: openldap-software@OpenLDAP.org
Subject: startup script when server reboots


Hi there,
I have OpenLDAP version 1.2.11 running on 2 of my (solaris 2.7) servers. One
as the master and the other as slave. It has been running well.

What i need now is a startup script such that each time the server is
rebooted, slapd and slurp will be started automatically. Does this startup
script come with the installation of OpenLDAP-1.2.11? I can't seems to find
it.

Any help is appreciated. Thanks.

Regards,
Siao-Chiun