19 lines
410 B
SYSTEMD
19 lines
410 B
SYSTEMD
|
[Unit]
|
||
|
Description=Captive Portal web ui service
|
||
|
Wants=basic.target
|
||
|
After=basic.target network.target
|
||
|
ConditionFileIsExecutable=/var/lib/python-capport/start-control.sh
|
||
|
ConditionPathIsDirectory=/var/lib/python-capport/venv
|
||
|
|
||
|
[Service]
|
||
|
User=capport
|
||
|
Type=notify
|
||
|
WatchdogSec=10
|
||
|
ExecStart=/var/lib/python-capport/start-api.sh
|
||
|
Restart=always
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|