init.d-files cleanup.

This commit is contained in:
2026-10-07 20:38:04 +00:00
parent 7fe3a247d3
commit d0ed468360
2 changed files with 2 additions and 14 deletions
@@ -8,21 +8,12 @@ depend() {
after kanidm-unixd
}
: ${KANIDM_CONF:=/etc/kanidm/unix}
: ${KANIDM_USER:=kanidm}
: ${KANIDM_GROUP:=kanidm}
: ${KANIDM_WORK_DIR:=/var/lib/kanidm}
: ${KANIDM_CUSTOM:=${KANIDM_WORK_DIR}/custom}
capabilities="CAP_CHOWN CAP_FOWNER CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH"
command="/usr/bin/kanidm_unixd_tasks"
#command_args="--config-path ${KANIDM_CONF} server"
command_background="true"
command_user="${KANIDM_USER}:${KANIDM_GROUP}"
error_log="/var/log/kanidm/${RC_SVCNAME}.err"
output_log="/var/log/kanidm/${RC_SVCNAME}.log"
pidfile="/run/${RC_SVCNAME}.pid"
#required_files="${KANIDM_CONF}"
start_pre() {
checkpath -m0750 -o "${KANIDM_USER:-root}:${KANIDM_GROUP:-root}" -d /run/${RC_SVCNAME}