@@ -11,31 +11,36 @@ RCDIR=/etc/rc.d/
1111## resolve $deps to real start/stop scripts first
1212
1313start_deps() {
14− for i in $deps
14+ for i in $deps; do
1515 $i start
1616 RETVAL=$?
1717 if test $RETVAL != 0; then
1818 exit $RETVAL
19+ fi
20+ done
1921}
2022
2123start_softdeps() {
22− for i in $softdeps
24+ for i in $softdeps; do
2325 $i start
2426 RETVAL=$?
2527 if test $RETVAL != 0; then
2628 continue
29+ fi
30+ done
2731}
2832
2933start() {
3034 # are we already running?
3135 # if so, exit with code 0
32− if test -a $STATDIR/$prog = 1; then
36+ if test -a $STATDIR/$prog; then
3337 exit 0
38+ fi
3439 # if not, continue
3540 # launch all hard dependencies
36− start_deps
41+ #start_deps
3742 # launch all preferred dependencies
38− start_softdeps
43+ #start_softdeps
3944 # launch our own program
4045}
4146
@@ -43,6 +48,7 @@ stop() {
4348 # are we running? If so, then stop, otherwise, do nothing...
4449 if test -a $STATDIR/$prog = 0; then
4550 exit 0
51+ fi
4652 # stop our own program
4753}
4854
@@ -53,3 +59,12 @@ register() {
5359unregister() {
5460 rm $STATEDIR/$prog
5561}
62+
63+status() {
64+ # are we running? If so, report
65+ if test -a $STATDIR/$prog; then
66+ echo "running"
67+ else
68+ echo "stopped"
69+ fi
70+}