Read ndsserv
This commit is contained in:
37
branches/experimental/net-nds/novell-ndsserv/files/ndsd88.initd
Executable file
37
branches/experimental/net-nds/novell-ndsserv/files/ndsd88.initd
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/sbin/runscript
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after slpuasa slpd
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ ! -e ${NDSD_CONFIGFILE} ] ; then
|
||||
eerror "Novell eDirectory server has not been configured."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting Novell eDirectory server"
|
||||
start-stop-daemon --start --quiet --exec /opt/novell/eDirectory/sbin/ndsd \
|
||||
--pidfile /var/nds/ndsd.pid -- ${NDSD_OPTS} -f ${NDSD_CONFIGFILE}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping Novell eDirectory server"
|
||||
start-stop-daemon --stop --quiet --signal INT --retry 30 --pidfile /var/nds/ndsd.pid
|
||||
eend $?
|
||||
if [ -f /var/nds/ndsd.pid ]; then
|
||||
ebegin "WARNING: ndsd process is still running. Killing Novell eDirectory server"
|
||||
echo "WARNING: ndsd process is still running. Killing ndsd." >> /var/nds/ndsd.log
|
||||
start-stop-daemon --stop --quiet --signal KILL --pidfile /var/nds/ndsd.pid
|
||||
rm /var/nds/ndsd.pid
|
||||
eend $?
|
||||
fi
|
||||
}
|
||||
|
||||
#restart() {
|
||||
# (Commands necessary to restart the service)
|
||||
#}
|
||||
Reference in New Issue
Block a user