1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-01-08 13:09:16 +00:00
ctrl/doc/example-messages/flush-dns-restart-wireguard.json

22 lines
634 B
JSON
Raw Normal View History

2022-03-11 10:44:19 +00:00
[
{
"toNodes": ["ship1","ship2"],
"method": "cliCommand",
2022-03-11 10:44:19 +00:00
"methodArgs": [
"bash",
"-c",
"cat /etc/hostname && systemd-resolve --flush-caches &&wg-quick down wg0 && sleep 2 && wg-quick up wg0"
],
"replyMethod": "file",
2022-03-11 10:44:19 +00:00
"ACKTimeout": 20,
"retries": 3,
"replyACKTimeout": 20,
"replyRetries": 3,
"methodTimeout": 20,
"replyMethodTimeout": 120,
"directory": "system/wireguard",
"fileName": "wireguard-down-up.log",
"relayViaNode": "central",
"relayReplyMethod": "console"
2022-03-11 10:44:19 +00:00
}
]