piratebox-web/systemd/piratebox.service

20 lines
376 B
SYSTEMD
Raw Normal View History

2019-08-04 08:28:03 +00:00
[Unit]
Description=PirateBox - Share Freely
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/piratebox
User=piratebox
Group=piratebox
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
Restart=on-failure
RestartSec=5s
RuntimeDirectory=piratebox
RuntimeDirectoryMode=775
[Install]
WantedBy=multi-user.target