summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/ntlmaps/files/ntlmaps.init')
-rw-r--r--net-www/ntlmaps/files/ntlmaps.init28
1 files changed, 28 insertions, 0 deletions
diff --git a/net-www/ntlmaps/files/ntlmaps.init b/net-www/ntlmaps/files/ntlmaps.init
new file mode 100644
index 000000000000..93177d00ec36
--- /dev/null
+++ b/net-www/ntlmaps/files/ntlmaps.init
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/ntlmaps/files/ntlmaps.init,v 1.1 2004/06/11 08:43:55 satya Exp $
+
+MY_CMD="/usr/bin/python /usr/ntlmaps/main.py"
+MY_PID_FILE="/var/run/ntlmaps.pid"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ntlmaps"
+ touch ${MY_PID_FILE}
+ chown nobody.nogroup ${MY_PID_FILE}
+ start-stop-daemon --quiet --start --background --exec ${MY_CMD} \
+ --make-pidfile --pidfile ${MY_PID_FILE} --chuid nobody -- \
+ -c /etc/conf.d/ntlmaps.cfg < /dev/null
+ sleep 1
+ eend $?
+}
+stop() {
+ ebegin "Stopping ntlmaps"
+ start-stop-daemon --stop --quiet --pidfile ${MY_PID_FILE} && \
+ rm -f ${MY_PID_FILE}
+ eend $?
+}