By: Patrick Ethier user 07 Feb 2017 at 11:39 a.m. CST

4 Responses
Patrick Ethier gravatar
Please refer to this link on how to generate proper LSB init scripts: http://www.thegeekstuff.com/2012/03/lsbinit-script /etc/init.d/gluu-server-3.0.0 should have a header that looks like this: ``` ### BEGIN INIT INFO # Provides: gluu # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: GLUU Server # Description: GLUU service ### END INIT INFO ```

By Ganesh Dutt Sharma Account Admin 08 Feb 2017 at 2:02 a.m. CST

Ganesh Dutt Sharma gravatar
Hi Patrick, We have this block in our scripts. ``` DETECTED_OS=`detect_os` if [[ $DETECTED_OS == "Ubuntu 14.04" || $DETECTED_OS == "Ubuntu 16.04" || $DETECTED_OS == "Debian GNU/Linux 8" ]]; then ``` ### BEGIN INIT INFO # Provides: gluu-server # Required-Start: $all # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: This shell script takes care of starting and stopping # gluu-server (the Gluu Chroot Server) # Description: Gluu server chroot environment. # # ### END INIT INFO And that works good. I'll still go in more details.

By Patrick Ethier user 08 Feb 2017 at 2:43 a.m. CST

Patrick Ethier gravatar
``` user@hosts:~$ sudo update-rc.d gluu-server-3.0.0 defaults insserv: Script gluu-server-3.0.0 is broken: incomplete LSB comment. insserv: missing `Provides:' entry: please add. insserv: missing `Required-Start:' entry: please add even if empty. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: missing `Default-Start:' entry: please add even if empty. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Script gluu-server-3.0.0 is broken: incomplete LSB comment. insserv: missing `Provides:' entry: please add. insserv: missing `Required-Start:' entry: please add even if empty. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: missing `Default-Start:' entry: please add even if empty. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Script gluu-server-3.0.0 is broken: incomplete LSB comment. insserv: missing `Provides:' entry: please add. insserv: missing `Required-Start:' entry: please add even if empty. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: missing `Default-Start:' entry: please add even if empty. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Script gluu-server-3.0.0 is broken: incomplete LSB comment. insserv: missing `Provides:' entry: please add. insserv: missing `Required-Start:' entry: please add even if empty. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: missing `Default-Start:' entry: please add even if empty. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Script gluu-server-3.0.0 is broken: incomplete LSB comment. insserv: missing `Provides:' entry: please add. insserv: missing `Required-Start:' entry: please add even if empty. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: missing `Default-Start:' entry: please add even if empty. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Script gluu-server-3.0.0 is broken: incomplete LSB comment. insserv: missing `Provides:' entry: please add. insserv: missing `Required-Start:' entry: please add even if empty. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: missing `Default-Start:' entry: please add even if empty. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Script gluu-server-3.0.0 is broken: incomplete LSB comment. insserv: missing `Provides:' entry: please add. insserv: missing `Required-Start:' entry: please add even if empty. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: missing `Default-Start:' entry: please add even if empty. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Script gluu-server-3.0.0 is broken: incomplete LSB comment. insserv: missing `Provides:' entry: please add. insserv: missing `Required-Start:' entry: please add even if empty. insserv: missing `Required-Stop:' entry: please add even if empty. insserv: missing `Default-Start:' entry: please add even if empty. insserv: missing `Default-Stop:' entry: please add even if empty. insserv: Default-Start undefined, assuming empty start runlevel(s) for script `gluu-server-3.0.0' ```

By Patrick Ethier user 10 Feb 2017 at 10:56 a.m. CST

Patrick Ethier gravatar
Ok, Ubuntu is very specific... The solution, in the block you posted above, is to remove the TAB spacing in front of the comment blocks and everything seems to work as expected. Because it is a comment block, it does not need to be indented under the if statement.

By Ganesh Dutt Sharma Account Admin 21 Feb 2017 at 4:20 a.m. CST

Ganesh Dutt Sharma gravatar
Thanks Patrick for the solution. I'm sorry, I missed your update to the issue. You're right, the initial <tab> was the reason for the failure to the compliance. I'll update the script and it'll be available in coming updates. Thanks again.