load daemon at startup

Discussion in 'Linux VPS/Dedicated - General' started by thedark1, May 13, 2007.

  1. thedark1

    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
     
  2. thedark1

    thedark1 New Member

    come on guys....nobody knows, or nobody can be bothered to post an answer?????
     
  3. Caleb

    Caleb McDonald's Drywall Expert

    I'm kind of a noob here but try 'chkconfig --add daemon'
     
  4. khiltd

    khiltd New Member

    Is it something you can use xinetd for or does it absolutely have to be running constantly?
     
  5. Aea

    Aea New Member

    /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
     

Share This Page