summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/mdidentd/files/mdidentd.init.d')
-rw-r--r--net-misc/mdidentd/files/mdidentd.init.d21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-misc/mdidentd/files/mdidentd.init.d b/net-misc/mdidentd/files/mdidentd.init.d
new file mode 100644
index 000000000000..a21e287d6fe1
--- /dev/null
+++ b/net-misc/mdidentd/files/mdidentd.init.d
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting mdidentd"
+ /usr/sbin/mdidentd -u ${MDIDENTD_UID} -kr /usr/sbin/mdidentd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping mdidentd"
+ kill $(</var/run/mdidentd.pid)
+ eend $?
+ rm -f /var/run/mdidentd.pid
+}