"Fossies" - the Fresh Open Source Software Archive

Member "freeha-1.0/service_scripts/metaset.stop" (23 Nov 2006, 808 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 release ownership of a DiskSuite "metaset" (shared disks)     #
    5 #  Provided as a tool to be called from 'stophasrv'                       #
    6 #  Specify the name of the metaset as the only argument                   #
    7 #  Be durn sure that you have released all filesystems/disk things        #
    8 #  before calling this in  stophasrv                                      #
    9 #                                                                         #
   10 #  Standard UNIX status: returns 0 on okay, non-0 on fail.                #
   11 #-------------------------------------------------------------------------#
   12 
   13 
   14 PATH=$PATH:/usr/sbin
   15 
   16 if [ "$1" = "" ] ; then
   17     error ERROR: no metaset specified
   18     exit 1
   19 fi
   20 
   21 metaset -s $1 -r
   22