Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Red Hat services management compatibility for new users
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
riceboy50
n00b
n00b


Joined: 12 Nov 2002
Posts: 48
Location: Southern CA

PostPosted: Sun Nov 17, 2002 10:35 am    Post subject: Red Hat services management compatibility for new users Reply with quote

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:

#!/bin/sh
runscript /etc/init.d/$1 $2

4. chmod +x service

That's it, here is an example (service sshd restart)
Have fun! :wink:
_________________
I am logged on therefore I am...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum