Read ndsserv
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
NOVELL_EDIR_DIR=/opt/novell/eDirectory
|
||||
PATH=/opt/novell/eDirectory/bin
|
||||
ROOTPATH=/opt/novell/eDirectory/bin:/opt/novell/eDirectory/sbin
|
||||
MANPATH=/opt/novell/eDirectory/man
|
||||
LDPATH=/opt/novell/eDirectory/lib
|
||||
PRELINK_PATH_MASK=/opt/novell/eDirectory/lib:/opt/novell/eDirectory/bin:/opt/novell/eDirectory/sbin
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
NDSD_OPTS=""
|
||||
NDSD_CONFIGFILE="/etc/opt/novell/eDirectory/nds.conf"
|
||||
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