You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by cl...@apache.org on 2023/03/31 09:06:31 UTC

[jena] 01/01: Create sparqler.service

This is an automated email from the ASF dual-hosted git repository.

claude pushed a commit to branch Claudenw-patch-2
in repository https://gitbox.apache.org/repos/asf/jena.git

commit 9d7482edae91b3453144a29e5e5b7f019455bb98
Author: Claude Warren <cl...@apache.org>
AuthorDate: Fri Mar 31 10:06:23 2023 +0100

    Create sparqler.service
---
 .../jena-fuseki-main/sparqler/sparqler.service     | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/jena-fuseki2/jena-fuseki-main/sparqler/sparqler.service b/jena-fuseki2/jena-fuseki-main/sparqler/sparqler.service
new file mode 100644
index 0000000000..1452652898
--- /dev/null
+++ b/jena-fuseki2/jena-fuseki-main/sparqler/sparqler.service
@@ -0,0 +1,39 @@
+## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
+
+#
+# This script runs sparqlr under systemd.  
+#
+# Assumptions:
+#  sparqler is installed in /etc/jena/sparqler
+#  apache2.service is installed in systemd
+#  apache2 is configured to redirect specific requests to the fuseki server
+#
+# Install
+#  create a symbolic link from /lib/systemd/system/sparqler.service to /etc/jena/sparqler.service
+#  execute "sudo systemctl daemon-reload"
+#  execute "sudo systemctl enable sparqler.service"
+#  execute "sudo systemctl start sparqler.service"
+# 
+#  Fuseki will now be running and if apache2 is configured properly requests should be redirected to it.
+#
+# Update
+#  execute "sudo systemctl daemon-reload"
+#  execute "sudo systemctl restart sparqler.service
+
+[Unit]
+Description=SPARQLR server
+After=apache2.service
+Documentation=https://jena.apache.org/documentation/fuseki2/index.html
+
+[Service]
+Type=simple
+Environment=BACKGROUND=0
+WorkingDirectory=/etc/jena/sparqler
+RemainAfterExit=yes
+ExecStart=/etc/jena/sparqler/run-sparqler
+ExecStop=/usr/bin/pkill -f fuseki
+TimeoutStartSec=0
+
+[Install]
+WantedBy=multi-user.target
+