Ian Dickinson created JENA-635:
----------------------------------

             Summary: Add LSB init daemon support to fuseki startup script
                 Key: JENA-635
                 URL: https://issues.apache.org/jira/browse/JENA-635
             Project: Apache Jena
          Issue Type: Improvement
          Components: Fuseki
            Reporter: Ian Dickinson
            Priority: Minor


I have made some improvements to the Fuseki startup script, so that it works 
more easily as an init.d service script. Specifically, I have:

* allowed default values for variables to be loaded from /etc/default, so that 
changing local setup does not require editing the script

* switched to using lsb_daemon_log rather than echo for output

* added fallbacks so that echo will be used if the lsb init functions are not 
available

* switched to using 'ps -p' rather than 'kill -0' to find out if a process is 
running

* made the location of the PID file more flexible.

This is a call for review of these changes, and in particular test reports from 
other environments. I have tested on Ubuntu 12.04LTS, 13.10 and 14.04. I have 
not tested on MaxOS, cygwin or other Linux distros, and would welcome test 
reports and implementation improvements.

The full revised script is in a gist: https://gist.github.com/ephemerian/8802368



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to