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_already_running "System Security Services Daemon"
41 msg_starting "System Security Services Daemon"
42 daemon --fork /usr/sbin/sssd --defaults-file=/etc/sssd/sssd.conf
44 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sssd
48 if [ ! -f /var/lock/subsys/sssd ]; then
49 msg_not_running "System Security Services Daemon"
54 msg_stopping "System Security Services Daemon"
55 /sbin/start-stop-daemon -q --stop \
56 --retry TERM/600/KILL/10 \
57 -s TERM --pidfile /var/lib/sssd/sssd.pid
59 if [ "$result" -eq 0 ]; then
65 rm -f /var/lock/subsys/sssd
69 if [ ! -f /var/lock/subsys/sssd ]; then
70 msg_not_running "System Security Services Daemon"
80 # See how we were called.
103 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"