LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2014, 11:51 AM   #1
sisk
LQ Newbie
 
Registered: Sep 2006
Posts: 24

Rep: Reputation: 0
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?
 
Old 11-17-2014, 08:55 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614Reputation: 614
Try removing the space before #!/bin/bash
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian insserv deamon starts but does not run my script stephaneeybert Linux - Server 1 10-11-2013 12:16 PM
LXer: Fixing VMware Workstation 8 and insserv LXer Syndicated Linux News 0 12-24-2011 02:10 AM
[SOLVED] How to get insserv without installing the package? catkin Ubuntu 9 07-14-2009 08:16 AM
insserv - can't handle that! Fulkabaster SUSE / openSUSE 3 01-08-2008 05:01 PM
insserv problem natgwil Linux - Newbie 1 09-25-2006 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration