net-im/dendrite: Installation directories and init script fixes

Signed-off-by: Stefan Knoblich <stkn@bitplumber.de>
This commit is contained in:
2023-05-09 16:33:01 +02:00
parent 81f014de71
commit 636a23be51
3 changed files with 10 additions and 7 deletions

View File

@@ -4,16 +4,16 @@
DENDRITE_USER="${DENDRITE_USER:-dendrite}"
DENDRITE_GROUP="${DENDRITE_GROUP:-dendrite}"
DENDRITE_CONFIG="${DENDRITE_CONFIG:-/etc/dendrite/config.yml}"
DENDRITE_CONFIG="${DENDRITE_CONFIG:-/etc/dendrite/dendrite.yml}"
DENDRITE_DATA_DIR="${DENDRITE_DATA_DIR:-/var/lib/dendrite}"
DENDRITE_LOG_DIR="${DENDRITE_LOG_DIR:-/var/log/dendrite}"
command="/usr/bin/dendrite"
command_args="--config ${DENDRITE_CONFIG}"
command_args="-config ${DENDRITE_CONFIG} -logtostderr"
pidfile="/run/${RC_SVCNAME}.pid"
command_background="true"
start_stop_daemon_args="--user=\"${DENDRITE_USER}\" --group=\"${DENDRITE_GROUP}\" --stdout ${DENDRITE_LOG_DIR}/dendrite.log --stderr ${DENDRITE_LOG_DIR}/dendrite.err"
start_stop_daemon_args="--cd=\"${DENDRITE_DATA_DIR}\" --user=\"${DENDRITE_USER}\" --group=\"${DENDRITE_GROUP}\" --stdout ${DENDRITE_LOG_DIR}/dendrite.log --stderr ${DENDRITE_LOG_DIR}/dendrite.err"
start_pre() {
checkpath -d -o "${DENDRITE_USER}" -m750 "${DENDRITE_DATA_DIR}"