Home | History | Annotate | Line # | Download | only in ldap
slapd-stop revision 1.1
      1  1.1  elric #!/bin/sh 
      2  1.1  elric # $Id: slapd-stop,v 1.1 2011/04/13 18:16:02 elric Exp $
      3  1.1  elric 
      4  1.1  elric echo stoping slapd
      5  1.1  elric 
      6  1.1  elric # kill of old slapd
      7  1.1  elric if [ -f slapd.pid ]; then
      8  1.1  elric     kill `cat slapd.pid`
      9  1.1  elric     sleep 5
     10  1.1  elric fi
     11  1.1  elric if [ -f slapd.pid ]; then
     12  1.1  elric     kill -9 `cat slapd.pid`
     13  1.1  elric     rm -f slapd.pid
     14  1.1  elric     sleep 5
     15  1.1  elric fi
     16  1.1  elric 
     17  1.1  elric exit 0
     18  1.1  elric 
     19