summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Jones <carpaski@gentoo.org>2002-06-23 09:52:08 +0000
committerNicholas Jones <carpaski@gentoo.org>2002-06-23 09:52:08 +0000
commit14a65d0e749f59749839a55ec4402a87fd43c4ea (patch)
tree1a732b0d6e07dedfa29b24d9ef4281897d37d6dc /net-misc/oidentd
parentNew revision from phoen][x. Fixes bug #3816. (diff)
downloadhistorical-14a65d0e749f59749839a55ec4402a87fd43c4ea.tar.gz
historical-14a65d0e749f59749839a55ec4402a87fd43c4ea.tar.bz2
historical-14a65d0e749f59749839a55ec4402a87fd43c4ea.zip
The rest of the files from phoen][x's new revision.
Diffstat (limited to 'net-misc/oidentd')
-rw-r--r--net-misc/oidentd/files/oidentd-2.0.3-r1-confd4
-rw-r--r--net-misc/oidentd/files/oidentd-2.0.3-r1-init36
2 files changed, 40 insertions, 0 deletions
diff --git a/net-misc/oidentd/files/oidentd-2.0.3-r1-confd b/net-misc/oidentd/files/oidentd-2.0.3-r1-confd
new file mode 100644
index 000000000000..3116889e67e2
--- /dev/null
+++ b/net-misc/oidentd/files/oidentd-2.0.3-r1-confd
@@ -0,0 +1,4 @@
+# oidentd start-up options
+USER="nobody"
+GROUP="nobody"
+OPTIONS=""
diff --git a/net-misc/oidentd/files/oidentd-2.0.3-r1-init b/net-misc/oidentd/files/oidentd-2.0.3-r1-init
new file mode 100644
index 000000000000..72dcbe0bd8a3
--- /dev/null
+++ b/net-misc/oidentd/files/oidentd-2.0.3-r1-init
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# /space/gentoo/cvsroot/gentoo-x86/net-misc/oidentd/files/oidentd-init,v 1.1 2002/04/10 22:24:08 woodchip Exp
+
+depend() {
+ need net
+}
+
+check_config() {
+ if [ -z "${USER}" ]
+ then
+ eerror "Please set \$USER in /etc/conf.d/oidentd!"
+ return 1
+ fi
+ if [ -z "${GROUP}" ]
+ then
+ eerror "Please set \$GROUP in /etc/conf.d/oidentd!"
+ return 1
+ fi
+}
+
+
+start() {
+ check_config || return 1
+ ebegin "Starting oidentd"
+ OPTIONS="${OPTIONS} -u ${USER} -g ${GROUP}"
+ start-stop-daemon --start --quiet --exec /usr/sbin/oidentd -- $OPTIONS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping oidentd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/oidentd
+ eend $?
+}