From 452ab72a465c22a85308f952505e1ff42bfc776e Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Tue, 27 Jun 2017 20:17:45 -0700
Subject: [PATCH] Improve for systemd

---
 init.sh | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/init.sh b/init.sh
index a749b72..9f860ef 100755
--- a/init.sh
+++ b/init.sh
@@ -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
-- 
GitLab