(file) Return to tog-pegasus.rc CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm

Diff for /pegasus/rpm/tog-pegasus.rc between version 1.2.2.1 and 1.6

version 1.2.2.1, 2004/12/17 22:50:21 version 1.6, 2005/05/29 06:43:30
Line 1 
Line 1 
 #! /bin/sh #! /bin/sh
 #%/////////////////////////////////////////////////////////////////////////////  #//%2005////////////////////////////////////////////////////////////////////////
 #  #//
 # Copyright (c) 2004 BMC Software, Hewlett-Packard Company, IBM,  #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 # The Open Group, Tivoli Systems  #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
 #  #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
 # Permission is hereby granted, free of charge, to any person obtaining a copy  #// IBM Corp.; EMC Corporation, The Open Group.
 # of this software and associated documentation files (the "Software"), to  #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
 # deal in the Software without restriction, including without limitation the  #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or  #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 # sell copies of the Software, and to permit persons to whom the Software is  #// EMC Corporation; VERITAS Software Corporation; The Open Group.
 # furnished to do so, subject to the following conditions:  #//
 #  #// Permission is hereby granted, free of charge, to any person obtaining a copy
 # THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN  #// of this software and associated documentation files (the "Software"), to
 # ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED  #// deal in the Software without restriction, including without limitation the
 # "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT  #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR  #// sell copies of the Software, and to permit persons to whom the Software is
 # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT  #// furnished to do so, subject to the following conditions:
 # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN  #//
 # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION  #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 #  #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 #==============================================================================  #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 #  #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 #%/////////////////////////////////////////////////////////////////////////////  #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
   #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
   #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   #//
   #//==============================================================================
   #//
   #//%/////////////////////////////////////////////////////////////////////////////
  
 ### BEGIN INIT INFO ### BEGIN INIT INFO
 # Provides: tog-pegasus # Provides: tog-pegasus
Line 31 
Line 37 
 # Required-Stop: $syslog # Required-Stop: $syslog
 # Default-Start:  3 5 # Default-Start:  3 5
 # Default-Stop: 0 1 2 6 # Default-Stop: 0 1 2 6
 # Description:    init script for Pegasus CIMServer  # Description:    init script for Pegasus CIM server
 ### END INIT INFO ### END INIT INFO
  
 CIMSERVER_BIN=/opt/tog-pegasus/sbin/cimserver CIMSERVER_BIN=/opt/tog-pegasus/sbin/cimserver
Line 44 
Line 50 
  
 case "$1" in case "$1" in
      start)      start)
         echo -n $"Starting up Pegasus CIMOM daemon: "          echo -n $"Starting up CIM server: "
         $CIMSERVER_BIN         $CIMSERVER_BIN
         RETVAL=$?         RETVAL=$?
         [ "$RETVAL" -eq 0 ] && log_success_msg $"$prog start" || log_failure_msg $"$prog start"         [ "$RETVAL" -eq 0 ] && log_success_msg $"$prog start" || log_failure_msg $"$prog start"
Line 52 
Line 58 
         ;;         ;;
  
      stop)      stop)
         echo -n $"Shutting down Pegasus CIMOM daemon: "          echo -n $"Shutting down CIM server: "
         killproc cimserver         killproc cimserver
         RETVAL=$?         RETVAL=$?
         [ "$RETVAL" -eq 0 ] && log_success_msg $"$prog stop" || log_failure_msg $"$prog stop"         [ "$RETVAL" -eq 0 ] && log_success_msg $"$prog stop" || log_failure_msg $"$prog stop"
         echo         echo
         ;;         ;;
      status)      status)
         status $CIMSERVER_BIN          pid=`pidofproc $CIMSERVER_BIN`
         RETVAL=$?         RETVAL=$?
           if [ "$RETVAL" -eq 0 ]; then
                   echo "CIM server is running"
           else
                   echo "CIM server is not running"
           fi
           ;;
        condrestart)
           pid=`pidofproc $CIMSERVER_BIN`
           RETVAL=$?
           if [ "$RETVAL" -eq 0 ]; then
               $0 stop && $0 start;
               RETVAL=$?;
           fi;
         ;;         ;;
      try-restart)      try-restart)
         $0 stop && $0 start         $0 stop && $0 start


Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.6

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2