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

systemd: don't suggest restarting units with RefuseManualStart=true #140

Closed
flokli opened this issue Nov 16, 2017 · 2 comments
Closed

systemd: don't suggest restarting units with RefuseManualStart=true #140

flokli opened this issue Nov 16, 2017 · 2 comments

Comments

@flokli
Copy link
Contributor

flokli commented Nov 16, 2017

Today, home-manager suggested me to restart gpg-agent.service, which has RefuseManualStart set to true.

Trying to issue the suggested command complained:

Failed to restart gpg-agent.service: Operation refused, unit gpg-agent.service may be requested by dependency only (it is configured to refuse manual start/stop).
See user logs and 'systemctl --user status gpg-agent.service' for details.

The suggestion script should simply exclude services that can't be restarted manually.

@rycee rycee closed this as completed in bc2f2ad Nov 16, 2017
@rycee
Copy link
Member

rycee commented Nov 16, 2017

Thanks for reporting! I think this should be fixed in master now.

Note, we'll never be very intelligent about the suggested commands here. In this case I think we can do something reasonably but in general I think it'll have to wait until we can use the NixOS machinery, which is much smarter.

@flokli
Copy link
Contributor Author

flokli commented Nov 16, 2017

Sure, but this small idea just came into my mind. Thanks for the fix :-)

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