pushpin: Add rundir and install internal configuration file
Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
@@ -7,6 +7,7 @@ PUSHPIN_GROUP="${PUSHPIN_GROUP:-pushpin}"
|
||||
PUSHPIN_CONFIG="${PUSHPIN_CONFIG:-/etc/pushpin/pushpin.conf}"
|
||||
PUSHPIN_DATA_DIR="${PUSHPIN_DATA_DIR:-/var/lib/pushpin}"
|
||||
PUSHPIN_LOG_DIR="${PUSHPIN_LOG_DIR:-/var/log/pushpin}"
|
||||
PUSHPIN_RUN_DIR="${PUSHPIN_RUN_DIR:-/var/run/pushpin}"
|
||||
|
||||
command="/usr/bin/pushpin"
|
||||
command_args="--config ${PUSHPIN_CONFIG} --logfile \"${PUSHPIN_LOG_DIR}/pushpin.log\""
|
||||
@@ -27,6 +28,7 @@ configtest() {
|
||||
start_pre() {
|
||||
checkpath -d -o "${PUSHPIN_USER}:${PUSHPIN_GROUP}" -m750 "${PUSHPIN_DATA_DIR}"
|
||||
checkpath -d -o "${PUSHPIN_USER}:${PUSHPIN_GROUP}" -m750 "${PUSHPIN_LOG_DIR}"
|
||||
checkpath -d -o "${PUSHPIN_USER}:${PUSHPIN_GROUP}" -m750 "${PUSHPIN_RUN_DIR}"
|
||||
configtest || return 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user