diff options
author | Test_User <hax@andrewyu.org> | 2023-08-07 19:43:57 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2023-08-07 19:43:57 -0400 |
commit | a25d22a1c26203b7c9e2dcd33f4c602b0f82684d (patch) | |
tree | 0ce7ba3ab39ae16e730076d1e66bdeb4a41099a7 /rerun.sh | |
parent | 4f6fdc6d4faba1c268b8714be26f683de6884c77 (diff) | |
download | c_coupserv-a25d22a1c26203b7c9e2dcd33f4c602b0f82684d.tar.gz c_coupserv-a25d22a1c26203b7c9e2dcd33f4c602b0f82684d.zip |
A bunch of stuff, mostly related to client support
Diffstat (limited to 'rerun.sh')
-rwxr-xr-x | rerun.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rerun.sh b/rerun.sh new file mode 100755 index 0000000..2e82fc2 --- /dev/null +++ b/rerun.sh @@ -0,0 +1,11 @@ +#!/bin/bash +{ + start=`date -u +%s` + ./haxserv + uptime=$((`date -u +%s` - $start)) + if (($uptime < 10)); then + sleep $((10 - $uptime)) + fi + + exec "$0" "$@" +} |