Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-15-2007, 11:17 AM   #1
Registered: Aug 2006
Posts: 41

Rep: Reputation: 15
starting service automatically on reboot

Via the command line, how do I set up services to start automatically after reboot, for example, squid, httpd ?

Old 06-15-2007, 11:43 AM   #2
LQ Newbie
Registered: Jun 2007
Posts: 6

Rep: Reputation: 0
Set up a logon script.
1-Go in your home directory.
2-Open .bashrc
3-Put your command there

Everytime you are going to log on every commands that you put there will run at startup.

I hope that will help.

goodluck !
Old 06-15-2007, 12:13 PM   #3
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
You do not tell us what your distro is, and as they often do things differently, that makes it difficult for us to offer tailored advice.
Many distros have a graphical setup for "system services", where you can start them, stop them, and set them to start at boot, or not.
If you want to do it from the command line, learn about the files in /etc/rc?.d/ /etc/init.d/ and the contents of /etc/rc.local

Just reading some of those files should give you the idea.


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 reboot padideh Linux - Server 7 10-12-2006 06:54 AM
Ubuntu won't reboot automatically Marrea Ubuntu 0 07-22-2005 05:25 AM
Automatically Restart Service tulip4heaven Linux - General 1 04-23-2005 03:11 AM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 07:39 PM
startup the service automatically ashley75 Linux - General 4 09-24-2003 03:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 PM.

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