-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
systemd's PermissionsStartOnly is deprecated #53852
Copy link
Copy link
Open
Labels
5.scope: trackingLong-lived issue tracking long-term fixes or multiple sub-problemsLong-lived issue tracking long-term fixes or multiple sub-problems6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Milestone
Metadata
Metadata
Assignees
Labels
5.scope: trackingLong-lived issue tracking long-term fixes or multiple sub-problemsLong-lived issue tracking long-term fixes or multiple sub-problems6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
In Progress
See systemd/systemd#10802:
PermissionsStartOnlyis deprecated (but not yet removed); the replacement are theSpecial executable prefixesmentioned in https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStart=.We have many occurrences this in nixpkgs (as per commit ad23ea3):
It's not urgent, as it still works right now, but it's problematic that you can't any longer find any docs about a feature that we use almost everywhere.
Fixing it isn't totally trivial because
PermissionsStartOnlyis/was a separate setting, but with the new approach we actually have to write characters in front ofExecStartPrelines and so on.Edit: Another key problem is that
serviceConfigis an attrset, so you cannot use it to do what systemd allows: Creating multipleExecStartlines (or similar lines) like:because in an attrset there can be only 1
ExecStart. Edit: Likely workaround for that in #53852 (comment).