-
Notifications
You must be signed in to change notification settings - Fork 50
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
Services don't cleanly stop on system shutdown #250
Comments
Hi @lilyhahn, |
Hi @roberth ! thank you for taking a look! I tried it with Apologies for this probably dumb question, I am new to NixOS. I have Arion imported in my configuration like this:
If I change the commit in the imports, is that enough to install from the PR? Or do I need to change something in the environment.systemPackages as well? I updated my configuration to the hash above for the nixes-module import, and I got the same behavior. |
The general idea is alright, but it looks like you've picked the commit that only added tests. If you haven't tried it, try with 0437b5f? I don't think I've produced a representative test case, so I wouldn't be surprised if the linked commit doesn't help. |
Hi,
I have a docker-compose set up as a system service.
It's part of a module that is imported into my main
configuration.nix
.The relevant configuration looks like this:
When I shutdown the machine with
shutdown -h now
, systemd appears to successfully stop the service, but then the final stage of shutdown hangs, logging that it's waiting for node (the main process inside the container) to exit.If I run
systemctl stop myservice
, then shutdown, everything stops cleanly.I've found this issue in nix containers which appears similar (NixOS/nixpkgs#109695), but the suggested workaround is adding a script to stop the services, and I do see systemd running the stop jobs when I shutdown - for some reason they have different results when run manually before shutdown.
Any suggestions for how to solve this issue would be appreciated!
The text was updated successfully, but these errors were encountered: