From 68ca314a5b9582b9cd25279a92c5247025637c6b Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 17 Feb 2025 11:19:23 +0100 Subject: [PATCH] Update reload_services --- emhttp/plugins/dynamix/scripts/reload_services | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emhttp/plugins/dynamix/scripts/reload_services b/emhttp/plugins/dynamix/scripts/reload_services index 10278ec4b..b68fb0ca6 100755 --- a/emhttp/plugins/dynamix/scripts/reload_services +++ b/emhttp/plugins/dynamix/scripts/reload_services @@ -1,12 +1,12 @@ #!/bin/bash SERVICES="rpc nfsd ntpd nginx sshd avahidaemon samba" -# delayed execution -sleep ${1:-1} - # run & log functions . /etc/rc.d/rc.runlog +# delayed execution +sleep ${1:-1} + JOB=$(atq | grep -Pom1 '^\d+') if [[ -n $JOB ]]; then atrm $JOB 2>/dev/null