Added support for additional command line parameters via sysconfig files.
This commit is contained in:
Markus Makela
2015-09-30 13:05:15 +03:00
parent 48fd181245
commit 4d7629038d
3 changed files with 15 additions and 2 deletions

View File

@ -40,12 +40,16 @@ _RETVAL_STATUS_NOT_RUNNING=3
# Sanity checks.
[ -x @CMAKE_INSTALL_PREFIX@/@MAXSCALE_BINDIR@/maxscale ] || exit $_RETVAL_NOT_INSTALLED
# Source additional command line arguments.
[ -f /etc/default/maxscale ] && . /etc/default/maxscale
#################################
# stop/start/status related vars
#################################
NAME=maxscale
DAEMON=@CMAKE_INSTALL_PREFIX@/@MAXSCALE_BINDIR@/maxscale
DAEMON_OPTS='--user=maxscale'
DAEMON_OPTS='--user=maxscale $MAXSCALE_OPTIONS'
# Source function library.
. /lib/lsb/init-functions