Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp_pkt_fwd fails to exit on stop #19

Open
Eelviny opened this issue Jan 22, 2019 · 3 comments
Open

mp_pkt_fwd fails to exit on stop #19

Eelviny opened this issue Jan 22, 2019 · 3 comments

Comments

@Eelviny
Copy link

Eelviny commented Jan 22, 2019

When executing /etc/init.d/ttn-pkt-forwarder stop, the process /opt/lora/mp_pkt_fwd usually does not also get stopped.

This breaks functionality with packages like monit, which attempt to restart the service when an issue is detected. Instead, a duplicate process is spawned, and the problem continues.

I fixed this issue by modifying the /etc/init.d/ttn-pkt-forwarder file, so that do_stop() does killall mp_pkt_fwd. The original behaviour is killall -1 mp_pkt_fwd. This is a "quick fix" but the issue lies in mp_pkt_fwd refusing to exit cleanly.

@Eelviny
Copy link
Author

Eelviny commented Jan 22, 2019

This is on an MTCAP-LEU1-868 running mLinux 4.0.1.

@Eelviny
Copy link
Author

Eelviny commented Jan 28, 2019

I might be wrong about this - more info on how this actually works is appreciated

@kersing
Copy link
Owner

kersing commented Feb 11, 2019

To fix this, replace the '-s 1' with '-s 3' and 'killall -1' with 'killall -3' in /etc/init.d/ttn-pkt-forwarder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants