"Fossies" - the Fresh Open Source Software Archive 
Member "freeha-1.0/starthasrv" (23 Nov 2006, 1165 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 starts the services you want running on the machine. #
5 # It is up to you to make sure it starts things up in the right order, #
6 # successfully does so, etc. etc. #
7 # See the various templates for examples that are practically readytorun #
8 # with a minimum of tweaking #
9 # #
10 # Standard UNIX status: returns 0 on okay, non-0 on fail. #
11 #-------------------------------------------------------------------------#
12
13 # This sample 'start' script takes no arguments, but often,
14 # a script would take arguments
15 # eg: start.oracle ORA_SID
16
17 cat.start
18 if [ $? -ne 0 ] ; then
19 exit 1
20 fi
21
22 # You could have other 'start.xxx' commands in here, and you usually would.
23 # Examples:
24
25 #metaset.start metaset
26 #if [ $? -ne 0 ] ; then exit 1; fi
27
28 #vip.start eri0 192.168.1.10
29 #if [ $? -ne 0 ] ; then exit 1; fi
30
31 #fs.start /dev/md/dsk/d10 /import/datavol ufs
32 #if [ $? -ne 0 ] ; then exit 1; fi
33
34 exit 0