tools/hw2irc/restart
changeset 15806 823cf18be1fc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/hw2irc/restart	Wed May 26 16:32:43 2021 -0400
@@ -0,0 +1,8 @@
+#!/bin/bash
+sudo -u nobody killall java; sleep 3; sudo -u nobody killall -9 java;
+sleep 30;
+#sudo -u nobody java net.ercatec.hw2ircsvr.Connection netserver.hedgewars.org 1337 >>out.sheepy 2>>err.sheepy & disown
+sudo -u nobody bash -c 'java net.ercatec.hw2ircsvr.Connection netserver.hedgewars.org 1337 >>out.sheepy 2>&1 & disown'
+sleep 122
+#sudo -u nobody java net.ercatec.hw2ircsvr.Connection >>out 2>>err & disown
+sudo -u nobody bash -c 'java net.ercatec.hw2ircsvr.Connection >>out 2>&1 & disown'