diff options
Diffstat (limited to 'security/kanidm/files/kanidmd.in')
-rw-r--r-- | security/kanidm/files/kanidmd.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/security/kanidm/files/kanidmd.in b/security/kanidm/files/kanidmd.in new file mode 100644 index 000000000000..db80a5028cfb --- /dev/null +++ b/security/kanidm/files/kanidmd.in @@ -0,0 +1,27 @@ +#!/bin/sh + +# PROVIDE: kanidmd +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# kanidmd_enable (bool): Set to NO by default. +# Set it to YES to enable kanidm_unixd. + +. /etc/rc.subr + +name=kanidmd +rcvar=kanidmd_enable + +load_rc_config $name + +: ${kanidmd_enable:="NO"} + +pidfile="/var/run/kanidmd.pid" +command=/usr/sbin/daemon +command_args="-u %%USER%% -p /var/run/kanidmd.pid -T kanidmd %%PREFIX%%/libexec/${name}" +procname=%%PREFIX%%/libexec/${name} + +run_rc_command "$1" |