LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-15-2007, 10:17 AM   #1
msteiner
Member
 
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 ?

Thanks,
 
Old 06-15-2007, 10:43 AM   #2
gigaloo15801
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, 11:13 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
msteiner,
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration