From ce4e04cabf52c8a64f1bf108c377e893fd057593 Mon Sep 17 00:00:00 2001 From: Daniel Tullemans Date: Tue, 13 Dec 2016 17:51:37 -0600 Subject: [PATCH] Include LSB above first use in init script --- scripts/octoprint.init | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/octoprint.init b/scripts/octoprint.init index 97601ebb..90cc936b 100644 --- a/scripts/octoprint.init +++ b/scripts/octoprint.init @@ -25,6 +25,10 @@ SCRIPTNAME=/etc/init.d/$PKGNAME # Read configuration variable file if it is present [ -r /etc/default/$PKGNAME ] && . /etc/default/$PKGNAME +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions + # Exit if the DAEMON is not set if [ -z "$DAEMON" ] then @@ -38,10 +42,6 @@ fi # Load the VERBOSE setting and other rcS variables [ -f /etc/default/rcS ] && . /etc/default/rcS -# Define LSB log_* functions. -# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. -. /lib/lsb/init-functions - if [ -z "$START" -o "$START" != "yes" ] then log_warning_msg "Not starting $PKGNAME, edit /etc/default/$PKGNAME to start it."