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

PIDFILE=/var/run/${SVCNAME}.pid

depend() {
	use LCDd
}

start() {
	ebegin "Starting ${SVCNAME}"

	start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec \
		/usr/bin/lcd-stuff -- -f 1 -s 1 -r "${REPORTLEVEL}" -a "${ADDRESS}" -p "${TCPPORT}" -c "${CONFIGFILE}"
	eend $?
}

stop() {
	ebegin "Stoping ${SVCNAME}"
	start-stop-daemon --stop --pidfile ${PIDFILE} --name "lcd-stuff"
	eend $?
}