Browse Source

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

Christoph Biedl 7 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.
   # We exit if the user does not want us to try this.
   if [ "$INTERFACES" = "none" ]
   if [ "$INTERFACES" = "none" ]
   then
   then
-    echo "INTERFACES='none' in /etc/default/aoetools, not started."
+    log_action_msg "INTERFACES='none' in /etc/default/aoetools, not started."
     exit 0
     exit 0
   fi
   fi
 
 
@@ -91,10 +91,7 @@ do_start() {
 
 
   if [ ! -c /dev/etherd/discover ]
   if [ ! -c /dev/etherd/discover ]
   then
   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
     exit 1
   fi
   fi