RedHat "Service" Clone (Linux)

One of the utilities I find myself using often in systems administration is the "service" program. This utility is a RedHat specific item, so I've used it in the past on Mandrake, Fedora, RedHat, etc. It's not a terribly complicated command really, just useful. I decided to try and recreate the command on my Debian-based distros (Kubuntu, mostly).

The only change I made in this service clone is the addition of a -l and --list option, which lists all the available services you can control with the service command, making it easier to figure out what you're doing. The "debug" option also doesn't do anything right now, since I couldn't find any particularly useful debug output to give. The script otherwise pretty much mirrors the RedHat util functionality.

If you find this script useful, please contact me and let me know. If you're a Python hacker and have some suggestions for me on better coding style, more concise code, faster code, etc. then contact me and let me know so I can get better! If you find this script and find that it works on distributions other than Debian or Debian derivatives, contact me with the name of the distro and any changes you needed to make for it to work. If you have any other suggestions, send 'em on over!

Service Clone download:

Right-click and choose "Save As" or left-click to view the script in your browser.
View Download