Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you turn off and on services? (network, ssh...etc)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Tue Dec 19, 2006 4:15 am    Post subject: How do you turn off and on services? (network, ssh...etc) Reply with quote

I am used to SuSE and Red Hat where you can issue a: rcnetwork stop or service network stop

How do you do these commands in Gentoo?
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Tue Dec 19, 2006 4:27 am    Post subject: Reply with quote

Typically you use something like `/etc/init.d/net.eth0 stop`, for example.

The common commands are start, stop, status and zap, which lets you stop something when `/etc/init.d/whatever stop` fails (say the daemon dies or something).

Other scripts can define their own functions, such as iptables with save, reload and panic.

Take a look at the scripts in /etc/init.d
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Tue Dec 19, 2006 5:05 am    Post subject: Reply with quote

Hopeless wrote:
Typically you use something like `/etc/init.d/net.eth0 stop`, for example.

The common commands are start, stop, status and zap, which lets you stop something when `/etc/init.d/whatever stop` fails (say the daemon dies or something).

Other scripts can define their own functions, such as iptables with save, reload and panic.

Take a look at the scripts in /etc/init.d


Thx!
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Tue Dec 19, 2006 5:06 am    Post subject: Reply with quote

In recent Gentoo versions you can use eselect, an extensible, multi-purpose tool for many Gentoo administration tasks. This is a relatively new framework, added within the past year or so, but looks to be the wave of the future. Type eselect for an overview.

To manage services, use eselect rc start <service> and eselect rc stop <service>. Type eselect rc alone and/or see man eselect for more help.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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