LinuxQuestions.org
Review your favorite Linux distribution.
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 04-04-2002, 10:17 AM   #1
coopergr
LQ Newbie
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Red hat
Posts: 9

Rep: Reputation: 0
Question restarting of services/daemons


hey guys,

does anyone know of the quickest way to start a daemon/service on restart - up until now I have been doing it manually ??

much appreciated ...
 
Old 04-04-2002, 10:23 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
If there is a script in /etc/init.d then you can usually call the script with the parameters start/stop/restart.
Ex:
/etc/init.d/proftpd restart

The above command would restart my ftp server.
If you want these services to be started at boot then you should add links in the /etc/rcX.d directories for the proper runlevel.
They are named Sxxxscriptname the S means to start the server the xxx is the number which decides when it's started and the scriptname is just a logical name.

Most decent distributions have gui's to help you get these things done but don't ask me about those because I've never used them.
 
Old 04-04-2002, 10:27 AM   #3
coopergr
LQ Newbie
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Red hat
Posts: 9

Original Poster
Rep: Reputation: 0
restarting daemons

great thanks a lot for that - I had done it with Linuxconf up until now but was curious as to how to do it manually.

Regards,
 
Old 04-04-2002, 09:23 PM   #4
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
When I want to add something to my bootup, I usually just copy one of the existing scripts in /etc/rc.d/init.d and modify/rename it. Then create links to start/kill it in the runlevel dirs, as Mik pointed out. It's pretty simple actually.
 
  


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
loading services/daemons at startup sirpimpsalot Linux - Newbie 3 03-05-2004 07:45 PM
Start Services/Daemons exkor5000 Linux - Newbie 1 11-16-2003 06:00 PM
How do i eliminate services or daemons running at the beginning? dark poet Linux - Software 1 09-16-2003 03:51 PM
Restarting services... Norrin Linux - Newbie 2 09-03-2003 10:04 PM
restarting services juanb Linux - General 1 01-02-2003 08:20 AM


All times are GMT -5. The time now is 04:56 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