Tool

jimgoodall's picture
tool
Reads:

6060

Score:
2.333335
2.3
3
 
Comments:

0

ndsall

(View Disclaimer)

license: 
Free

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


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell