hsqldb.init (hsqldb-2.6.0) | : | hsqldb.init (hsqldb-2.6.1) | ||
---|---|---|---|---|
skipping to change at line 35 | skipping to change at line 35 | |||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |||
# ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, | # ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG, | |||
# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | |||
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | |||
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
# $Id: hsqldb.init 4517 2011-10-11 04:20:11Z unsaved $ | # $Id: hsqldb.init 6310 2021-02-28 15:25:00Z unsaved $ | |||
# UNIX init script for HSQLDB. | # UNIX init script for HSQLDB. | |||
# IMPORTANT! Users running multiple HSQLDB ***Server processes*** must use a | # IMPORTANT! Users running multiple HSQLDB ***Server processes*** must use a | |||
# unique "SERVICE" name for each Server process. Most users will run just one | # unique "SERVICE" name for each Server process. Most users will run just one | |||
# server instance, possibly serving lots of database instances. Multi-server | # server instance, possibly serving lots of database instances. Multi-server | |||
# runners must change the value on the following line, and, if your system | # runners must change the value on the following line, and, if your system | |||
# uses chkconfig or insserv, you must change the value of "hsqldb" to the | # uses chkconfig or insserv, you must change the value of "hsqldb" to the | |||
# same thing (as SERVICE) in the chkconfig and/or insserv blocks a few | # same thing (as SERVICE) in the chkconfig and/or insserv blocks a few | |||
# lines down from here (incl. in the pidfile and config file paths). (Sorry | # lines down from here (incl. in the pidfile and config file paths). (Sorry | |||
skipping to change at line 58 | skipping to change at line 58 | |||
# This is the one setting which users will commonly change in this file. | # This is the one setting which users will commonly change in this file. | |||
# It's impossible to determine this script name (in a portable way) at boot-up | # It's impossible to determine this script name (in a portable way) at boot-up | |||
# time, since ${0} is entirely different for init scripts, depending on UNIX | # time, since ${0} is entirely different for init scripts, depending on UNIX | |||
# version. | # version. | |||
# See the "HyperSQL on UNIX" chapter of the HyperSQL User Guide for how to | # See the "HyperSQL on UNIX" chapter of the HyperSQL User Guide for how to | |||
# use this file. | # use this file. | |||
# This block only used by chkconfig systems (incl. SuSE Linux). | # This block only used by chkconfig systems (incl. SuSE Linux). | |||
# chkconfig: 345 87 13 | # chkconfig: 345 87 13 | |||
# description: HyperSQL Database, A High Performance Java Database Server | # description: HyperSQL Database, A High Performance Java Database Server | |||
# pidfile: /var/run/hsqldb.pid | # pidfile: /run/hsqldb.pid | |||
# config: /etc/sysconfig/hsqldb | # config: /etc/sysconfig/hsqldb | |||
# This block only used by insserv systems (incl. SuSE Linux). | # This block only used by insserv systems (incl. SuSE Linux). | |||
### BEGIN INIT INFO | ### BEGIN INIT INFO | |||
# Provides: hsqldb | # Provides: hsqldb | |||
# Required-Start: $syslog $remote_fs $network $named | # Required-Start: $syslog $remote_fs $network $named | |||
# Required-Stop: | # Required-Stop: | |||
# Default-Start: 3 5 | # Default-Start: 3 5 | |||
# Default-Stop: 0 1 2 6 | # Default-Stop: 0 1 2 6 | |||
# Short-Description: HyperSQL Database Server | # Short-Description: HyperSQL Database Server | |||
skipping to change at line 100 | skipping to change at line 100 | |||
# wish by using the INVOC_ADDL_ARGS setting (this includes running | # wish by using the INVOC_ADDL_ARGS setting (this includes running | |||
# multiple HSQLDB Servers of various types). | # multiple HSQLDB Servers of various types). | |||
# Template config file can be obtained from the HyperSQL distribution. | # Template config file can be obtained from the HyperSQL distribution. | |||
# On the day I write this, I have it located at "sample/hsqldb.cfg" in the | # On the day I write this, I have it located at "sample/hsqldb.cfg" in the | |||
# distro, but that could change. You need to copy then edit it before it | # distro, but that could change. You need to copy then edit it before it | |||
# will work. | # will work. | |||
# Recommended locations for runtime configuration file: | # Recommended locations for runtime configuration file: | |||
# Darwin, SunOS, Solaris: /etc/hsqldb.conf | # Darwin, SunOS, Solaris: /etc/hsqldb.conf | |||
# (However, Sunfreeware.com builds use /usr/local/etc). | # (However, Sunfreeware.com builds use /usr/local/etc). | |||
# Linux: /etc/sysconfig | # Linux: /etc/hsqldb/hsqldb.conf (works well to put sqltool.rc here too) | |||
# FreeBSD: /usr/local/etc/hsqldb.cfg | # FreeBSD: /usr/local/etc/hsqldb.cfg | |||
# (Replace the base name "hsqldb" with whatever you have SERVICE set to at | # (Replace the base name "hsqldb" with whatever you have SERVICE set to at | |||
# the top of this file). | # the top of this file). | |||
# You can put it at any of these locations and it will be used. For | # You can put it at any of these locations and it will be used. For | |||
# your sanity, only put a file at one of these locations. | # your sanity, only put a file at one of these locations. | |||
# -- blaine.simpson@admc.com | # -- blaine.simpson@admc.com | |||
set +u | set +u | |||
skipping to change at line 183 | skipping to change at line 183 | |||
SHUTDOWN_OPTION= | SHUTDOWN_OPTION= | |||
SERVER_ADDL_CLASSPATH= | SERVER_ADDL_CLASSPATH= | |||
INVOC_ADDL_ARGS= | INVOC_ADDL_ARGS= | |||
case "`uname`" in | case "`uname`" in | |||
Darwin) # I.e. Mac OS X. I don't know about older Mac OSes. | Darwin) # I.e. Mac OS X. I don't know about older Mac OSes. | |||
LOGFILE=/var/log/${SERVICE}.log | LOGFILE=/var/log/${SERVICE}.log | |||
PIDFILE=/var/run/${SERVICE}.pid | PIDFILE=/var/run/${SERVICE}.pid | |||
;; | ;; | |||
Linux) | Linux) | |||
LOGFILE=/var/log/${SERVICE}.log | LOGFILE=/var/log/${SERVICE}.log | |||
PIDFILE=/var/run/${SERVICE}.pid | PIDFILE=/run/${SERVICE}.pid | |||
;; | ;; | |||
FreeBSD) | FreeBSD) | |||
LOGFILE=/var/log/${SERVICE}.log | LOGFILE=/var/log/${SERVICE}.log | |||
PIDFILE=/var/run/${SERVICE}.pid | PIDFILE=/var/run/${SERVICE}.pid | |||
;; | ;; | |||
SunOS) | SunOS) | |||
LOGFILE=/var/log/${SERVICE}.log | LOGFILE=/var/log/${SERVICE}.log | |||
PIDFILE=/etc/${SERVICE}.pid | PIDFILE=/etc/${SERVICE}.pid | |||
;; | ;; | |||
*) | *) | |||
LOGFILE=/var/log/${SERVICE}.log | LOGFILE=/var/log/${SERVICE}.log | |||
PIDFILE=/etc/${SERVICE}.pid | PIDFILE=/etc/${SERVICE}.pid | |||
;; | ;; | |||
esac | esac | |||
for candidate in /etc/sysconfig/${SERVICE} /etc/${SERVICE}.conf \ | for candidate in /etc/hsqldb/${SERVICE}.conf \ | |||
/etc/sysconfig/${SERVICE} /etc/${SERVICE}.conf \ | ||||
/etc/${SERVICE}.cfg /Library/Hsqldb/conf/${SERVICE}.cfg \ | /etc/${SERVICE}.cfg /Library/Hsqldb/conf/${SERVICE}.cfg \ | |||
/Library/Hsqldb/${SERVICE}.cfg /usr/local/etc/${SERVICE}.cfg; do | /Library/Hsqldb/${SERVICE}.cfg /usr/local/etc/${SERVICE}.cfg; do | |||
[ -f $candidate ] && { | [ -f $candidate ] && { | |||
CFGFILE=$candidate | CFGFILE=$candidate | |||
break | break | |||
} | } | |||
done | done | |||
[ -n "$CFGFILE" ] || { | [ -n "$CFGFILE" ] || { | |||
echo "No global config file found in any of allowed locations" 1>&2 | echo "No global config file found in any of allowed locations" 1>&2 | |||
exit 11 | exit 11 | |||
End of changes. 5 change blocks. | ||||
5 lines changed or deleted | 6 lines changed or added |