Koozali.org: home of the SME Server

How to stop services at boot ?

Nik

How to stop services at boot ?
« on: February 22, 2003, 12:46:52 PM »
Hi Pl !

Can anybody please tell me how to stop Services to startup everytime i boot my SME machine?

I want to stop these services from beeing started : ldap , mysql, auth and netbios-ssn.

Thanks
Nik

Jáder Marasca

Re: How to stop services at boot ?
« Reply #1 on: February 22, 2003, 03:37:48 PM »
There is a services contrib that allow you to do that.
Try at:
http://www.star-support.com/downloads/mitel/contrib/e-smith-service-control/

Nik

Re: How to stop services at boot ?
« Reply #2 on: February 23, 2003, 08:54:22 PM »
Hi

I already have this services control panel installed, but it allows you only to turn of a few services not all.

By the way the link you posted isn't working.

Nik

brian kirk

Re: How to stop services at boot ?
« Reply #3 on: February 24, 2003, 12:40:50 AM »
/sbin/e-smith/db configuration setprop servicename status disabled
should do it then /sbin/e-smith/signal-event console-save
Regards
Brian

Nik

Re: How to stop services at boot ?
« Reply #4 on: February 24, 2003, 09:53:14 PM »
Thanks Brian !

It worked fine ! Great ! thanks.
Only the mysql service wouldn't stop.
I don't know why, but for the other ones it worked fine.

Greetings
Nik

brian kirk

Re: How to stop services at boot ?
« Reply #5 on: February 25, 2003, 08:26:32 AM »
Glad that worked. Did you use mysqld for the mysql service?
Brian

Nik

Re: How to stop services at boot ?
« Reply #6 on: February 25, 2003, 08:19:38 PM »
Hi Brian !

Thanks for writing back so soon !
 Yes I've used the service mysqld and also tryed mysql both don't work.

Greetings
Nik

brian kirk

Re: How to stop services at boot ?
« Reply #7 on: February 26, 2003, 02:12:26 AM »
Hi Nik - grab the services contrib and use this for mysql
http://myezserver.com/downloads/mitel/contrib/e-smith-service-control/
Choose the one for your version of SME.
Other (slightly naughty) way is to edit /etc/home/configuration using midnight commander (mc) and change the enabled in the mysql line to disabled and issue a console-save event.
Good luck
Brian

Nik

Re: How to stop services at boot ?
« Reply #8 on: February 26, 2003, 05:43:11 PM »
Hi Brian !

Thanks for your reply !

I will try the second option because i have already installed the service manager, but there is no option to disable the mysqld service.

I will try it as soon as I´m home and then i will write you back.

Thanks
Nik

Scott Smith

Re: How to stop services at boot ?
« Reply #9 on: February 26, 2003, 05:57:22 PM »
As a general comment, you need to be careful about disabling individual services. You may disable a service that is used by another feature that you are unaware of.

What the service manager panel really needs to do is allow the enabling/disabling of SME features rather than linux serives. For example, if you elect to disable email, then the panel should know to shutdown qmail, fetchmail, etc. The point is, some "features" rely on more than one "service". The panel code should know to check other features before blindly shutting down services. Take mysqld for example. If Mitel starts using mysql to store config settings or for another feature, then shutting down mysql because you don't use webmail would cause problems. That is why I think the service manager panel should be redesigned as a feature manager panel.