(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 and 1.8

version 1.2, 2004/09/08 00:49:07 version 1.8, 2008/12/01 17:49:07
Line 1 
Line 1 
   #//%LICENSE////////////////////////////////////////////////////////////////
   #//
   #// Licensed to The Open Group (TOG) under one or more contributor license
   #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
   #// this work for additional information regarding copyright ownership.
   #// Each contributor licenses this file to you under the OpenPegasus Open
   #// Source License; you may not use this file except in compliance with the
   #// License.
   #//
   #// 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 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: "
         start_daemon $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"
         echo         echo
         ;;         ;;
  
      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  
changed lines
  Added in v.1.8

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2