gre-on-wg/gre-on-wg@.service

16 lines
380 B
SYSTEMD
Raw Permalink Normal View History

2023-06-15 01:57:56 +02:00
[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
2023-06-15 02:20:27 +02:00
ExecStart=/usr/local/bin/gre-on-wg up %i
ExecStop=/usr/local/bin/gre-on-wg down %i
2023-06-15 13:51:32 +02:00
ExecReload=/bin/sh -c '/usr/local/bin/gre-on-wg down "$1" && /usr/local/bin/gre-on-wg up "$1"' - %i
2023-06-15 01:57:56 +02:00
[Install]
WantedBy=multi-user.target