LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-18-2003, 07:38 AM   #1
onchiman
LQ Newbie
 
Registered: Mar 2003
Posts: 8

Rep: Reputation: 0
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?
 
Old 03-18-2003, 09:37 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
Old 03-18-2003, 10:19 AM   #3
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatically launching programs during start up nanjil Linux - Newbie 2 08-09-2005 11:17 PM
Start programs automatically for xfce4 laiboonh Linux - Newbie 2 01-03-2005 09:59 PM
Automatically starting programs for individual users at boot johnleemk Linux - General 1 09-13-2004 05:24 AM
How do I start programs automatically with boot up? Kasperisa Linux - Newbie 6 07-15-2004 03:29 PM
Programs Automatically Start When I log In To KDE deft Linux - Software 4 04-06-2004 07:54 PM


All times are GMT -5. The time now is 06:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration