"Fossies" - the Fresh Open Source Software Archive

Member "freeha-1.0/service_scripts/cat.start" (23 Nov 2006, 599 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 # Script to demonstrate starting a dummy service, for FreeHA              #
    5 #  Provided as a tool to be called from 'starthasrv'                      #
    6 #                                                                         #
    7 #  Standard UNIX status: returns 0 on okay, non-0 on fail.                #
    8 #-------------------------------------------------------------------------#
    9 
   10 
   11 # If already running, dont bother to start again
   12 cat.monitor && exit 0
   13 
   14 nice cat /dev/zero </dev/null >/dev/null  2>&1  &
   15 
   16 exit 0