LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to start programs automatically at boot? (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-start-programs-automatically-at-boot-50426/)

onchiman 03-18-2003 07:38 AM

How to start programs automatically at boot?
 
I'm trying to figure out how to get some programs to start at boot. I've installed Apache, Squid, Squid Guard and Dansguardian (a web content filtering program) on Mandrake 9.0. It's on a computer for my daughter so she can safely surf the web. In order for Dansguardian to work, Apache (HTTPD) needs to be started, then Squid, then Dansguardian. When I issue the commands from root "httpd", then "squid" finally "dansguardian". all load a run perfectly.

I'd like them to load at boot time. I've added /etc/sbin/httpd
/etc/sbin/squid and /etc/sbin/dansguardian to my rc.local script but they still don't load. Is there some other way to get these to load at boot time?:(

Crashed_Again 03-18-2003 09:37 AM

Try something like:

chkconfig --levels 345 httpd on
chkconfig --levels 345 squid on

It works in RedHat but I'm not sure if it does in Madrake. I never used Mandrake before.

carlywarly 03-18-2003 10:19 AM

Have you looked at Sys-V Init Editor - it's under Configuration - Boot and Init? It might help.


All times are GMT -5. The time now is 01:09 PM.