Download your favorite Linux distribution at LQ ISO.
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 05-11-2007, 03:33 PM   #1
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

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


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

Old 05-11-2007, 04:43 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"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, 08:59 AM   #3
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


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

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