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

  1 konrad.r 1.2 #! /bin/sh
  2              #%/////////////////////////////////////////////////////////////////////////////
  3              #
  4              # Copyright (c) 2003 BMC Software, Hewlett-Packard Company, IBM,
  5              # The Open Group, Tivoli Systems
  6              #
  7              # Permission is hereby granted, free of charge, to any person obtaining a copy
  8              # of this software and associated documentation files (the "Software"), to
  9              # deal in the Software without restriction, including without limitation the
 10              # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 11              # sell copies of the Software, and to permit persons to whom the Software is
 12              # furnished to do so, subject to the following conditions:
 13              # 
 14              # THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 15              # ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 16              # "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 17              # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 18              # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 19              # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 20              # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 21              # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 22 konrad.r 1.2 #
 23              #==============================================================================
 24              #
 25              # Author: Konrad Rzeszutek <konradr@us.ibm.com>
 26              #
 27              # Modified By:
 28              #
 29              #%/////////////////////////////////////////////////////////////////////////////
 30              #
 31              #
 32              # chkconfig: 2345 26 74
 33              # description: Pegasus CIMOM enables a Linux System for WBEM (visit http://www.dmtf.org for
 34              # more information about CIM and WBEM). With appropriate instrumentation
 35              # Linux can provide systems management information or be managed by a remote
 36              # client application.
 37              # processname: cimserver 
 38              
 39              # Source function library.
 40              # /etc/init.d/pegasus-wbem
 41              #
 42              ### BEGIN INIT INFO
 43 konrad.r 1.2 # Provides: pegasus
 44              # Required-Start: $network
 45              # X-UnitedLinux-Should-Start: network
 46              # Required-Stop:  
 47              # Default-Start:  3 5
 48              # Default-Stop:
 49              # Description:    init script for Pegasus CIMServer
 50              ### END INIT INFO
 51              
 52              isUnited=`grep "UnitedLinux" /etc/issue`
 53              isSUSE=`grep "SuSE" /etc/issue`
 54              
 55              if [ "$isUnited" ] || [ "$isSUSE" ]; then
 56              
 57               . /etc/rc.status
 58                rc_reset
 59              
 60                RETVAL=$rc_done
 61              
 62                case "$1" in
 63                  start)
 64 konrad.r 1.2 	echo -n "Starting up Pegasus CIMOM daemon  "
 65 konrad.r 1.3 	startproc /usr/sbin/cimserver 
 66 konrad.r 1.2 	rc_status -v
 67              	;;
 68                  stop)
 69              	echo -n "Shutting down Pegasus CIMOM daemon  "
 70              	startproc /usr/sbin/cimserver -s
 71              	rc_status -v
 72              	;;
 73                  try-restart)
 74              	$0 stop && $0 start
 75              	rc_status
 76              	;;
 77                  restart)
 78              	$0 stop
 79              	$0 start
 80              	rc_status
 81              	;;
 82                  status)
 83              	echo -n "Checking for service syslog:"
 84              	checkproc /usr/sbin/cimserver  ; rc_status -v
 85              	;;
 86                  *)
 87 konrad.r 1.2 	echo "Usage: $0 {start|stop|status|try-restart|restart}"
 88              		exit 1
 89              	;;
 90                 esac
 91                 rc_exit
 92              else
 93                 . /etc/rc.d/init.d/functions
 94                 RETVAL=0
 95              
 96                 # Red Hat/Turbo/Caldera 
 97                 case "$1" in
 98                   start)
 99              	echo -n $"Starting up Pegasus CIMOM daemon: "
100 konrad.r 1.3 	daemon cimserver 
101 konrad.r 1.2 	RETVAL=$?
102              	echo
103              	;;
104              
105                   stop)
106              	echo -n $"Shutting down Pegasus CIMOM daemon: "
107              	daemon cimserver -s
108              	RETVAL=$?
109              	echo
110              	;;
111                   status) 
112              	status cimserver
113              	RETVAL=$?
114              	;;
115                   restart|reload)
116              	$0 stop && $0 start
117              	;;
118                   *)
119              	echo "Usage: $0 {start|stop|status|restart|reload}"
120              	exit 1
121                 esac
122 konrad.r 1.2 
123                 exit $RETVAL
124              
125              fi

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2