superjamie / minecraft-init-script

An initscript to start Minecraft or CraftBukkit on CentOS, Fedora, and Ubuntu
GNU General Public License v3.0
65 stars 31 forks source link

SETTINGSFILE gets wrong name on system boot #34

Closed andrewkreid closed 9 years ago

andrewkreid commented 10 years ago

I realise this script has been retired. Just thought I'd leave a note for those who come after me and have the same problem.

On RHEL-derived systems at least (don't know about Ubuntu etc.), the init script can fail to start on system boot. The reason is the following line (110)

SETTINGSFILE="/etc/default/$(basename $0)"

On boot, this resolves to something like /etc/default/S85minecraft, not /etc/default/minecraft. Since this file doesn't exist, the server doesn't start.

superjamie commented 9 years ago

Thanks for your comment, I too hope others find it useful.