Ticket #518: slapd.2.sh
File slapd.2.sh, 377 bytes (added by bchesneau@…, 22 years ago) |
---|
Line | |
---|---|
1 | #!/bin/sh |
2 | NAME=slapd |
3 | PIDFILE=$NAME.pid |
4 | CAT=/bin/cat |
5 | KILL=/bin/kill |
6 | |
7 | case "$1" in |
8 | |
9 | start) |
10 | echo "starting exim mail transfer agent" |
11 | __PREFIX/libexec/slapd -f __PREFIX/etc/openldap/slapd.conf |
12 | ;; |
13 | |
14 | stop) |
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 | |
24 | esac |