Codeprogrammers / codecraft-init-script

Linux Init script for launching a Minecraft server on system startup
codeprogrammers.net
GNU General Public License v2.0
21 stars 4 forks source link

UNDO: Removed commit d6ecbfa7ae220dbd2af7644a6518cfa92cb04355 from upstream. #17

Closed Paswaru closed 12 years ago

Paswaru commented 12 years ago

Changed the lockfile path back to /var/lock/subsys/. On Red Hat/CentOS, if the lock wasn't in subsys, when you went to reboot your server, init.d wouldn't think the service was running and would not tell it to stop. So the server would reboot without the ramdisk being copies back to disk.

A better fix for this would be to detect which distro was running and set the directory based on what that distro is looking for.

For more info on detecting distro:

http://code.activestate.com/recipes/576676-how-to-detect-the-linux-distribution-from-an-initd/ http://linuxmafia.com/faq/Admin/release-files.html

dghodgson commented 12 years ago

Sorry it took me so long. I ended up working on other stuff, but I finally got back to this and got the necessary commits merged in. There's one other commit I want to merge, but it's a small change so I might just copy over the code and give you credit for it in the commit message.

Your changes are currently in the develop branch btw.