gre-on-wg/gre-on-wg@.service
2023-06-15 13:51:32 +02:00

15 lines
380 B
Desktop File

[Unit]
Description=GRETAP over wg-quick network for %I
After=wg-quick@%I
Wants=wg-quick@%I
PartOf=gre-on-wg.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/local/bin/gre-on-wg up %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]
WantedBy=multi-user.target