diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-24 20:11:30 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-24 20:11:30 +0000 |
commit | c1251c0dd666840862087d4e5a7581c043508d8a (patch) | |
tree | 76bb029759e1e6e142d0813f4ee93b9ada10d064 /net/openldap22-server | |
parent | Prune empty dir that might be left off. (diff) |
Re-add files/slapd.sh
PR: 48630
Submitter: Christian Kratzer <ck@cksoft.de>
Diffstat (limited to 'net/openldap22-server')
-rw-r--r-- | net/openldap22-server/files/slapd.sh | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/net/openldap22-server/files/slapd.sh b/net/openldap22-server/files/slapd.sh new file mode 100644 index 000000000000..e6305bb448fa --- /dev/null +++ b/net/openldap22-server/files/slapd.sh @@ -0,0 +1,47 @@ +#!/bin/sh +# +# $FreeBSD$ + +slapd_program=@@PREFIX@@/libexec/slapd + +# Uncomment one of the following: +# +# IPv4 Only +#slapd_args='-h ldap://0.0.0.0;' +# +# IPv6 and IPv4 +#slapd_ags='-h "ldap://[::] ldap://0.0.0.0";' +# +# IPv6 Only +#slapd_args='-h ldap://[::];' +# +# +slapd_args= + +pidfile=/var/run/slapd.pid + +case "$1" in +start) + if [ -x $slapd ]; then + echo -n ' slapd' + ${slapd_program} ${slapd_args} + + fi + ;; +stop) + if [ -f $pidfile ]; then + kill `cat $pidfile` + telnet localhost ldap </dev/null >/dev/null 2>&1 + echo -n ' slapd' + rm $pidfile + else + echo ' slapd: not running' + fi + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |