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

Service stop is killing all nodes not waiting to finish cleanly. #69

Open
julianraheema opened this issue Jun 12, 2018 · 0 comments
Open

Comments

@julianraheema
Copy link

julianraheema commented Jun 12, 2018

When I tried to stop myrobot service "sudo service myrobot stop", all nodes dies instantly rather than waiting to finish cleanly. But when I added this line "ExecStop=/usr/sbin/data-stop" to "/etc/systemd/system/multi-user.target.wants/data.service" the service stop works fine.

My linux is mint 18.
Could you please help me to understand why this is happening?

Update:
When ExecStop= is not exisit, the service sends the signKill by default which is kill instantly, and sigKill cant be captured by ros therefore nodes are dying not in proper way.
https://www.freedesktop.org/software/systemd/man/systemd.service.html
http://man7.org/linux/man-pages/man7/signal.7.html

Extra info are welcome.

@julianraheema julianraheema changed the title service myrobot stop is killing all as power off not waiting to finish the node. "service myrobot stop" is killing all nodes not waiting to finish the node. Jun 13, 2018
@julianraheema julianraheema changed the title "service myrobot stop" is killing all nodes not waiting to finish the node. Service stop is killing all nodes not waiting to finish cleanly. Jun 13, 2018
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

1 participant