+1 for inclusion, and for consideration of more FHS compatible directory 
layout, too. 

The 

  Environment=FUSEKI_HOME=/opt/fuseki
  Environment=FUSEKI_BASE=/etc/fuseki

lines in Osmas script makes the environment settings quite clear. However, I'm 
not sure if these completely override the settings in /etc/default/fuseki.

The path in

  ExecStart=/opt/fuseki/fuseki-server

unfortunately cannot be replaced by $FUSEKI_HOME ("Executable path is not 
absolute" - "Refusing").

If published as part of the docs, the memory setting should probably be

  Environment=JVM_ARGS=-Xmx2G

perhaps with a hint on how it should increase with total memory size.

Another sentence in 
https://jena.apache.org/documentation/fuseki2/fuseki-run.html#fuseki-service 
could clarify: "For newer systemd based Linux systems, the script 
'fuseki.service' is provided. Please adapt to your paths and settings."

Cheers, Joachim


> -----Ursprüngliche Nachricht-----
> Von: Osma Suominen [mailto:osma.suomi...@helsinki.fi]
> Gesendet: Freitag, 2. März 2018 15:15
> An: users@jena.apache.org
> Betreff: Re: CentOS 7/systemd startup script for fuseki
> 
> ajs6f kirjoitti 02.03.2018 klo 16:01:
>  > Is this worth including in the distribution as a file, or maybe just in
> "README"-type docs?
> 
> I think it would be worth including - after some consideration perhaps.
> There is already an old-style sysv init script in the Fuseki distribution 
> after all.
> 
> However, I would like some discussion first about what the proper way is to
> install Fuseki as a system level service on a typical Linux machine.
> As you can see from the tutorial I linked to from my previous message, it's
> currently a bit cumbersome to make it comply to the FHS. Naturally the chosen
> directory layout also affects the systemd unit file.
> 
> -Osma
> 
> --
> Osma Suominen
> D.Sc. (Tech), Information Systems Specialist National Library of Finland P.O. 
> Box
> 26 (Kaikukatu 4)
> 00014 HELSINGIN YLIOPISTO
> Tel. +358 50 3199529
> osma.suomi...@helsinki.fi
> http://www.nationallibrary.fi

Reply via email to