github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/gosora_example.service (about) 1 # An example systemd service file 2 [Unit] 3 Description=Gosora 4 5 [Service] 6 User=gosora 7 Group=www-data 8 9 Restart=on-failure 10 RestartSec=10 11 # Set these to the location of Gosora 12 WorkingDirectory=/home/gosora/src 13 AmbientCapabilities=CAP_NET_BIND_SERVICE 14 # Make sure you manually run pre-run-linux before you start the service 15 ExecStart=/home/gosora/src/Gosora 16 17 ProtectSystem=full 18 PrivateDevices=true 19 20 [Install] 21 WantedBy=multi-user.target