ndsall

Share

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

(Visited 1 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *

No comments yet

1,519 views