Create PID dir on initialization

This commit is contained in:
Guillaume Lefranc 2015-07-30 12:44:14 +02:00
parent d04719407a
commit 40f4156ec4

View File

@ -37,6 +37,9 @@ _RETVAL_NOT_RUNNING=7
_RETVAL_STATUS_OK=0
_RETVAL_STATUS_NOT_RUNNING=3
# Create PID directory if not exists
/usr/bin/install -o maxscale -g maxscale @MAXSCALE_VARDIR@/run/maxscale
# Sanity checks.
[ -x @CMAKE_INSTALL_PREFIX@/@MAXSCALE_BINDIR@/maxscale ] || exit $_RETVAL_NOT_INSTALLED