(file) Return to pegasus CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm

 1 sage  1.1 #! /bin/sh
 2           #
 3           # Author: Markus Mueller <markus_mueller@de.ibm.com>
 4           #
 5           # /etc/init.d/pegasus
 6           #
 7           #   and symbolic its link
 8           #
 9           # /usr/sbin/rcsshd
10           #
11           ### BEGIN INIT INFO
12           # Provides: pegasus
13           # Required-Start: $network
14           # Required-Stop: $network
15           # Default-Start: 3 5
16           # Default-Stop: 0 1 2 6
17           # Description: Start the sshd daemon
18           ### END INIT INFO
19           
20           . /etc/rc.status
21           . /etc/rc.config
22 sage  1.1 
23           # Determine the base and follow a runlevel link name.
24           base=${0##*/}
25           link=${base#*[SK][0-9][0-9]}
26           
27           # Force execution if not called by a runlevel directory.
28           test $link = $base && START_PEGASUS=yes
29           test "$START_PEGASUS" = yes || exit 0
30           
31           # Shell functions sourced from /etc/rc.status:
32           #      rc_check         check and set local and overall rc status
33           #      rc_status        check and set local and overall rc status
34           #      rc_status -v     ditto but be verbose in local rc status
35           #      rc_status -v -r  ditto and clear the local rc status
36           #      rc_failed        set local and overall rc status to failed
37           #      rc_reset         clear local rc status (overall remains)
38           #      rc_exit          exit appropriate to overall rc status
39           
40           export PEGASUS_HOME=/etc/pegasus
41           
42           # First reset status of this service
43 sage  1.1 rc_reset
44           case "$1" in
45               start)
46           	echo -n "Starting PEGASUS daemon"
47           	## Start daemon with startproc(8). If this fails
48           	## the echo return value is set appropriate.
49           
50           	startproc /usr/local/bin/cimserver
51           
52           	# Remember status and be verbose
53           	rc_status -v
54           	;;
55               stop)
56           	echo -n "Shutting down PEGASUS daemon:"
57           	## Stop daemon with killproc(8) and if this fails
58           	## set echo the echo return value.
59           
60           	#killproc -INT /usr/local/bin/cimserver
61           	killall -2 cimserver
62           
63           	# Remember status and be verbose
64 sage  1.1 	rc_status -v
65           	;;
66               restart)
67           	## If first returns OK call the second, if first or
68           	## second command fails, set echo return value.
69           	$0 stop  &&  $0 start
70           
71           	# Remember status and be quiet
72           	rc_status
73           	;;
74               reload)
75                   echo -n "Reload service PEGASUS"
76                   #killproc -p /var/run/pegasus.pid -HUP /usr/local/bin/cimserver
77           	$0 stop  &&  $0 start
78           	#
79           	rc_status -v
80           	;;
81               status)
82           	echo -n "Checking for service PEGASUS: "
83           	checkproc /usr/local/bin/cimserver && echo OK || echo No process
84           	;;
85 sage  1.1     *)
86           	echo "Usage: $0 {start|stop|status|restart|reload}"
87           	exit 1
88           	;;
89           esac
90           rc_exit

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2