version 1.2, 2001/06/27 22:32:40
|
version 1.3, 2001/12/13 14:53:32
|
|
|
# Required-Stop: $network | # Required-Stop: $network |
# Default-Start: 3 5 | # Default-Start: 3 5 |
# Default-Stop: 0 1 2 6 | # Default-Stop: 0 1 2 6 |
# Description: Start the sshd daemon |
# Description: Start the cimom daemon |
### END INIT INFO | ### END INIT INFO |
| |
. /etc/rc.status | . /etc/rc.status |
|
|
# rc_reset clear local rc status (overall remains) | # rc_reset clear local rc status (overall remains) |
# rc_exit exit appropriate to overall rc status | # rc_exit exit appropriate to overall rc status |
| |
export PEGASUS_HOME=/etc/pegasus |
export PEGASUS_HOME=/var/lib/pegasus |
| |
# First reset status of this service | # First reset status of this service |
rc_reset | rc_reset |
|
|
## Start daemon with startproc(8). If this fails | ## Start daemon with startproc(8). If this fails |
## the echo return value is set appropriate. | ## the echo return value is set appropriate. |
| |
#startproc /usr/local/bin/cimserver |
#startproc /usr/bin/cimserver |
export PEGASUS_HOME=/etc/pegasus |
#export PEGASUS_HOME=/var/lib/pegasus |
cimserver -logdir /var/pegasus -d |
#handle that we cannot specify the location of the configuration |
|
ln -sf /etc/pegasus/pegasus.conf /var/lib/pegasus/pegasus.conf |
|
cimserver -D /var/lib/pegasus -d logdir=/var/pegasus/logs |
| |
# Remember status and be verbose | # Remember status and be verbose |
rc_status -v | rc_status -v |
|
|
## Stop daemon with killproc(8) and if this fails | ## Stop daemon with killproc(8) and if this fails |
## set echo the echo return value. | ## set echo the echo return value. |
| |
#killproc -INT /usr/local/bin/cimserver |
#killproc -INT /usr/bin/cimserver |
killall -2 cimserver | killall -2 cimserver |
| |
# Remember status and be verbose | # Remember status and be verbose |
|
|
;; | ;; |
reload) | reload) |
echo -n "Reload service PEGASUS" | echo -n "Reload service PEGASUS" |
#killproc -p /var/run/pegasus.pid -HUP /usr/local/bin/cimserver |
#killproc -p /var/run/pegasus.pid -HUP /usr/bin/cimserver |
$0 stop && $0 start | $0 stop && $0 start |
# | # |
rc_status -v | rc_status -v |
;; | ;; |
status) | status) |
echo -n "Checking for service PEGASUS: " | echo -n "Checking for service PEGASUS: " |
checkproc /usr/local/bin/cimserver && echo OK || echo No process |
checkproc /usr/bin/cimserver && echo OK || echo No process |
;; | ;; |
*) | *) |
echo "Usage: $0 {start|stop|status|restart|reload}" | echo "Usage: $0 {start|stop|status|restart|reload}" |