fuseki.service 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. # =========
  18. #
  19. # Fuseki service configuration / unit file for systemd
  20. #
  21. # Usage:
  22. # ------
  23. #
  24. # 1. Place this file under /etc/systemd/system/
  25. # 2. Create a system user called "fuseki" and make sure it has permission
  26. # to access the Fuseki configuration and databases
  27. # 3. Adjust the paths and other settings below if necessary
  28. # 4. Activate using: sudo systemctl enable fuseki.service
  29. [Unit]
  30. Description=Fuseki
  31. [Service]
  32. # Edit environment variables to match your installation
  33. Environment=FUSEKI_HOME=/opt/fuseki
  34. Environment=FUSEKI_BASE=/etc/fuseki
  35. # Edit the line below to adjust the amount of memory allocated to Fuseki
  36. Environment=JVM_ARGS=-Xmx2G
  37. # Edit to match your installation
  38. ExecStart=/opt/fuseki/fuseki-server
  39. # Run as user "fuseki"
  40. User=fuseki
  41. Restart=on-abort
  42. # Java processes exit with status 143 when terminated by SIGTERM, this
  43. # should be considered a successful shutdown
  44. SuccessExitStatus=143
  45. ### By default, the service logs to journalctl only.
  46. ### If additional logging to a file is required, uncomment the following three lines
  47. # StandardOutput=syslog
  48. # StandardError=syslog
  49. # SyslogIdentifier=fuseki
  50. ### This logs to syslog. If, e.g., rsyslogd is used, you can provide a file
  51. ### /etc/rsyslog.d/fuseki.conf, consisting of the following two lines (uncommented)
  52. ### if $programname == 'fuseki' then /var/log/fuseki/stderrout.log
  53. ### if $programname == 'fuseki' then stop
  54. [Install]
  55. WantedBy=multi-user.target