Closed Paswaru closed 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.
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