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 ...
- 08-04-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 1
.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!
- 08-04-2011 #2
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


Reply With Quote