Page 1 of 1

How to start en stop service in gentoox

Posted: Sun Aug 08, 2004 10:20 pm
by Stevio
Well this is my first time using linux. And i am wondering if there is a menu in gentoox to show all the service that are running on the xbox. While searching on the internet it seems redhad have such menu.

I know there is a standard service manager which can run very fine. It has a service called Alarm Deamon etc. But in this manager i cant see services like samba, proftpd. The ones that startup. I want to disable programs for security reasons.

For example i want to disable these services in a nice menu, just like the windows services manager. (cause i dont know how to do it in console , list en kill services)

Other question: what is the command for listing all the services in the command prompt in linux?

Btw: found out webmin can do the job, but wondering how i can do it in gentoox. without webmin

Hope someone can tell this how to do this.

Posted: Sun Aug 08, 2004 10:47 pm
by nobspangle
On unix systems services are called daemons. To list the current running daemons

Code: Select all


Code: Select all

rc-update show
to stop a daemon (e.g. samba)

Code: Select all

/etc/init.d/samba stop
you can also use start restart and occasionally reload depending on what you are doing. To make a daemon run on startup.

Code: Select all

rc-update add samba default
to stop a daemon from running on startup

Code: Select all

rc-update del samba
more info here

Posted: Mon Aug 09, 2004 12:21 pm
by Stevio
Thx, this helps me a lot. Its working now. I am gonna read that handbook-link u quoted in ur post. :) 8)

Posted: Tue Aug 10, 2004 5:26 pm
by nobspangle
also of use are the commands

Code: Select all


Code: Select all

ps aux

Posted: Wed Aug 11, 2004 11:10 am
by Stevio
Well i just found what i wanted :)

But from some services i dont know what its for and which services i can disable without running into problems, fails etc, while booting linux.

rc-update gives me the following:

dcron [ started ]
fanctl [ started ]
gpm [ started ]
local [ started ]
net.eth0 [ started ]
netmount [ started ]
sysklogd [ started ]

rc-update show gives me this:

Xbox root # rc-update show
alsasound |
alsasound.old |
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
consolefont | boot
crypto-loop |
cupsd |
dcron | default nonetwork
domainname |
esound |
fam |
fanctl | default nonetwork
fbset |
freevo-record |
freevo-web |
gpm | default nonetwork
hdparm |
hostname | boot
hotplug |
inetd |
keymaps | boot
lisa |
local | default nonetwork
localmount | boot
modules | boot
net.eth0 | default nonetwork
net.lo | boot
net.ppp0 |
netmount | default nonetwork
nscd |
numlock |
portmap |
proftpd | default nonetwork
reslisa |
rmnologin | boot
rsyncd |
samba | default nonetwork
serial | boot
sshd | default nonetwork
switch |
synclient |
sysklogd | default nonetwork
urandom | boot
webmin | default nonetwork
winbind |
wlan |
xdm |
xfs |

I think that these services are used for the main linux booting process. Hoping someone can tell me something about these services.

I want the system very secure. So services that wont be used can be disabled. I would like to know which services cant be bedisabled. Maybe some users of this forum has nice tips for me. (for example secure ssh for users etc.) Everything is welcome.

Thx in advance

Posted: Wed Aug 11, 2004 8:34 pm
by shedt
yes, I would like to learn more about this as well. I will be trying to run Half-Life on Gentoox through wine, so i would love to learn to disable all of the services that i would not need. I'm going to google these services.

Posted: Thu Aug 12, 2004 5:09 pm
by nobspangle
dcron is the cron daemon, a cron daemon runs scheduled jobs (a bit like the task scheduler in windows)
fanctl controls the speed of the fan based on the system temperature to stop the xbox from overheating
gpm is the program that let's you use your mouse in the console
local is a script that starts stuff listed in /etc/conf.d/local.start when the xbox loads
net.eth0 is your network connection
netmount has something to do with the network
syslogd is the system logging daemon, it's responsible for recording all that goes on on your system.

These are the bare essentials for your system (except for gpm).