summaryrefslogtreecommitdiffstats
path: root/app-misc/lcdproc/files/lcdproc
blob: 95e7ba7a651d7871420c3ba17ba7f07dc86268e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/files/lcdproc,v 1.10 2004/07/14 21:32:56 agriffis Exp $

depend(){
	need LCDd 
}
start() {
	source /etc/lcdproc.conf
	ebegin "Starting lcdproc"
	start-stop-daemon --start --background \
		--exec /usr/bin/lcdproc -- ${SCREENS}
	eend $?
}

stop() {
	ebegin "Stopping lcdproc"
	start-stop-daemon --stop --exec /usr/bin/lcdproc
	eend $?
}