pushpin: Add rundir and install internal configuration file

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2024-02-24 01:48:19 +01:00
parent 7cf03f8838
commit 2cea59e741
3 changed files with 5 additions and 2 deletions

View File

@@ -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
}