load daemon at startup

thedark1

New Member
I have 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/chat/data

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/chat/data/daemon

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

thanks
 
/home/user/chat/data/.daemon

Maybe? I don't recall the exact format, but I do remember you need a dot to execute the file. Maybe it's

./home/usr/char/data/daemon
 
Top