Skip to content
Snippets Groups Projects
Commit 452ab72a authored by Erick Hitter's avatar Erick Hitter
Browse files

Improve for systemd

parent f61e49be
Branches
Tags
No related merge requests found
......@@ -27,16 +27,14 @@ PID="/run/$NAME.pid"
daemon_not_configured () {
if [ "$1" != "stop" ]
then
printf "\tplease configure %s by editing /etc/default/%s\n" $NAME $NAME
printf "\tand set the \"CONFIGURED\" variable to \"true\" to allow\n"
printf "\t%s to start\n" $NAME
log_daemon_msg "Configuration required! Update /etc/default/$NAME"
exit 0
fi
exit 0
}
config_checks () {
# Check that log is configured
if [ -z "$DAEMON_OPTIONS" ] || [ "$CONFIGURED" != "true" ]
if [ -z "$DAEMON_OPTIONS" ]
then
daemon_not_configured "$1"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment