#!/bin/sh # ***************************************************************** # * * # * Copyright (c) 2002, 2003 Oracle Corporation. * # * All rights reserved. * # * * # * Copyright (c) 1991, 1999, 2002 Digital Equipment * # * Corporation * # * * # * * # * All Rights Reserved. Unpublished rights reserved under * # * the copyright laws of the United States. * # * * # * The software contained on this media is proprietary to * # * and embodies the confidential technology of Digital * # * Equipment Corporation and Oracle Corporation. Possession, * # * use, duplication or dissemination of the software * # * and media is authorized only pursuant to a valid written * # * license from Digital Equipment Corporation and Oracle * # * Corporation * # * * # * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure * # * by the U.S. Government is subject to restrictions as set * # * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, * # * or in FAR 52.227-19, as applicable. * # * * # * * # ***************************************************************** # SCRIPT=$0 ACTION=$1 # Action (start, stop or check) ######################################################################### # # Main section of Action Script - starts, stops, or checks an application # # This script is invoked by CRS when managing the application associated # with this script. # # Argument: $1 - start | stop | check # # Returns: 0 - successful start, stop, or check # 1 - error # ######################################################################### # # Start section - start the process and report results # # If the Application Startup Commands (see description above) were used, # little, if any modifications are needed in this section. If not used, # you may replace most of the contents in this section with your own # start procedure code. # case $1 in 'start') echo "Resource STARTED" ;; # # Stop section - stop the process and report results # # If the Application Stop Commands or Associated Processes (see descriptions # above) were used,little, if any modifications are needed in this section. # If not used, you may replace most of the contents in this section with # your own stop procedure code. # 'stop') echo "Resource STOPPED" ;; # # Check section - check the process and report results # # # Your application might allow you to implement more accurate process # checking. If so, you may choose to implement that code here. # 'check') echo "Resource CHECKED" ;; *) echo "usage: $0 {start stop check}" ;; esac exit 0