Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

insserv: missing `Required-Stop:' entry: please add even if empty

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

like image 609
Talespin_Kit Avatar asked Dec 20 '22 06:12

Talespin_Kit


1 Answers

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

# 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 

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.

like image 128
Irwin Avatar answered Dec 27 '22 19:12

Irwin