4 # description: Starts and stops the TAO Concurrency Service.
5 # processname: tao-cosconcurrency
6 # config: /etc/tao/tao-cosconcurrency.opt
7 # config: /etc/tao/tao-cosconcurrency.conf
8 # pidfile: /var/run/tao-cosconcurrency.pid
10 # Source function library.
11 .
/etc
/init.d
/functions
13 # Source configuration options
14 .
/etc
/tao
/tao-cosconcurrency.opt
18 prog
="tao-cosconcurrency"
19 progpath
="/usr/sbin/$prog"
20 svcconf
="/etc/tao/${prog}.conf"
21 lockpath
="/var/lock/subsys/$prog"
22 pidpath
="/var/run/${prog}.pid"
26 echo -n $
"Starting $prog: "
27 daemon
--user tao
$progpath -p $pidpath $OPTIONS -ORBSvcConf $svcconf -ORBDaemon
29 [ "$RETVAL" = 0 ] && touch $lockpath
35 echo -n $
"Stopping $prog: "
36 killproc
$progpath -TERM
38 if [ $RETVAL -eq 0 ] ; then
45 # See how we were called.
63 if [ -f $lockpath ]; then
72 echo $
"Usage: $0 {start|stop|status|restart|condrestart|reload}"