3 # omniORB: Starts omniORB
6 # description: This is a daemon which handles CORBA connections for \
8 # processname: omniNames
9 # config: /etc/omniORB.cfg
13 [ -f /etc/omniORB.cfg ] || exit 0
15 # Source function library.
16 . /etc/rc.d/init.d/functions
19 [ -f /etc/sysconfig/omniORB ] && . /etc/sysconfig/omniORB
22 # See how we were called.
25 if [ ! -f /var/lock/subsys/omniORB ]; then
26 msg_starting "omniNames for omniORB"
27 if [ -f "/var/log/omniORB/omninames-$(hostname).log" ]; then
32 daemon "sh -c 'omniNames $START -errlog /var/log/omniORB/omninames-err.log &'"
34 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/omniORB
36 msg_already_running "omniNames for omniORB"
40 if [ -f /var/lock/subsys/omniORB ]; then
41 msg_stopping "omniNames for omniORB"
43 rm -f /var/lock/subsys/omniORB >/dev/null 2>&1
45 msg_not_running "omniNames for omniORB"
58 msg_usage "$0 {start|stop|restart|force-reload|status}"