summaryrefslogtreecommitdiff
path: root/net/oidentd/files/oidentd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/oidentd/files/oidentd.sh')
-rw-r--r--net/oidentd/files/oidentd.sh40
1 files changed, 40 insertions, 0 deletions
diff --git a/net/oidentd/files/oidentd.sh b/net/oidentd/files/oidentd.sh
new file mode 100644
index 00000000000..e65f1c3199e
--- /dev/null
+++ b/net/oidentd/files/oidentd.sh
@@ -0,0 +1,40 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: oidentd.sh,v 1.1.1.1 2004/01/03 23:21:45 tron Exp $
+#
+
+# PROVIDE: oidentd
+# REQUIRE: DAEMON
+
+conf_file="@PKG_SYSCONFDIR@/oidentd.conf"
+
+name="oidentd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+required_files="${conf_file}"
+
+if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
+ . /etc/rc.subr
+ . /etc/rc.conf
+
+ load_rc_config $name
+ run_rc_command "$1"
+
+else # old NetBSD, Solaris, Linux, etc...
+
+ case $1 in
+ start)
+ if [ -x ${command} -a -f ${conf_file} ] ; then
+ eval ${command} && @ECHO@ -n " ${name}"
+ fi
+ ;;
+ stop)
+ ${stop_cmd}
+ ;;
+ *)
+ @ECHO@ "Usage: $0 {start|stop}" 1>&2
+ exit 64
+ ;;
+ esac
+
+fi