Browse Source

Use LSB logging functions in init script. Closes: #830914

Christoph Biedl 6 years ago
parent
commit
e9d294b50b
1 changed files with 2 additions and 5 deletions
  1. 2 5
      debian/aoetools.init

+ 2 - 5
debian/aoetools.init

@@ -73,7 +73,7 @@ do_start() {
   # We exit if the user does not want us to try this.
   if [ "$INTERFACES" = "none" ]
   then
-    echo "INTERFACES='none' in /etc/default/aoetools, not started."
+    log_action_msg "INTERFACES='none' in /etc/default/aoetools, not started."
     exit 0
   fi
 
@@ -91,10 +91,7 @@ do_start() {
 
   if [ ! -c /dev/etherd/discover ]
   then
-    echo
-    echo "Missing devices under /dev/etherd/.  Please run" >&2
-    echo "  aoe-mkdevs /dev/etherd" >&2
-    echo "and try again." >&2
+    log_failure_msg "Missing devices under /dev/etherd/.  Please run  aoe-mkdevs /dev/etherd and try again." >&2
     exit 1
   fi