Hello, I'm running a server on a dedicated Linux server from the command line.
I need a simple restarter to restart it every hour.
Will this work?
I tried using cron... But I have no real sense of it.. It seems easy, but can it be run in the background as daemon?Code:#!/bin/bash while : ; do killall java java -Xmx192M server sleep 3600 killall java java -Xmx192M server done
Sorry guys, but my brother is the one all about linux, I do use linux, but not much from the command line.
Thanks.
(I hope I don't look like a moron like others on this forums, Rofl.)


LinkBack URL
About LinkBacks




Reply With Quote





Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum