Koozali.org: home of the SME Server

disable/disabling services

Offline purvis

  • *****
  • 567
  • +0/-0
disable/disabling services
« 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.



« Last Edit: June 27, 2011, 09:10:35 PM by purvis »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: disable/disabling services
« Reply #1 on: June 27, 2011, 09:25:34 PM »
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

Offline purvis

  • *****
  • 567
  • +0/-0
Re: disable/disabling services
« Reply #2 on: June 27, 2011, 09:49:58 PM »
thanks Stefano,
i am going to try again as you suggested.


Offline purvis

  • *****
  • 567
  • +0/-0
Re: disable/disabling services
« Reply #3 on: June 28, 2011, 12:14:42 AM »
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.

   
« Last Edit: June 28, 2011, 12:20:58 AM by purvis »

Offline purvis

  • *****
  • 567
  • +0/-0
Re: disable/disabling services
« Reply #4 on: June 28, 2011, 12:31:07 AM »
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


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: disable/disabling services
« Reply #5 on: June 28, 2011, 05:07:32 AM »
purvis

Start here with your reading
http://wiki.contribs.org/Db_command_tutorial
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.