[jira] [Commented] (JENA-635) Add LSB init daemon support to fuseki startup script
[ https://issues.apache.org/jira/browse/JENA-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13909459#comment-13909459 ] ASF subversion and git services commented on JENA-635: -- Commit 1570871 from [~andy.seaborne] in branch 'jena/branches/jena-fuseki-new-ui' [ https://svn.apache.org/r1570871 ] Improved fuseki service script (JENA-635) 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 Assignee: Andy Seaborne Priority: Minor Attachments: fuseki-init.d.patch 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)
[jira] [Commented] (JENA-635) Add LSB init daemon support to fuseki startup script
[ https://issues.apache.org/jira/browse/JENA-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13903338#comment-13903338 ] Andy Seaborne commented on JENA-635: I suggest it is just committed to trunk. Waiting for other testing isn't going to happen. 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 Assignee: Ian Dickinson Priority: Minor Attachments: fuseki-init.d.patch 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)
[jira] [Commented] (JENA-635) Add LSB init daemon support to fuseki startup script
[ https://issues.apache.org/jira/browse/JENA-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13890635#comment-13890635 ] Andy Seaborne commented on JENA-635: At the moment, the script works when used from the command line as well as an init.d script. echo helps for that use case. Would it be possible to detect and adjust accordingly? 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 Assignee: Ian Dickinson Priority: Minor Attachments: fuseki-init.d.patch 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)
[jira] [Commented] (JENA-635) Add LSB init daemon support to fuseki startup script
[ https://issues.apache.org/jira/browse/JENA-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13890716#comment-13890716 ] Ian Dickinson commented on JENA-635: Good thought, I'll investigate. 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 Assignee: Ian Dickinson Priority: Minor Attachments: fuseki-init.d.patch 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)
[jira] [Commented] (JENA-635) Add LSB init daemon support to fuseki startup script
[ https://issues.apache.org/jira/browse/JENA-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13890789#comment-13890789 ] Ian Dickinson commented on JENA-635: OK, I have checked and - for me at least - it does run from the command line. If the lsb init functions are available from the usual place it will load them, otherwise it default to using echo. I also tweaked the script so that the start file can be specified in the environment or via /etc/default 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 Assignee: Ian Dickinson Priority: Minor Attachments: fuseki-init.d.patch 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)