#!/bin/sh
#
# $FreeBSD: ports/security/sssd/files/sssd.in,v 1.3 2012/11/17 06:01:21 svnexp Exp $
#

# 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

command="/usr/local/sbin/$name"
sssd_flags="-D"
pidfile="/var/run/$name.pid"
required_files="/usr/local/etc/$name/$name.conf"

# read configuration and set defaults
load_rc_config "$name"
: ${sssd_enable="NO"}

run_rc_command "$1"
