Announcement

Collapse
No announcement yet.

Restart program after restart...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jackster
    replied
    .................. < I put them in as i only used 2 letters for the ""








    Just pointing out


    Sadly some people are using the TeamSpeak server so i can't test it out.

    Thanks dude, Ill +1 if i can.

    Leave a comment:


  • Lorem-Ipsum
    replied
    Originally posted by Jackster View Post
    I didn't have enough words in my post. Sorry if you took it bad in some way?
    LOL. I didn't notice the .'s until you apologised for it XD

    I was more interested in the code XD.

    Leave a comment:


  • Jackster
    replied
    Originally posted by Lorem-Ipsum View Post
    ooo, nice and simple then.

    I didn't have enough words in my post. Sorry if you took it bad in some way?


    You will need to add the semi colon after a space to the end of the line above. (put in red)
    Ah thanks i will give it a go.

    Leave a comment:


  • Lorem-Ipsum
    replied
    Originally posted by Jackster View Post
    ..........
    ooo, nice and simple then.

    Code:
    #!/bin/sh
    #
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.
    
    touch /var/lock/subsys/local ;
    nohup /home/gameserver/linux_svr &
    You will need to add the semi colon after a space to the end of the line above. (put in red)

    Leave a comment:


  • Jackster
    replied
    #!/bin/sh
    #
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.

    touch /var/lock/subsys/local
    ..........

    Leave a comment:


  • Lorem-Ipsum
    replied
    Originally posted by Jackster View Post
    So just the run command?? one per line?
    I guess so.

    If you want me to check post the contents of your /etc/rc.d/rc.local file and I'll have a look.

    Leave a comment:


  • Jackster
    replied
    So just the run command?? one per line?

    Leave a comment:


  • Lorem-Ipsum
    replied
    Its different on different linux OS's mate.

    I presume you're still using centOS so, as root add:

    Code:
    nohup /home/gameserver/linux_svr &
    to your /etc/rc.d/rc.local file.

    You will need the full location from the root / directory.

    linux_svr must be executable though.

    Leave a comment:


  • Jackster
    replied
    I know were to put it, It's configuring to put my file into that code.

    Leave a comment:


  • Lorem-Ipsum
    replied
    you put it in the .bashrc in your home folder. You then have to log out and log in again for it to take effect.

    Leave a comment:


  • Jackster
    started a topic Restart program after restart...

    Restart program after restart...

    So i was given:

    Code:
    # Startup ventrilo servers.
    
    VENPATH=/home/ventrilo
    VENBIN=$VENPATH/ventrilo_srv
    
    su ventrilo -c "$VENBIN -f$VENPATH/ventrilo_srv -d"
    
    renice -5 `cat $VENPATH/ventrilo_srv.pid`
    So if i had a program in "/home/gameserver/linux_svr"

    And to start it you have to do "nohup ./server_svr &"


    How would that fit in?

    Thanks,
Working...
X