mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
lcdproc: move to systemd
This commit is contained in:
parent
76345ea249
commit
6472d20c98
@ -60,4 +60,6 @@ post_makeinstall_target() {
|
||||
post_install() {
|
||||
add_user nobody x 999 999 "Nobody" "/" "/bin/sh"
|
||||
add_group nobody 999
|
||||
|
||||
enable_service lcdd.service
|
||||
}
|
||||
|
12
packages/sysutils/lcdproc/system.d/lcdd.service
Normal file
12
packages/sysutils/lcdproc/system.d/lcdd.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=LCDProc
|
||||
ConditionPathExists=|/storage/.cache/services/lcdd.conf
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/storage/.cache/services/lcdd.conf
|
||||
ExecStart=/bin/sh -c 'LCDCONF=/etc/LCDd.conf; [ -f /storage/.config/LCDd.conf ] && LCDCONF=/storage/.config/LCDd.conf; exec /usr/sbin/LCDd -f -c $LCDCONF -d $LCD_DRIVER'
|
||||
TimeoutStopSec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user