#
# svscan svscan (scan and run services)
#
-# chkconfig: 345 66 45
+# chkconfig: 345 14 89
#
# description: svscan (scan and run services) is a server part of the daemontools suite.
#
# Check that networking is up.
if is_no "${NETWORKING}"; then
- msg_Network_Down svscan
+ msg_network_down svscan
exit 1
fi
fi
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/svscan
else
- msg_Already_Running svscan
+ msg_already_running svscan
fi
;;
stop)
if [ -f /var/lock/subsys/svscan ]; then
msg_stopping svscan
killproc svscan
- svc -d -x /var/run/service/* \
- $(find /var/run/service/* -maxdepth 0 -follow -perm -1000|sed s-\$-/log-)
+ svc -d -x $SVSCAN_DIR/* \
+ $(find $SVSCAN_DIR/* -maxdepth 0 -follow -perm -1000|sed s-\$-/log-)
rm -f /var/run/svscan.pid /var/lock/subsys/svscan >/dev/null 2>&1
else
- msg_Not_Running svscan
+ msg_not_running svscan
exit 1
fi
;;
exit $?
;;
*)
- msg_Usage "$0 {start|stop|status|restart}"
+ msg_usage "$0 {start|stop|status|restart}"
exit 1
esac