Find the answer to your Linux question:
Results 1 to 2 of 2
I run game servers on weekends, and I have a script that starts the servers for me, and what I have tried to do is set up another script to ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    42

    Getting a Script to Run at Boot

    I run game servers on weekends, and I have a script that starts the servers for me, and what I have tried to do is set up another script to restart the game servers at boot if there is a power outage or the server restarts for some reason. However it isn't working. The following are the lines that I use to add the start scripts. Anyone have any ideas what I am doing wrong?

    Code:
    cp scripts/hlds_boot -d /etc/init.d
    update-rc.d -n hlds_boot defaults 99
    The script does exist and it does get copied to /etc/init.d

  2. #2
    Just Joined!
    Join Date
    Oct 2006
    Posts
    42
    Figured it out. Needed to remove the "-n" switch so that the line reads like this:
    Code:
    update-rc.d hlds_boot defaults 99

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...