You are not logged in.
Pages: 1
Hi,
As I work on Red Hat servers during the day, I missed the service command (service blah start|restart|stop|status). So I decided to write a version (no command code with the rhel version I can assure you).
This supports the init.d and rc.d file structure and also have code to try and provide the status on a service via the /var/run/[service] file. Ultimately is dam simple bit of bash, but I find it very useful.
Everyone is more that welcome to use this. Its GPL and is up on github @
https://github.com/jondkent/scripts
Hepl available via:
service -h [or --help]
Would be nice to know if this is of use to anyone. Enhancements very welcome.
Regards,
Jon
Offline
Hey, just out of curiosity, any different functions provided by 'service' over the builtin '/sbin/rc.d' command provided by the initscripts package?
$ rc.d
usage: rc.d <action> <daemon> [daemon] ...
rc.d list [started|stopped]
rc.d help
<daemon> is the name of a script in /etc/rc.d
<action> can be a start, stop, restart, reload, status, ...
WARNING: initscripts are free to implement or not the above actions.
e.g: rc.d list
rc.d list started
rc.d help
rc.d start sshd gpm
Scott
Edit: I see what you did now...made it more multi-distro and with the PID checking.
Last edited by firecat53 (2011-10-01 18:00:21)
Offline
Moving to Community Contribs.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Hey, just out of curiosity, any different functions provided by 'service' over the builtin '/sbin/rc.d' command provided by the initscripts package?
$ rc.d usage: rc.d <action> <daemon> [daemon] ... rc.d list [started|stopped] rc.d help <daemon> is the name of a script in /etc/rc.d <action> can be a start, stop, restart, reload, status, ... WARNING: initscripts are free to implement or not the above actions. e.g: rc.d list rc.d list started rc.d help rc.d start sshd gpm
Scott
Edit: I see what you did now...made it more multi-distro and with the PID checking.
Yup, thats idea as I wanted this to be as useful to me (and others) as I could.
Jon
Offline
Pages: 1