(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.8.1

version 1.2.2.1, 2004/12/17 22:50:21 version 1.6.8.1, 2006/02/10 16:09:06
Line 1 
Line 1 
   #//%2006////////////////////////////////////////////////////////////////////////
   #//
   #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
   #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   #// IBM Corp.; EMC Corporation, The Open Group.
   #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   #// EMC Corporation; VERITAS Software Corporation; The Open Group.
   #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   #// EMC Corporation; Symantec Corporation; The Open Group.
   #//
   #// Permission is hereby granted, free of charge, to any person obtaining a copy
   #// of this software and associated documentation files (the "Software"), to
   #// deal in the Software without restriction, including without limitation the
   #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
   #// sell copies of the Software, and to permit persons to whom the Software is
   #// furnished to do so, subject to the following conditions:
   #//
   #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
   #// 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.
   #//
   #//==============================================================================
 #! /bin/sh #! /bin/sh
 #%/////////////////////////////////////////////////////////////////////////////  #//
 #  #//%/////////////////////////////////////////////////////////////////////////////
 # Copyright (c) 2004 BMC Software, Hewlett-Packard Company, IBM,  
 # The Open Group, Tivoli Systems  
 #  
 # Permission is hereby granted, free of charge, to any person obtaining a copy  
 # of this software and associated documentation files (the "Software"), to  
 # deal in the Software without restriction, including without limitation the  
 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or  
 # sell copies of the Software, and to permit persons to whom the Software is  
 # furnished to do so, subject to the following conditions:  
 #  
 # THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN  
 # 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 39 
 # 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 52 
  
 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 60 
         ;;         ;;
  
      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.8.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2