Add reload command.
This commit is contained in:
parent
f9cbba8607
commit
3505349aee
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue