systemd: domainname.service failing to start at boot #374770
Open
Description
Nixpkgs version
- Unstable (25.05)
Describe the bug
sudo /nix/store/7zbg91n5qxdh755g838mblynfikvh725-net-tools-2.10/bin/domainname [domain name omitted]
Steps to reproduce
- Set
networking.domain
- Apply
- Reboot
Expected behaviour
All services should start successfully
Screenshots
No response
Relevant log output
-- Boot 1e5176912dc44e6f8e12183874c44948 --
Jan 18 10:23:47 sus systemd[1]: Starting domainname.service...
Jan 18 10:23:47 sus systemd[1]: domainname.service: Deactivated successfully.
Jan 18 10:23:47 sus systemd[1]: Finished domainname.service.
Jan 18 10:23:47 sus systemd[1]: Starting domainname.service...
Jan 18 10:23:47 sus systemd[1]: domainname.service: Deactivated successfully.
Jan 18 10:23:47 sus systemd[1]: Finished domainname.service.
Jan 18 10:23:47 sus systemd[1]: Starting domainname.service...
Jan 18 10:23:47 sus systemd[1]: domainname.service: Deactivated successfully.
Jan 18 10:23:47 sus systemd[1]: Finished domainname.service.
Jan 18 10:23:47 sus systemd[1]: Starting domainname.service...
Jan 18 10:23:48 sus systemd[1]: domainname.service: Deactivated successfully.
Jan 18 10:23:48 sus systemd[1]: Finished domainname.service.
Jan 18 10:23:48 sus systemd[1]: domainname.service: Start request repeated too quickly.
Jan 18 10:23:48 sus systemd[1]: domainname.service: Failed with result 'start-limit-hit'.
Jan 18 10:23:48 sus systemd[1]: Failed to start domainname.service.
Jan 18 10:23:48 sus systemd[1]: domainname.service: Start request repeated too quickly.
Jan 18 10:23:48 sus systemd[1]: domainname.service: Failed with result 'start-limit-hit'.
Jan 18 10:23:48 sus systemd[1]: Failed to start domainname.service.
Additional context
Using nixpkgs 5df4362.
Service description:
❯ systemctl status --lines=0 domainname.service
× domainname.service
Loaded: loaded (/etc/systemd/system/domainname.service; enabled; preset: ignored)
Active: failed (Result: start-limit-hit) since Sat 2025-01-18 10:23:48 CET; 58min ago
Invocation: c0cd4cb515df4ee58f208546a6442ecc
Process: 1274 ExecStart=/nix/store/7zbg91n5qxdh755g838mblynfikvh725-net-tools-2.10/bin/domainname [omitted] (code=exited, status=0/SUCCESS)
Main PID: 1274 (code=exited, status=0/SUCCESS)
I'm confused why it says "Active: failed", but the process exit status says "status=0/SUCCESS". running the ExecStart
command above (with the actual domain name) as root succeeds.
System metadata
- system:
"x86_64-linux"
- host os:
Linux 6.12.9, NixOS, 25.05 (Warbler), 25.05.20250116.5df4362
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.24.11
- channels(root):
""
- nixpkgs:
/nix/store/l9nb64iii15y0nr37qrs1cfm6rlpg6gh-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE
.)
I assert that this issue is relevant for Nixpkgs
- I assert that this is a bug and not a support request.
- I assert that this is not a duplicate of an existing issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.