load daemon at startup

#1
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
 

Aea

New Member
#5
/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