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
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 . /etc/sysconfig/network
20 # Get service config - may override defaults
21 [ -f /etc/sysconfig/sssd ] && . /etc/sysconfig/sssd
23 # Check that networking is up.
24 if is_yes "${NETWORKING}"; then
25 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
26 msg_network_down "System Security Services Daemon"
34 # Check if the service is already running?
35 if [ -f /var/lock/subsys/sssd ]; then
36 msg_already_running "System Security Services Daemon"
40 msg_starting "System Security Services Daemon"
41 daemon --fork /usr/sbin/sssd --defaults-file=/etc/sssd/sssd.conf
43 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sssd
47 if [ ! -f /var/lock/subsys/sssd ]; then
48 msg_not_running "System Security Services Daemon"
53 msg_stopping "System Security Services Daemon"
54 /sbin/start-stop-daemon -q --stop \
55 --retry TERM/600/KILL/10 \
56 -s TERM --pidfile /var/lib/sssd/sssd.pid
58 if [ "$result" -eq 0 ]; then
64 rm -f /var/lock/subsys/sssd
68 if [ ! -f /var/lock/subsys/sssd ]; then
69 msg_not_running "System Security Services Daemon"
79 # See how we were called.
102 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"