Move to root

This commit is contained in:
Mario Fetka
2012-01-14 09:45:05 +01:00
parent d884fb4a6d
commit 5253d3ea35
482 changed files with 0 additions and 578 deletions

View File

@@ -0,0 +1,5 @@
# init xtier registry
einfo "load base registry"
/opt/novell/xtier/bin/regutil -i /etc/opt/novell/xtier/xtier_registry.xml
eend $?

View File

@@ -0,0 +1,46 @@
#!/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)
#}