mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-13 14:31:15 +00:00
fix a few bugs, add instructions for raspberry pi
This commit is contained in:
19
scripts/wg-portal.service
Normal file
19
scripts/wg-portal.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[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
|
Reference in New Issue
Block a user