@@ -13,6 +13,7 @@ NIXPKGS=@nixpkgs@
1313
1414start_deps() {
1515 for i in $deps; do
16+ echo $i
1617 name=`$i/control name`
1718
1819 if ! test -a "$RCDIR/$name"; then
@@ -57,12 +58,28 @@ start() {
5758 # if not, continue
5859 # launch all hard dependencies
5960 start_deps
61+
62+ RETVAL=$?
63+
64+ if test $RETVAL != 0; then
65+ echo $prog failed
66+ exit $RETVAL
67+ fi
68+
6069 # launch all preferred dependencies
6170 echo "softdeps" $softdeps
6271 start_softdeps
6372 # launch our own program
6473 startService
6574 # if successful, then register
75+
76+ RETVAL=$?
77+
78+ if test $RETVAL != 0; then
79+ echo $prog failed
80+ exit $RETVAL
81+ fi
82+
6683 register
6784}
6885
@@ -74,6 +91,7 @@ stop() {
7491 fi
7592 # stop our own program
7693 stopService
94+ echo "unregistering"
7795 unregister
7896}
7997