In the /etc/init.d/myservice script i have the following lines
### BEGIN INIT INFO
# Provides: myserviced
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start:
# Should-Stop:
# Default-Start:
# Default-Stop:
# Short-Description:
# Description: Bring up/down service
### END INIT INFO
Inspite of that the following error message is omitted while execting comman **/sbin/chkconfig --add myserviced
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: script jexec is broken: incomplete LSB comment.
insserv: missing `Required-Stop:' entry: please add even if empty.
myserviced 0:off 1:off 2:off 3:on 4:off 5:on 6:off
I had read the post Incomplete LSB comment. insserv: missing valid name for `Provides:' please add. But was of no help.
This error occurs on SUSE 11 but not on Rehat-6
Make sure your dashes are what is expected. In some copy-pasting I was doing, the interpreter wasn't seeing the expected character. So literally, this
# RequiredStart: $remote_fs $syslog $time
# RequiredStop: $remote_fs $syslog $time
# ShouldStart: $network $named slapd autofs ypbind nscd nslcd
# ShouldStop: $network $named slapd autofs ypbind nscd nslcd
became this:
# Required-Start: $remote_fs $syslog $time
# Required-Stop: $remote_fs $syslog $time
# Should-Start: $network $named slapd autofs ypbind nscd nslcd
# Should-Stop: $network $named slapd autofs ypbind nscd nslcd
The first set I copied from a pdf that contained an apparently non-printable character. I manually typed in the - and it worked.