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:14:28 +00:00
# Let's hope this doesn't blow up on me
ProtectSystem = full
2018-07-20 04:59:11 +00:00
[Install]
WantedBy = multi-user.target