* Fixed problem when BASEDIR paths were given without a trailing '/'.
[linux_from_scratch.git] / bootscripts / contrib / new-boot-0.2 / sbin / init.d / template
blob488035977d0675c11616750e967b35fd56539ac7
1 #!/bin/sh
2 #
3 # start foo service
6 #locate and source functions script
7 source `PATH=$INIT_D/:/sbin/init.d:/etc/init.d:/etc/rc.d type -p functions`
9 case "$1" in
10 start)
11 need $mounted_filesystems || exit_if_any_error
13 echo 'Starting foo service...'
14 loadproc foo --parameter || exit_if_any_error
16 echo 'Starting foo additional...'
17 fooadditional
18 up_evaluate_retval || exit_if_any_error
20 stop)
21 echo 'Stopping foo service...'
22 killproc foo
24 echo 'Stopping foo additional...'
25 killproc fooadditional
27 reload)
28 echo 'Reinitializing foo...'
29 reloadproc foo
30 reloadproc fooadditional
32 status)
33 statusproc foo
34 statusproc fooadditional
35 ;;
37 exit 1
39 esac
41 exit 0