Revision 41

Date:
2009/03/26 22:30:50
Author:
dpavlin
Revision Log:
init script for bin/ldap-rewrite.pl
Files:

Legend:

 
Added
 
Removed
 
Modified
  • etc/init.d/ldap-rewrite.sh

     
    1 #!/bin/sh
    2
    3 dir="/srv/virtual-ldap"
    4 pid="/tmp/ldap-rewrite.pid"
    5
    6 case "$1" in
    7 start)
    8 su -c "cd $dir && ./bin/ldap-rewrite.pl" dpavlin &
    9 echo $! > $pid
    10 ;;
    11 stop)
    12 kill `cat $pid`
    13 ;;
    14 *)
    15 exit 3
    16 ;;
    17 esac
    18