Ticket #518: slapd.2.sh

File slapd.2.sh, 377 bytes (added by bchesneau@…, 22 years ago)

new slapd.sh

Line 
1#!/bin/sh
2NAME=slapd
3PIDFILE=$NAME.pid
4CAT=/bin/cat
5KILL=/bin/kill
6
7case "$1" in
8
9start)
10  echo "starting exim mail transfer agent"
11  __PREFIX/libexec/slapd -f __PREFIX/etc/openldap/slapd.conf
12  ;;
13
14stop)
15  echo "stopping exim mail transfer agent"
16  $KILL -15 `$CAT __PREFIX/var/run/$PIDFILE` 
17  ;;
18
19*)
20  echo "Usage: __PREFIX/etc/rc.d/$NAME {start|stop}"
21  exit 1
22  ;;
23
24esac