Commits

Stefan Saasen committed c7c035b

Explicitly define log_daemon_msg and log_end_msg as those functions may not be available on RedHat systems (e.g. CentOS 5.x)

Comments (0)

Files changed (1)

 [ -r /etc/default/$NAME ] && . /etc/default/$NAME
 
 # Define LSB log_* functions.
+
+# To be replaced by LSB functions
+# Defined here for distributions that don't define
+# log_daemon_msg
+log_daemon_msg () {
+    echo $@
+}
+
+# To be replaced by LSB functions
+# Defined here for distributions that don't define
+# log_end_msg
+log_end_msg () {
+    retval=$1
+    if [ $retval -eq 0 ]; then
+        echo "."
+    else
+        echo " failed!"
+    fi
+    return $retval
+}
+
 # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
 . /lib/lsb/init-functions