Help answer threads with 0 replies.
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 04-04-2002, 09:17 AM   #1
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, 09:23 AM   #2
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
If there is a script in /etc/init.d then you can usually call the script with the parameters start/stop/restart.
/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, 09:27 AM   #3
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.

Old 04-04-2002, 08:23 PM   #4
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.


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

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