You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-proxy/ntlmaps/files/ntlmaps.init

28 lines
727 B

#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/ntlmaps/files/ntlmaps.init,v 1.3 2005/10/06 21:39:47 mrness Exp $
PID_FILE="/var/run/ntlmaps.pid"
depend() {
need net
}
start() {
ebegin "Starting ntlmaps"
touch ${PID_FILE}
chown ntlmaps:ntlmaps ${PID_FILE}
cd /var/log/ntlmaps && \
start-stop-daemon --quiet --start --background --exec /usr/bin/python \
--make-pidfile --pidfile ${PID_FILE} --chuid ntlmaps -- /usr/bin/ntlmaps < /dev/null && \
sleep 1
eend $?
}
stop() {
ebegin "Stopping ntlmaps"
start-stop-daemon --stop --quiet --pidfile ${PID_FILE} && \
rm -f ${PID_FILE}
eend $?
}