View previous topic :: View next topic |
Author |
Message |
Thaidog Veteran

Joined: 19 May 2004 Posts: 1053
|
Posted: Tue Dec 19, 2006 4:15 am Post subject: How do you turn off and on services? (network, ssh...etc) |
|
|
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 |
|
 |
Sadako Advocate


Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Tue Dec 19, 2006 4:27 am Post subject: |
|
|
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 |
|
 |
Thaidog Veteran

Joined: 19 May 2004 Posts: 1053
|
Posted: Tue Dec 19, 2006 5:05 am Post subject: |
|
|
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 |
|
 |
timeBandit Bodhisattva


Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Tue Dec 19, 2006 5:06 am Post subject: |
|
|
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 |
|
 |
|
|
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
|
|