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