Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Jason on June 04, 2003, 01:21:44 PM

Title: How to start a service
Post by: Jason on June 04, 2003, 01:21:44 PM
How do i add a service to start up . I want to run an additional service on start up where do i add it to thanks
Title: Re: How to start a service
Post by: Andrew on June 04, 2003, 03:31:20 PM
G'day Jason,

I'm a bit of a newbie to linux but try typing "service" start at the command line.

Alternatively if it is a standard service like http or smtp there is a nice add-on for the SME manager that adds an entry into the left hand pane and allows you to start and stop services from the web interface.  Its called e-smith-service-control - try searching for it.

Cheers,
A.
Title: Re: How to start a service
Post by: jason on June 04, 2003, 04:33:05 PM
Thanks i know how to start the service from the command line but i want it to start up automatically when i start the box. i hate having to start the machine then go to the command line to start a service for somthing that i use all the time. It would be good if i could just reboot and not have to worry about it. i just want to add the CDWserver start command to start up
Title: Re: How to start a service
Post by: byte on June 04, 2003, 05:04:03 PM
Hi,

try looking at this its about disabling service but just change disable to enable and what service name you want to use

http://forums.contribs.org/index.php?topic=4939.msg17276#msg17276

Hope this helps!

Byte
Title: Re: How to start a service
Post by: Jáder Marasca on June 05, 2003, 12:10:30 AM
Or if it´s a different thing, like ddclient or Firebird DB you could create a new symbolic link on /etc/rc.d/rc7.d

Just watch the others... and good luck!

I have done this to Hylafax / Firebird / ddclient
Title: Re: How to start a service
Post by: Henrik on June 05, 2003, 12:28:17 AM
Edit this file: At the end of /etc/rc.d/rc.local file put the command to start the service.

/Henrik
Title: Re: How to start a service
Post by: Charlie on June 05, 2003, 12:42:46 AM
Henrik wrote:

> Edit this file: At the end of /etc/rc.d/rc.local file put the
> command to start the service.

No, there's never any need to edit rc.local, as has been said here quite a few times now.

Jáder had the correct answer.

Charlie