blob: 26f0197d7db8987fde7cd4532ea90d0ece6a2f95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
#RCUPDATE:3 4:99:This line is required for script management
. /etc/rc.d/config/functions
SERVICE=omniORB
EXE1="/usr/bin/omniNames"
EXE2="/usr/bin/notifd"
opts="start stop restart"
start() {
if [ ! -d "/var/log/omniORB" ] ; then
install -d /var/log/omniORB
fi
if [ "/var/log/omniORB/omninames*" ] ; then
rm -f /var/log/omniORB/omninames*
fi
ebegin "Starting ${SERVICE}"
exec $EXE1 -start 2809 -logdir /var/log/omniORB -errlog /var/log/omniORB/omniORB.errors 1>&2 &
exec $EXE2 -c /etc/omniorb/channel.cfg 1>&2 &
eend $? "Error starting ${SERVICE}."
}
stop() {
ebegin "Stopping ${SERVICE}"
killall $EXE1 1>&2
killall $EXE2 1>&2
eend $? "Error stopping ${SERVICE}."
}
restart() {
stop
start
}
doservice ${@}
|