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

PIDFILE=/var/run/lcd4linux.pid
DAEMON=/usr/bin/lcd4linux

depend() {
	use net
}

start() {
	ebegin "Starting lcd4linux"
	start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON}
	eend $? "Failed to start lcd4linux. Did you remember to set up /etc/lcd4linux.conf?"
}

stop() {
	ebegin "Stopping lcd4linux"
	start-stop-daemon --stop --quiet --oknodo --exec ${DAEMON} --pidfile ${PIDFILE}
	eend $?
}