This doesn't work because variable $PIDFILE doesn't exist, it's $PID_FILE

Anyway I am wondering if it's not safer to test: if [ -f /lib/lsb/init-functions ];
before importing and using it? For backward compatibility