added lcd-stuff-0.1.7 and 9999
[dottout.git] / app-misc / lcd-stuff / files / lcd-stuff-0.1.2-r1.initd
blobed7c264fea4419249e48d18f247cda0ce89b053b
1 #!/sbin/runscript
2 # Copyright 1999-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: /var/cvsroot/gentoo-x86/app-misc/lcd-stuff/files/lcd-stuff-0.1.2-r1.initd,v 1.1 2007/05/12 11:24:49 rbu Exp $
6 PIDFILE=/var/run/${SVCNAME}.pid
8 depend() {
9         use LCDd
12 start() {
13         ebegin "Starting ${SVCNAME}"
15         start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec \
16                 /usr/bin/lcd-stuff -- -f 1 -s 1 -r "${REPORTLEVEL}" -a "${ADDRESS}" -p "${TCPPORT}" -c "${CONFIGFILE}"
17         eend $?
20 stop() {
21         ebegin "Stoping ${SVCNAME}"
22         start-stop-daemon --stop --pidfile ${PIDFILE} --name "lcd-stuff"
23         eend $?