LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   how to auto start services at startup in debian? (https://www.linuxquestions.org/questions/debian-26/how-to-auto-start-services-at-startup-in-debian-129318/)

legolin 12-27-2003 03:36 PM

how to auto start services at startup in debian?
 
hi

im using woody and i whant to start apm automatically at startup. the problem is, that the system does not power off after shutdown.

if i start apm manually with /sbin/modprobe apm, the system goes really down after shutdown ;-)

i need to know where i can control the services at startup.


thanx

legolin penguin

:Pengy:

andrew001 12-27-2003 04:00 PM

You could put a line in /etc/rc.d/rc.local like:

/sbin/modprobe apm

Or you could just edit /etc/modules.conf so the module is loaded automatically.

legolin 12-28-2003 02:31 AM

hi,

thankx for your fast answer. i steel have a problem.
i don't have any /etc/rc.d/rc.local script in my woody box. under redhat there is one. should i create one and put this line in it? is it going to be run as root?.

in modules.conf i found the line
#DO NOT MODIFY THIS FILE!
what means it is not a good idea to do it. or , should i?


have a nice day!

legolin pinguin

tokkee 12-28-2003 10:02 AM

Quote:

Originally posted by legolin
i don't have any /etc/rc.d/rc.local script in my woody box. under redhat there is one. should i create one and put this line in it? is it going to be run as root?.
simply creating a /etc/rc.d/rc.local script in woody won't help, since this is a redhat (and afaik suse) specific thing. what you need to do, depends on what you really want to do. 'man init' is probably a good starting point for you.


Quote:

Originally posted by legolin
in modules.conf i found the line
#DO NOT MODIFY THIS FILE!
what means it is not a good idea to do it. or , should i?

editing this file, probably won't help much either. simply add a line with 'apm' to /etc/modules will help


cheers


All times are GMT -5. The time now is 10:52 AM.