"Fossies" - the Fresh Open Source Software Archive

Member "freeha-1.0/stophasrv" (23 Nov 2006, 947 Bytes) of package /linux/privat/old/freeha-1.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 #-------------------------------------------------------------------------#
    4 #  This file monitors that the services you want, are running.            #
    5 #  It is up to you to make sure it matches everyting in 'starthasrv'      #
    6 #  See the various templates for examples that are practically readytorun #
    7 #  with a minimum of tweaking                                             #
    8 #  You should make sure that there will be no problems if this is called  #
    9 #  multiple times.                                                        #
   10 #  Standard UNIX status: returns 0 on good, non-0 on bad.                 #
   11 #-------------------------------------------------------------------------#
   12 
   13 # This sample 'stop' script takes no arguments, but normally,
   14 # a stop script might take arguments
   15 
   16 cat.stop
   17 
   18 # You could have additional 'stop.xxx' commands in here, and you usually would.
   19 # Examples:
   20 
   21 #vip.stop  192.168.1.10
   22 
   23 #metaset.stop metaset
   24