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

 1 kumpf 1.1.2.1 #!/bin/bash
 2               #%/////////////////////////////////////////////////////////////////////////////
 3               #
 4               # Copyright (c) 2000, 2001, 2002 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 kumpf 1.1.2.1 #
23               #==============================================================================
24               #
25               # Author: Warren Otsuka (warren.otsuka@hp.com)
26               #
27               # Modified By:
28               #
29               #%/////////////////////////////////////////////////////////////////////////////
30               #
31               # pegasus init script.
32               #
33               # chkconfig: 345 99 00
34               # description: WBEM Services.
35               
36               # Source function library.
37               . /etc/rc.d/init.d/functions
38               
39               test -x /opt/wbem/sbin/cimserver || exit 1
40               
41               RETVAL=0
42               
43 kumpf 1.1.2.1 #
44               #	See how we were called.
45               #
46               case "$1" in
47                 start)
48               	# Check if cimserver is already running
49                       echo -n 'Starting WBEM Services daemon: '
50               	daemon /opt/wbem/sbin/cimserver
51               	RETVAL=$?
52                       echo
53               	;;
54                 stop)
55               	echo -n 'Stopping WBEM Services daemon: '
56               	/opt/wbem/sbin/cimserver -s
57               	RETVAL=$?
58               	echo
59               	;;
60                 reload|restart)
61               	$0 stop
62               	$0 start
63               	RETVAL=$?
64 kumpf 1.1.2.1 	;;
65                 status)
66               	status /opt/wbem/sbin/cimserver
67               	RETVAL=$?
68               	;;
69                 *)
70               	echo "Usage: /etc/rc.d/init.d/hp.com-wbem {start|stop|restart|reload|status}"
71               	exit 1
72               esac
73               
74               exit $RETVAL
75               
76               

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2