Koozali.org: home of the SME Server

starting services

Sasha

starting services
« on: February 17, 2000, 11:33:46 PM »
Which template file controls the startup of services on the server ?

I have installed lpd and configured it with Samba on 3.1, but whenever
I change settings via the manager, lpd does not automatically start after a re-boot.
I have to re-install lpd to get it to replace the startup settings.

I know it has to do with rc.d, but how and where ?

cryblood

RE: starting services
« Reply #1 on: February 18, 2000, 12:50:00 AM »
If I am remembering right:

/etc/e-smith/templates/etc/rc.d  

is the path to the templates.  Whenever you add a user or change settings via the manager those templates are used to "re-generate" the corresponding configuration file.  (there may be other things that cause this, I can't remember off the top of my head)

editing the rc.d template should get your lpd to continue to load.  There is more info on this subject in the section on modifying e-smith located on the www.e-smith.org page.

Charlie Brady

RE: starting services
« Reply #2 on: February 18, 2000, 11:42:17 AM »
Sasha wrote:

> Which template file controls the startup of services on the
> server ?
>
> I have installed lpd and configured it with Samba on 3.1, but
> whenever I change settings via the manager, lpd does not
> automatically start after a re-boot. I have to re-install lpd
> to get it to replace the startup settings.
>
> I know it has to do with rc.d, but how and where ?

The service startup symlinks in /etc/rc.d/rc3.d/ are not part of a template, but are put there by perl code found under /etc/e-smith/events/actions/...

You can just edit that code, or you can do:

ln -sf ../init.d/lpd /etc/rc.d/rc3.d/S60lpd

whenever you need to, or you could wait for e-smith 4.0 which will include printing.

Charlie