Add lcdproc ebuild with systemd service files

This commit is contained in:
layman
2018-01-27 15:43:55 +01:00
parent 9f2cc363cb
commit a872d708e1
7 changed files with 304 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
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 $?
}
@@ -0,0 +1,21 @@
#!/sbin/openrc-run
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend(){
use LCDd
after ntp-client
}
start() {
ebegin "Starting lcdproc"
start-stop-daemon --start --background \
--exec /usr/bin/lcdproc
eend $?
}
stop() {
ebegin "Stopping lcdproc"
start-stop-daemon --stop --exec /usr/bin/lcdproc
eend $?
}
+12
View File
@@ -0,0 +1,12 @@
[Unit]
Description = LCD Display daemon
[Service]
Type = forking
ExecStart = /usr/sbin/LCDd
Restart = always
RestartSec = 60
[Install]
WantedBy = multi-user.target
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description = Display system info on LCD
After = LCDd.service
[Service]
ExecStart = /usr/bin/lcdproc
Restart = always
RestartSec = 60
[Install]
WantedBy = multi-user.target
Also = LCDd.service