Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I use Ubuntu 11.04 Desktop to run a Minecraft Server. I recently got a script to start my server (/etc/init.d/minecraft start) and I need to make a restart script ...
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    1

    Question .sh timed loop command

    Hello,
    I use Ubuntu 11.04 Desktop to run a Minecraft Server. I recently got a script to start my server (/etc/init.d/minecraft start) and I need to make a restart script to restart the server every hour. The command to do so is

    /etc/init.d/minecraft restart

    I need to make a .sh to insert this command every hour. The server is on 24/7 so the script running in the background is fine. Thank you so much!

  2. #2
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Location
    Torres Vedras, PT
    Posts
    274
    wouldn't a cron job be enough?

    If you don't know cron, please ask for help (it may seem difficult, but is quite easy after you know). man pages are man 5 crontab, man crontab and man cron. More on the web.

    Regards
    Luis

Posting Permissions

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