2018-07-20 04:59:11 +00:00
# An example systemd service file
[Unit]
2018-07-24 08:45:01 +00:00
Description = Gosora
2018-07-20 04:59:11 +00:00
[Service]
Type = simple
2018-07-24 05:40:26 +00:00
# You might want to create a user / group for Gosora and set these to further harden your system, although this this might not work right now, if we're listening directly on port 80 / 443
2018-07-20 04:59:11 +00:00
#User=gosoraservice
#Group=gosoraservice
Restart = on-failure
RestartSec = 10
2018-07-24 08:45:01 +00:00
# Set these to the location of Gosora
WorkingDirectory = /home/gosora
# Make sure you manually run pre-run-linux before you start the service
ExecStart = /home/gosora/Gosora
2018-07-20 04:59:11 +00:00
2018-08-07 04:57:11 +00:00
# If things don't work for some reason, try putting # in-front of the following three lines until it does and open an issue on the bug tracker
2018-08-07 04:14:28 +00:00
ProtectSystem = full
2018-08-07 04:53:43 +00:00
PrivateDevices = true
PrivateUsers = true
2018-08-07 04:14:28 +00:00
2018-07-20 04:59:11 +00:00
[Install]
WantedBy = multi-user.target