Joined: 12 Nov 2002
Location: Southern CA
|Posted: Sun Nov 17, 2002 10:35 am Post subject: Red Hat services management compatibility for new users
|I, as well as many others out there I would imagine, wondered how to start, stop, and restart services easily like I could in Red Hat by using "service <name> <action>". I happened to figure out a way while reading about another topic. Here are the steps to making this possible.
1. Login as root
2. cd into /usr/sbin
3. create a file called "service" containing these lines:
runscript /etc/init.d/$1 $2
4. chmod +x service
That's it, here is an example (service sshd restart)
I am logged on therefore I am...