3 # sssd System Security Services Daemon
5 # chkconfig: 2345 84 16
7 # description: Cache for LDAP and Kerberos credentials for disconnected use
10 # config: /etc/sssd/sssd.conf
11 # pidfile: /var/lib/sssd/sssd.pid
15 # Source function library
16 . /etc/rc.d/init.d/functions
19 . /etc/sysconfig/network
21 # Get service config - may override defaults
22 [ -f /etc/sysconfig/sssd ] && . /etc/sysconfig/sssd
24 # Check that networking is up.
25 if is_yes "${NETWORKING}"; then
26 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
27 msg_network_down "System Security Services Daemon"
35 # Check if the service is already running?
36 if [ ! -f /var/lock/subsys/sssd ]; then
37 msg_starting "System Security Services Daemon"
38 daemon --fork /usr/sbin/sssd --defaults-file=/etc/sssd/sssd.conf
40 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sssd
42 msg_already_running "System Security Services Daemon"
47 if [ -f /var/lock/subsys/sssd ]; then
49 msg_stopping "System Security Services Daemon"
50 /sbin/start-stop-daemon -q --stop \
51 --retry TERM/600/KILL/10 \
52 -s TERM --pidfile /var/lib/sssd/sssd.pid
54 if [ "$result" -eq 0 ]; then
60 rm -f /var/lock/subsys/sssd
62 msg_not_running "System Security Services Daemon"
67 if [ -f /var/lock/subsys/sssd ]; then
71 msg_not_running "System Security Services Daemon"
77 # See how we were called.
100 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"