#!/sbin/runscript depend() { need net after namcd } checkconfig() { if [ ! -e /var/opt/novell/xtier/xregd/db/xtier_registry.db ] ; then einfo "Configuring Novell Xreg Server" for sh in /etc/opt/novell/xtier/xregd/init/*.sh ; do [ -r "$sh" ] && . "$sh" done unset sh else einfo "Checking xtier DB" /opt/novell/xtier/bin/regutil -c eend $? fi } start() { checkconfig || return 1 # Update the limit parameters ulimit -c unlimited ulimit -f unlimited # Force ownership of all directories and files required for # smooth running. This is to get around possible LUM induced # ID mismatch chown novlxregd:novlxtier /var/opt/novell/xtier 2> /dev/null chown -R novlxregd:novlxtier /var/opt/novell/xtier/xregd 2> /dev/null ebegin "Starting novell-xregd" start-stop-daemon --start --quiet --exec /opt/novell/xtier/bin/novell-xregd -u novlxregd -- -d eend $? } stop() { ebegin "Stopping novell-xregd" start-stop-daemon --stop --quiet --retry TERM/30/KILL/5 --name /opt/novell/xtier/bin/novell-xregd eend $? } #restart() { # (Commands necessary to restart the service) #}