Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
     5         kx #!/bin/sh
     5         kx #
     5         kx # rc.nss-pam-ldapd:  start/stop/restart nslcd
     5         kx #
     5         kx # nslcd is a daemon that will do LDAP queries for local processes that want
     5         kx # to do user, group, and other naming lookups (NSS), or do user authentication,
     5         kx # authorization, or password modification (PAM).
     5         kx 
     5         kx nslcd_start() {
     5         kx   if [ -x /usr/sbin/nslcd -a -r /etc/nslcd.conf ]; then
     5         kx     # Ensure /run directory exists:
     5         kx     mkdir -p /run/nslcd
     5         kx     echo "Starting local LDAP name service daemon:  /usr/sbin/nslcd"
     5         kx     /usr/sbin/nslcd
     5         kx   fi
     5         kx }
     5         kx 
     5         kx nslcd_stop() {
     5         kx   echo "Stopping local LDAP name service daemon."
     5         kx   killall --ns $$ nslcd
     5         kx }
     5         kx 
     5         kx case "$1" in
     5         kx 'start')
     5         kx   nslcd_start
     5         kx   ;;
     5         kx 'stop')
     5         kx   nslcd_stop
     5         kx   ;;
     5         kx 'restart')
     5         kx   nslcd_stop
     5         kx   sleep 2
     5         kx   nslcd_start
     5         kx   ;;
     5         kx *)
     5         kx   echo "usage $0 start|stop|restart"
     5         kx esac