mirror of
https://github.com/DJSundog/wg-portal.git
synced 2024-11-27 09:00:03 -05:00
19 lines
342 B
SYSTEMD
19 lines
342 B
SYSTEMD
|
[Unit]
|
||
|
Description=WireGuard Portal
|
||
|
ConditionPathExists=/opt/wg-portal/wg-portal-amd64
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User=root
|
||
|
Group=root
|
||
|
|
||
|
Restart=on-failure
|
||
|
RestartSec=10
|
||
|
|
||
|
WorkingDirectory=/opt/wg-portal
|
||
|
ExecStart=/opt/wg-portal/wg-portal-amd64
|
||
|
EnvironmentFile=/opt/wg-portal/wg-portal.env
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|