23 lines
506 B
Desktop File
23 lines
506 B
Desktop File
[Unit]
|
|
Description=PIGWay standalone Web Manager
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
DynamicUser=yes
|
|
StateDirectory=pigway-web-manager
|
|
StateDirectoryMode=0700
|
|
Environment=PIGWAY_DATA=/var/lib/pigway-web-manager
|
|
Environment=PIGWAY_PORT=6001
|
|
Environment=PYTHONDONTWRITEBYTECODE=1
|
|
ExecStart=/usr/bin/python3 /usr/local/lib/pigway-web-manager/app/server.py
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|