Add lcdproc ebuild with systemd service files
This commit is contained in:
@@ -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 $?
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user