LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-11-2007, 02:33 PM   #1
haxxor23
LQ Newbie
 
Registered: May 2007
Posts: 2

Rep: Reputation: 0
start a daemon script at startup


I have a centos webserver, with a chat program that uses a complied c daemon. I have to start it by hand every time i reboot by going to the path
/home/user/data/daemon

and then typing ./daemon

thats all, no config or additional params necessary.

I want this daemon script to start automatically at server startup, but I can't figure out how. Ive added the following line to rc.local but it doesn't work

/home/user/data/daemon/daemon

so what am I doing wrong, and how can i get it to load at startup?

thanks
 
Old 05-11-2007, 03:43 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"Ive added the following line to rc.local but it doesn't work"

What distribution are you using? Not all distributions use rc.local as the place for user startup scripts.

--------------------------
Steve Stites
 
Old 05-12-2007, 07:59 AM   #3
haxxor23
LQ Newbie
 
Registered: May 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Its centos 4.3 , with a modified kernel that runs on Virtuozzo (it's a vps). kernel is 2.6.9-023stab043.1
 
  


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
Problems in running a script as a daemon at startup fahad26 Programming 5 03-07-2012 07:24 AM
How to run startup script/daemon as a user other than root? Akhran Debian 2 02-04-2006 01:20 AM
reconfigure snort daemon startup script hari_seldon99 Linux - Security 1 05-18-2004 01:40 AM
start daemon after gnome startup? jpbarto Linux - Software 1 08-17-2003 04:10 AM
syslog startup daemon script jpflager Linux - Software 6 03-05-2003 12:59 PM

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

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