I'm currently trying to get a script to work, which needs to define some LSB functions. This is happening here:
echo "step 1"
# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
# Load the VERBOSE setting and other rcS variables
[ -f /etc/default/rcS ] && . /etc/default/rcS
echo "step 2"
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions
echo "step 3"
But the script aborts execution after step2, I never get the output "step 3". This script is the start script for deluged. It used to work, but I noticed that my deluge didn't work anymore and I traced the problem down to this line of code.
Does anyone know what might cause this? The init-functions file exists in the specified directory.