Open crabdancing opened 10 months ago
The Restart
value on-error
is invalid, see man systemd.service
for valid values.
Ah, right you are. It's on-failure
, not on-error
.
I'm just curious... is there any way to get the Nix code spec of the schema to print what specifically the is wrong with it? Are there any features planned for this -- that is, better error messages when types do not match?
I agree with above -- that would be very cool. For myself, I was able to troubleshoot by examining the relevant systemd man pages. In my case, I am configuring systemd-networkd
, so man systemd.network
had the fields and values well-documented. In this case, you could look at man systemd.service
.
It's kind of unfortunate because, although having a formalized schema is the 'correct' approach, and can in principle have huge advantages, the end result when doing that with Nix is often something harder to troubleshoot than if it just deployed the broken config, a lot of the time. :P
You're welcome to reopen the ticket if you want to track improving the error messages. I don't see any open issues for this specifically, nor for submodules overall.
Sure! :)
Describe the bug
Trying to make a systemd oneshot remain after exit, results in strange build errors:
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should be able to make a oneshot that remains after exit.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
@nbraud
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.