Files
alpha-quadrant/net-nds/kanidm/files/kanidm-unixd-tasks.initd
T
2026-10-07 20:38:04 +00:00

21 lines
560 B
Plaintext
Executable File

#!/sbin/openrc-run
# Copyright 2016-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Kanidm Local Tasks"
depend() {
after kanidm-unixd
}
capabilities="CAP_CHOWN CAP_FOWNER CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH"
command="/usr/bin/kanidm_unixd_tasks"
command_background="true"
error_log="/var/log/kanidm/${RC_SVCNAME}.err"
output_log="/var/log/kanidm/${RC_SVCNAME}.log"
pidfile="/run/${RC_SVCNAME}.pid"
start_pre() {
checkpath -m0750 -o "${KANIDM_USER:-root}:${KANIDM_GROUP:-root}" -d /run/${RC_SVCNAME}
}