thx, I will add this and test again! Good point, I missed that....
edit:
still not working.
another test i was doing is changing the command to
---
su - pi -c"[...]"
---
but that as well did not result in turning the switch off.....
This is starting to drive me nuts.
OS Version is:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
Kernel: Linux raspi 5.4.79-v7+ #1373 SMP Mon Nov 23 13:22:33 GMT 2020 armv7l GNU/Linu
I will try to add a command to write something to the systemlog to see, if something even is tried be run.....
edit 2: nothing is being logged after adding some "logger TEST" commands.... weird.
edit 3: it is definitely not a problem when root is running the command.
I added this to rc-local.service:
---
ExecStop=/etc/rc.local stop
---
and modified /etc/rc.local to include:
---
if [[ $1 == "stop" ]]; then
logger "Running STOP: SHUT DOWN SOCKET"
/usr/local/bin/send -p 7 11111 3 0
fi
---
and then the socket actually turns off.
edit:
still not working.
another test i was doing is changing the command to
---
su - pi -c"[...]"
---
but that as well did not result in turning the switch off.....
This is starting to drive me nuts.
OS Version is:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
Kernel: Linux raspi 5.4.79-v7+ #1373 SMP Mon Nov 23 13:22:33 GMT 2020 armv7l GNU/Linu
I will try to add a command to write something to the systemlog to see, if something even is tried be run.....
edit 2: nothing is being logged after adding some "logger TEST" commands.... weird.
edit 3: it is definitely not a problem when root is running the command.
I added this to rc-local.service:
---
ExecStop=/etc/rc.local stop
---
and modified /etc/rc.local to include:
---
if [[ $1 == "stop" ]]; then
logger "Running STOP: SHUT DOWN SOCKET"
/usr/local/bin/send -p 7 11111 3 0
fi
---
and then the socket actually turns off.
Statistics: Posted by muelli — Wed Jun 04, 2025 5:30 am