Newer
Older
wg-portal / scripts / wg-portal.service
@Christoph Haas Christoph Haas on 17 Dec 2020 342 bytes fix a few bugs, add instructions for raspberry pi
[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