20 lines
376 B
SYSTEMD
20 lines
376 B
SYSTEMD
|
[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
|