diff options
author | John Hixson <jhixson@FreeBSD.org> | 2024-02-11 17:08:58 -0800 |
---|---|---|
committer | John Hixson <jhixson@FreeBSD.org> | 2024-02-11 17:15:27 -0800 |
commit | 2df5f983ff09e6828223d932a7cbb66afe4916dd (patch) | |
tree | 9a369d85b10902dd16bc5af06006f7bbad5fce7a /security/sssd2/files/sssd.in | |
parent | security/sssd-devel: Fix build issues (diff) |
security/sssd-devel: rename to security/sssd2
- Rename to avoid confusion, port is stable
- Update MOVED
- Update security/sssd/Makefile with name change
Diffstat (limited to 'security/sssd2/files/sssd.in')
-rw-r--r-- | security/sssd2/files/sssd.in | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/security/sssd2/files/sssd.in b/security/sssd2/files/sssd.in new file mode 100644 index 000000000000..4afded5b21d9 --- /dev/null +++ b/security/sssd2/files/sssd.in @@ -0,0 +1,40 @@ +#!/bin/sh + +# PROVIDE: sssd +# REQUIRE: DAEMON +# BEFORE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable `sssd': +# +# sssd_enable="YES" +# +# See sssd(8) for sssd_flags +# + +. /etc/rc.subr + +name=sssd +rcvar=sssd_enable + +# read configuration and set defaults +load_rc_config "$name" + +: ${sssd_enable:=NO} +: ${sssd_conf="%%PREFIX%%/etc/sssd/sssd.conf"} +: ${sssd_flags="-D"} + +command="%%PREFIX%%/sbin/$name" +pidfile="/var/run/$name.pid" +required_files="${sssd_conf}" +start_precmd=sssd_prestart + +sssd_prestart() +{ + + for i in db/sss/db db/sss/gpo_cache db/sss/keytabs db/sss/mc db/sss/pubconf/krb5.include.d/ db/sss/secrets log/sssd run/sss/pipes/private; do + if [ ! -d var/${i} ]; then mkdir -p /var/${i}; fi + done +} + +run_rc_command "$1" |