summaryrefslogtreecommitdiff
blob: daa19e32313a11985f1cfb091eb2dbb91b83d89f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

PIDFILE=${PIDFILE:-/var/run/cntlm.pid}

depend() {
	need net
}

start() {
	ebegin "Starting cntlm"
	start-stop-daemon --start --background --make-pidfile --pidfile ${PIDFILE} --exec /usr/bin/cntlm -- -f -U cntlm ${CNTLM_OPTS}
	eend $?
}

stop() {
	ebegin "Stopping cntlm"
	start-stop-daemon --stop --pidfile ${PIDFILE}
	eend $?
}