fuseki.service 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Usage:
  2. # ------
  3. #
  4. # 1. Place this file under /etc/systemd/system/
  5. # 2. Adjust the paths and other settings below if necessary
  6. # 3. Activate using: sudo systemctl enable fuseki.service
  7. [Unit]
  8. Description=Fuseki database for DOKK
  9. After=network.target
  10. [Service]
  11. # Edit environment variables to match your installation
  12. Environment=FUSEKI_HOME=/opt/fuseki/
  13. Environment=FUSEKI_BASE=/opt/fuseki/run/
  14. # Edit the line below to adjust the amount of memory allocated to Fuseki
  15. Environment=JVM_ARGS=-Xmx3G
  16. # Edit to match your installation
  17. ExecStart=/opt/fuseki/fuseki-server
  18. # Run as user "fuseki"
  19. User=fuseki
  20. Group=fuseki
  21. # If set to on-abort, the service will be restarted only if the service process
  22. # exits due to an uncaught signal not specified as a clean exit status. If set
  23. # to on-watchdog, the service will be restarted only if the watchdog timeout
  24. # for the service expires. If set to always, the service will be restarted
  25. # regardless of whether it exited cleanly or not, got terminated abnormally by
  26. # a signal, or hit a timeout.
  27. Restart=always
  28. # Configures the time to sleep before restarting a service (as configured with
  29. # Restart=). Takes a unit-less value in seconds, or a time span value such as
  30. # "5min 20s". Defaults to 100ms.
  31. RestartSec=1
  32. # Takes a list of exit status definitions that, when returned by the main service
  33. # process, will be considered successful termination, in addition to the normal
  34. # successful exit code 0 and the signals SIGHUP, SIGINT, SIGTERM, and SIGPIPE.
  35. # Java processes exit with status 143 when terminated by SIGTERM, this
  36. # should be considered a successful shutdown
  37. SuccessExitStatus=143
  38. ### By default, the service logs to journalctl only.
  39. ### If additional logging to a file is required, uncomment the following three lines
  40. # StandardOutput=syslog
  41. # StandardError=syslog
  42. # SyslogIdentifier=dokk
  43. ### This logs to syslog. If, e.g., rsyslogd is used, you can provide a file
  44. ### /etc/rsyslog.d/dokk.conf, consisting of the following two lines (uncommented)
  45. ### if $programname == 'dokk' then /var/log/dokk/stderrout.log
  46. ### if $programname == 'dokk' then stop
  47. [Install]
  48. WantedBy=multi-user.target