WireGuard: delayed service update to avoid race condition

This commit is contained in:
bergware
2023-06-23 23:51:34 +02:00
parent 1c7c315dcd
commit d2dc649f8b
3 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/bash
job=/tmp/wgjob.tmp
reload=/usr/local/emhttp/webGui/scripts/reload_services
rm -f $job
echo "sleep 5;$reload $job"|at -M now 2>/dev/null
exit 0