1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00
ctrl/doc/example-messages/flush-dns-restart-wireguard.json
2022-03-11 11:44:19 +01:00

22 lines
No EOL
647 B
JSON

[
{
"toNodes": ["ship1","ship2"],
"method": "REQCliCommand",
"methodArgs": [
"bash",
"-c",
"cat /etc/hostname && systemd-resolve --flush-caches &&wg-quick down wg0 && sleep 2 && wg-quick up wg0"
],
"replyMethod": "REQToFile",
"ACKTimeout": 20,
"retries": 3,
"replyACKTimeout": 20,
"replyRetries": 3,
"methodTimeout": 20,
"replyMethodTimeout": 120,
"directory": "system/wireguard",
"fileName": "wireguard-down-up.log",
"relayViaNode": "central",
"relayReplyMethod": "REQToConsole"
}
]