lcd4linux: add debug option
Setting the DEBUG variable in the init script to '1' enables the lcd4linux verbose mode, by setting the arg '-vv'. The option also redirects the error and stdout to the syslog. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
27b0d3bd11
commit
66ca1ebd26
|
@ -4,6 +4,7 @@
|
||||||
START=98
|
START=98
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
|
|
||||||
|
DEBUG=1
|
||||||
PROG="/usr/bin/lcd4linux"
|
PROG="/usr/bin/lcd4linux"
|
||||||
STATIC_CONFIG="/etc/lcd4linux.conf"
|
STATIC_CONFIG="/etc/lcd4linux.conf"
|
||||||
DYNAMIC_CONFIG="/tmp/lcd4linux.conf"
|
DYNAMIC_CONFIG="/tmp/lcd4linux.conf"
|
||||||
|
@ -24,6 +25,11 @@ start_service() {
|
||||||
procd_append_param command -q
|
procd_append_param command -q
|
||||||
procd_append_param command -o /tmp/lcd4linux.png
|
procd_append_param command -o /tmp/lcd4linux.png
|
||||||
procd_append_param command -f "$CONFIGFILE"
|
procd_append_param command -f "$CONFIGFILE"
|
||||||
|
[ "$DEBUG" = 1 ] && {
|
||||||
|
procd_append_param command -vv
|
||||||
|
procd_set_param stdout 1
|
||||||
|
procd_set_param stderr 1
|
||||||
|
}
|
||||||
procd_set_param file "$CONFIGFILE"
|
procd_set_param file "$CONFIGFILE"
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue