Koozali.org: home of the SME Server

Services

uniQ

Services
« on: December 14, 2003, 08:46:15 AM »
I discovered that a number of services are running that I don't need.

EG.

/etc/init.d/atalk (Appletalk)

I tried chkconfig, but when I reboot, they're back!

And ideas?

         -uniQ

marco

Re: Services
« Reply #1 on: December 14, 2003, 09:55:45 AM »
use this command:
/sbin/e-smith/config setprop atalk status disabled
then reboot

or use the service control contrib....do a search for it.

Del

Re: Services
« Reply #2 on: December 14, 2003, 02:40:56 PM »
Hi uniQ,
The services contrib can be found here http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/e-smith-service-control/
Another great contrib, thanks Darrell.
Regards,
Del

uniQ

Re: Services
« Reply #3 on: December 14, 2003, 09:41:29 PM »
Service control contrib DDS.

         -uniQ

Arne

Re: Services
« Reply #4 on: December 17, 2003, 02:01:38 AM »
One thing I'm wondering about .. I think the e-smith run in runlevel 7. Here is a directory with the name /etc/rc7.d I think this directory contains a set of links that basicly starts up all services. If it were not for the sme servers habit of rewriting things it should be possible to just delete or comment out some of those links. I tried to take a look to see if there were a template that would rewrite the content of this directory. Could'nt find it. Anybody who knows if it will work to just change some of thos links ??

By the way.. anybody who knows which one of those services it could be a good idea to remove ? (Guess some of them are basic system prosesses that can not so easy be removed.)

Arne

Re: Services
« Reply #5 on: December 17, 2003, 02:39:29 AM »
I made an experiment just not. Renamed /etc/rcd.7 to /etc/rcd.7-old.
Made a new directory rc7.d and copied over only the startup links I wanted.
Actualy it was not only the links that apeared to be copied over to the new directory but also the files it was pointing at. Anyhow, it seems to be working so far. I rebooted and it came up only with those prosesses I har specified.

By the way there is some prosesses I don't know if can be removed or not:

nut ?
random ?
masq ?
diald (think I will remove that)
network ?
dhcpcd (Think I will remove that)

Anybodu who knows which can be removed (I guess this experiment easily could end up with no boot up at all ..)

Arne

Re: Services
« Reply #6 on: December 17, 2003, 03:25:51 AM »
Did some more experiments and removed something like 30-50 % of all the standard processes. The remaining prosesses seems to be running rather nice. Believe that the memory consumption is less. (Took avay squid among other.)

I belive that it is pssible to have diffrent versions of the /etc/rc7.d directory, so you can optimize the performance to a maximum.

Have no idea if such a change or modification could involve some unvanted side effects.

Anyhow, the orginal /etc/rcd.7 directory can easily be brought back after a short renaming.

Arne

Re: Services
« Reply #7 on: December 17, 2003, 03:46:47 AM »
Seems to be possible to remove something like 75 % of the processes if you are running some specialised kind of installation, lets say a database server or a mail server. Should believe this could maintain a lot of power to the remaining processes (!!??)

Don't know anything about theese things exept for my testing just now, and would be courious about some more info...

Greg Allt

Re: Services
« Reply #8 on: January 07, 2004, 03:52:18 AM »
Don't know for a fact but don't think you should remove network.  I think that is the service which controls the networking as a whole

when I am working on a server and don't want to reboot it after making a network change (ie Nic driver, hostname etc, ip address etc) from the console manager, I issue the command

service network restart

from the # prompt which gives me the following output

Shutting down interface eth0:                              [   OK   ]
Disabling IPv4 packet forwarding:                          [   OK   ]
Setting network parameters:                                [   OK   ]
Bringing up interface lo:                                  [   OK   ]
Bringing up interface eth0:                                [   OK   ]

and then if I perform ifconfig to confirm my new settings they have been activated.


============
remove the x in rogersx.com to reply directly to me