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 01-17-2005, 06:08 PM   #1
jimwelc
Member
 
Registered: Nov 2004
Location: Boston
Posts: 30

Rep: Reputation: 15
Question Installing a daemon


Hello All,

I am very green to linux/unix and I am attempting to a bash script that will launch a daemon(service). I need this service to start each time the system boots. Does anyone know how to do this -or- can someone point me in the right direction? Any help will be greatly appreciated.

Best Regards,
-Jim
 
Old 01-17-2005, 06:30 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,375

Rep: Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468
What distribution / version of linux are you running?
What service are you trying to start?
Did you install this service from source code or from the original OS install?

The exact procedure depends on the linux distribution.
 
Old 01-17-2005, 10:20 PM   #3
jimwelc
Member
 
Registered: Nov 2004
Location: Boston
Posts: 30

Original Poster
Rep: Reputation: 15
Hello Michaelk,

The distribution I am working with is RedHat 9.0. Basically I am a windows developer trying to move to the Linux world and I'm trying to figure out what is needed to install a service via a bash script. Is there some kind of OS config file I have to modify or is there some special location I have to place the file to ensure it gets started at boot time. Any help you can provide will be greatly appreciated.

-Jim

The exact procedure depends on the linux distribution.
 
Old 01-18-2005, 07:36 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,375

Rep: Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468Reputation: 5468
Here is how Redhat controls services. The startup scripts are located in /etc/init.d.
http://www.redhat.com/docs/manuals/l...down-sysv.html

If you do not need runlevel control you can start a daemon by adding a command in the /etc/rc.local file. This is the last initialization script to run.
 
  


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
Daemon arunachalam Linux - Newbie 1 09-08-2005 06:22 AM
daemon or not? ZX_SA Linux - General 2 08-08-2005 01:13 AM
daemon nobu Slackware 1 01-09-2003 08:02 AM
How do I launch a daemon only once? jkcunningham Linux - General 8 11-26-2002 09:33 PM
What is a daemon? nutshell Linux - General 3 02-26-2002 06:25 AM

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

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