Include LSB above first use in init script
This commit is contained in:
parent
7f5d03d054
commit
ce4e04cabf
1 changed files with 4 additions and 4 deletions
|
|
@ -25,6 +25,10 @@ SCRIPTNAME=/etc/init.d/$PKGNAME
|
||||||
# Read configuration variable file if it is present
|
# Read configuration variable file if it is present
|
||||||
[ -r /etc/default/$PKGNAME ] && . /etc/default/$PKGNAME
|
[ -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
|
# Exit if the DAEMON is not set
|
||||||
if [ -z "$DAEMON" ]
|
if [ -z "$DAEMON" ]
|
||||||
then
|
then
|
||||||
|
|
@ -38,10 +42,6 @@ fi
|
||||||
# Load the VERBOSE setting and other rcS variables
|
# Load the VERBOSE setting and other rcS variables
|
||||||
[ -f /etc/default/rcS ] && . /etc/default/rcS
|
[ -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" ]
|
if [ -z "$START" -o "$START" != "yes" ]
|
||||||
then
|
then
|
||||||
log_warning_msg "Not starting $PKGNAME, edit /etc/default/$PKGNAME to start it."
|
log_warning_msg "Not starting $PKGNAME, edit /etc/default/$PKGNAME to start it."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue