aboutsummaryrefslogtreecommitdiffstats
path: root/net/openldap21-server
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-02-25 04:11:30 +0800
committeredwin <edwin@FreeBSD.org>2003-02-25 04:11:30 +0800
commitcbf5ba2afd6b453e726035bced78c195017655cb (patch)
tree128d7b3ea826e4cb70b5a929f432bd5f04d94460 /net/openldap21-server
parenta6fc00aa6ad908a7be0d07abb1812a85e9c4d4af (diff)
downloadfreebsd-ports-gnome-cbf5ba2afd6b453e726035bced78c195017655cb.tar.gz
freebsd-ports-gnome-cbf5ba2afd6b453e726035bced78c195017655cb.tar.zst
freebsd-ports-gnome-cbf5ba2afd6b453e726035bced78c195017655cb.zip
Re-add files/slapd.sh
PR: 48630 Submitter: Christian Kratzer <ck@cksoft.de>
Diffstat (limited to 'net/openldap21-server')
-rw-r--r--net/openldap21-server/files/slapd.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/net/openldap21-server/files/slapd.sh b/net/openldap21-server/files/slapd.sh
new file mode 100644
index 000000000000..e6305bb448fa
--- /dev/null
+++ b/net/openldap21-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