Add reload command.

This commit is contained in:
redxef 2023-06-15 13:51:32 +02:00
parent f9cbba8607
commit 3505349aee
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -9,6 +9,7 @@ Type=oneshot
RemainAfterExit=yes RemainAfterExit=yes
ExecStart=/usr/local/bin/gre-on-wg up %i ExecStart=/usr/local/bin/gre-on-wg up %i
ExecStop=/usr/local/bin/gre-on-wg down %i ExecStop=/usr/local/bin/gre-on-wg down %i
ExecReload=/bin/sh -c '/usr/local/bin/gre-on-wg down "$1" && /usr/local/bin/gre-on-wg up "$1"' - %i
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target