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:30 UTC

[jena] branch Claudenw-patch-2 created (now 9d7482edae)

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

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


      at 9d7482edae Create sparqler.service

This branch includes the following new commits:

     new 9d7482edae Create sparqler.service

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[jena] 01/01: Create sparqler.service

Posted by cl...@apache.org.
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
+