Koozali.org: home of the SME Server
Contribs.org Forums => General Discussion => Topic started by: purvis on June 27, 2011, 09:06:24 PM
-
Disabling services from even starting.
I need to lower the resources need by sme server as much as possible.
Although i have specific needs, for others, i am sure their needs would probably vary from mine.
Not being an expert, i need expert advice on how to keep certain services from running.
I used the "mv" command to move links from the /etc/rc.d/rc7.d directory to newly created directory /etc/rc.d/rc7.d/disable. That did not seem to work for me.
It would be great if there was a stop shopping to finding the answers on how to start, stop, or remove services that come in the default configuration of the current SME Server.
For me, I need to lower the memory and cpu load used by SME Server to have it run VMware server for 5 concurrent virtual machines, but that is just me.
I know that some services have a dependency on other services.
Could we get a listing of the how to disable services.
Thanks in advance.
I would think the listing would also be need to include how to restore links in the /etc/rc.d/rc7.d of the various services that would be removed if one wanted to restore those services.
Does a update also restore those default SME services? If so, would I need a special cron job to remove those services I want to keep removed.
I will probably try to use SME version 8 for my purposes after some more testing, if i can get the os loaded on some new computers with newer hardware. But I am only asking for how to of removing services in the current version, which is 7.5.1.
-
purvis, a simple
config setprop servicename status disabled
followed by
service servicename stop
will do the trick
please search the forums, the wiki and the documentation (developer manual too), thank you
-
thanks Stefano,
i am going to try again as you suggested.
-
well, that did not remove the services
i want to remove the services permanently
here are some of the ones i want to remove that i figure will not break the os system.
dhcpd
spamd
freshclam
clamav
imap
imaps
lpd
ldap
pptpd
possibly the acpi
basically anything that might slow down the cpu, reduce memory, or anything that will take cpu time slices that i figure i do not need.
-
ok i see that might of stopped the services
i was using the command "ps aux" to see what services might be running and seeing pid statuses showing up
-
purvis
Start here with your reading
http://wiki.contribs.org/Db_command_tutorial