diff options
Diffstat (limited to 'app-misc/lcdproc/files/0.5.1-LCDd.initd')
-rw-r--r-- | app-misc/lcdproc/files/0.5.1-LCDd.initd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-misc/lcdproc/files/0.5.1-LCDd.initd b/app-misc/lcdproc/files/0.5.1-LCDd.initd new file mode 100644 index 0000000..df5bc64 --- /dev/null +++ b/app-misc/lcdproc/files/0.5.1-LCDd.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/lcdproc/files/0.5.1-LCDd.initd,v 1.3 2012/05/10 09:33:55 pacho Exp $ + +depend() { + use net + use g15daemon +} + +start() { + ebegin "Starting LCDd" + start-stop-daemon --start --quiet -m --pidfile /var/run/LCDd.pid \ + --background --exec /usr/sbin/LCDd -- -s 1 -f + eend $? "Failed to start LCDd. Did you remember to set a driver in /etc/LCDd.conf? See syslog for details." +} + +stop() { + ebegin "Stopping LCDd" + start-stop-daemon --stop --quiet --pidfile /var/run/LCDd.pid + eend $? +} |