You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been playing around with this addon and it appears term_handle isn't getting called. For me, I'm trying to revert from a Wireless AP back to normal Wireless Client settings, so I need the sigterm to get called. I've put echo "test" >> /data/log.txt and the file isn't getting created when I hit "stop" on the addon.
I'm willing to try to fix it, but any thoughts on why it isn't calling the sigterm handler? Do you think it's because I lose networking right as I hit the "stop" button on the supervisor? (I'm connected directly the WiFi AP to bring up the web interface)
Any help is appreciated.
The text was updated successfully, but these errors were encountered:
Okay so the sigterm handler still isn't getting called, but I've been reading up on S6 and the kill process, which is new to me.
In the meantime, I dropped this in kill.sh COPY in the dockerfile:
COPY kill.sh /etc/cont-finish.d/
RUN chmod a+x /etc/cont-finish.d/kill.sh
My kill.sh
#!/bin/bash
echo "Stopping...$(date)" >> /data/log.txt
ifdown wlan0
ip link set wlan0 down
ip addr flush dev wlan0
nmcli dev set wlan0 managed yes
exit 0
I added the nmcli dev set wlan0 managed yes as I think it is required. Now I can successfully switch back and forth between client and AP. Will put up a PR once I polish this logic up. Not sure about the maintainability of dropping stuff in /etc/cont-finish.d/.
I've been playing around with this addon and it appears term_handle isn't getting called. For me, I'm trying to revert from a Wireless AP back to normal Wireless Client settings, so I need the sigterm to get called. I've put echo "test" >> /data/log.txt and the file isn't getting created when I hit "stop" on the addon.
I'm willing to try to fix it, but any thoughts on why it isn't calling the sigterm handler? Do you think it's because I lose networking right as I hit the "stop" button on the supervisor? (I'm connected directly the WiFi AP to bring up the web interface)
Any help is appreciated.
The text was updated successfully, but these errors were encountered: