Move to root
This commit is contained in:
5
net-nds/novell-xtier-base/files/10_base.sh
Executable file
5
net-nds/novell-xtier-base/files/10_base.sh
Executable 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 $?
|
||||
46
net-nds/novell-xtier-base/files/novell-xregd20.initd
Executable file
46
net-nds/novell-xtier-base/files/novell-xregd20.initd
Executable 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)
|
||||
#}
|
||||
Reference in New Issue
Block a user