LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trouble with insserv (https://www.linuxquestions.org/questions/linux-software-2/trouble-with-insserv-4175525567/)

sisk 11-16-2014 11:51 AM

Trouble with insserv
 
I'm trying to set up auto-run for a minecraft server and running into problems with insserv. It's complaining about every single required part of the LSB comment, but as far as I can see it's all properly formatted. When I try to install it I get:
Code:

insserv: Script minecraft 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 `minecraft'
insserv: Default-Stop  undefined, assuming empty stop  runlevel(s) for script `minecraft'

The LSB comment for the script in question is:

Code:

#!/bin/bash
### BEGIN INIT INFO
# Provides: minecraft
# Required-Start: $local_fs $remote_fs screen-cleanup
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Minecraft server
# Description: Starts the minecraft server
### END INIT INFO

What have I done wrong here?

AlucardZero 11-17-2014 08:55 AM

Try removing the space before #!/bin/bash


All times are GMT -5. The time now is 05:59 AM.