summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-02-24 20:11:30 +0000
committeredwin <edwin@FreeBSD.org>2003-02-24 20:11:30 +0000
commitcbf5ba2afd6b453e726035bced78c195017655cb (patch)
tree128d7b3ea826e4cb70b5a929f432bd5f04d94460 /net
parenta6fc00aa6ad908a7be0d07abb1812a85e9c4d4af (diff)
downloadFreeBSD-ports-cbf5ba2afd6b453e726035bced78c195017655cb.zip
FreeBSD-ports-cbf5ba2afd6b453e726035bced78c195017655cb.tar.gz
Re-add files/slapd.sh
PR: 48630 Submitter: Christian Kratzer <ck@cksoft.de>
Diffstat (limited to 'net')
-rw-r--r--net/openldap21-server/files/slapd.sh47
-rw-r--r--net/openldap21/files/slapd.sh47
-rw-r--r--net/openldap22-server/files/slapd.sh47
-rw-r--r--net/openldap22/files/slapd.sh47
-rw-r--r--net/openldap23-server/files/slapd.sh47
-rw-r--r--net/openldap24-server/files/slapd.sh47
6 files changed, 282 insertions, 0 deletions
diff --git a/net/openldap21-server/files/slapd.sh b/net/openldap21-server/files/slapd.sh
new file mode 100644
index 0000000..e6305bb
--- /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
diff --git a/net/openldap21/files/slapd.sh b/net/openldap21/files/slapd.sh
new file mode 100644
index 0000000..e6305bb
--- /dev/null
+++ b/net/openldap21/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
diff --git a/net/openldap22-server/files/slapd.sh b/net/openldap22-server/files/slapd.sh
new file mode 100644
index 0000000..e6305bb
--- /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
diff --git a/net/openldap22/files/slapd.sh b/net/openldap22/files/slapd.sh
new file mode 100644
index 0000000..e6305bb
--- /dev/null
+++ b/net/openldap22/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
diff --git a/net/openldap23-server/files/slapd.sh b/net/openldap23-server/files/slapd.sh
new file mode 100644
index 0000000..e6305bb
--- /dev/null
+++ b/net/openldap23-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
diff --git a/net/openldap24-server/files/slapd.sh b/net/openldap24-server/files/slapd.sh
new file mode 100644
index 0000000..e6305bb
--- /dev/null
+++ b/net/openldap24-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
OpenPOWER on IntegriCloud