ndsall

0 Likes
over 13 years ago
This script can start all instances of eDirectory on a server at boot time, and can shut them all down gracefully at shutdown.

#!/bin/bash
case "$1" in
start)
/opt/novell/eDirectory/bin/ndsmanage startall
;;
stop)
/opt/novell/eDirectory/bin/ndsmanage stopall
;;
restart)
/opt/novell/eDirectory/bin/ndsmanage stopall
/opt/novell/eDirectory/bin/ndsmanage startall
;;
*)
echo "Useage: $0" \
"{start|stop|restart}"
;;
esac



Copy the script into a file in /etc/init.d and flag it as executable (chmod x)

You can now configure it to stop / start all instances at desired run levels (I used "System Services (Runlevel)" from yast to do this, setting it to run at levels 3 and 5)

Enjoy!

Cheers

Jim

Labels:

Collateral
Comment List
Anonymous
Related Discussions
Recommended