The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Starting service at startup/reboot?

Discussion in 'General Discussion' started by SteveC, Jun 11, 2005.

  1. SteveC

    SteveC Member

    Joined:
    Aug 30, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I need to run the following command at startup to ensure my Java chat server (no, it's not IRC or anything like that) starts up in the event of a reboot:

    nohup java -jar bribble-1.5.34.jar &

    From what I've read, I need to create an INIT start/stop script for it but I'm not really sure how to do that. I've looked for tutorials and examples but all the ones I have found seem to be for much more complicated things.

    Can anybody help me out? I'm running Red Hat Linux by the way.

    Thanks
     
  2. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    paste ur line in /etc/rc.local ...it should work...paste it with full path name of command...i.e.

    /path/to/nohup .....
     
    #2 nickb, Jun 11, 2005
    Last edited: Jun 11, 2005
  3. SteveC

    SteveC Member

    Joined:
    Aug 30, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Fantastic! Thanks, I'll give that a try.
     
Loading...

Share This Page