Browse Source

- lcd4linux: fix path to pidfile

master
vanhofen 6 years ago
parent
commit
1512fc1ba1
  1. 2
      archive-imagefiles/lcd4linux/etc/init.d/extdisplay
  2. 4
      archive-imagefiles/lcd4linux/etc/init.d/lcd4linux

2
archive-imagefiles/lcd4linux/etc/init.d/extdisplay

@ -51,7 +51,7 @@ for DEVICE in ${DEVICES}; do
if $(echo "${SPFmonitor}" | grep -q "${DEVICE}"); then
LOGINFO "SPF in monitor mode found"
if [ -e /tmp/lcd4linux.pid ]; then
if [ -e /var/run/lcd4linux.pid ]; then
LOGINFO "do nothing"
else
LOGINFO "(re)starting lcd4linux"

4
archive-imagefiles/lcd4linux/etc/init.d/lcd4linux

@ -23,9 +23,9 @@ doStart() {
}
doStop() {
if [ -e /tmp/lcd4linux.pid ]; then
if [ -e /var/run/lcd4linux.pid ]; then
# read pid from pidfile
read PID < /tmp/lcd4linux.pid
read PID < /var/run/lcd4linux.pid
# kill child processes
CHILDS=$(ps -o pid --ppid $PID --no-heading)

Loading…
Cancel
Save