From d24c2f9308a34c62c95da28c410a34ffe9fbf83d Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Sat, 15 Apr 2023 03:10:22 +1000 Subject: [PATCH] timestamp is a command and not a variable --- tools/arkmanager | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/arkmanager b/tools/arkmanager index 1faea7f..327a3ef 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -1398,8 +1398,8 @@ doRun() { fi elif [ "$pid" == "$(pgrep --pgroup $serverpid)" ]; then restartserver=1 - echo "${timestamp}: Server has double-forked and cannot be effectively monitored" - echo "${timestamp}: Restarting server" + echo "$(timestamp): Server has double-forked and cannot be effectively monitored" + echo "$(timestamp): Restarting server" notify "${notifyMsgDoubleForked:-Server has daemonized itself - restarting}" for (( i = 0; i < 5; i++ )); do if ! kill -0 "-$serverpid"; then