Bug 78390

Summary: PermissionsStartOnly doesn't run ExecStartPre if the User specified in the unit doesn't exist
Product: systemd Reporter: Bogdan Rădulescu <bogdan_radulescu99>
Component: generalAssignee: systemd-bugs
Status: NEW --- QA Contact: systemd-bugs
Severity: enhancement    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Bogdan Rădulescu 2014-05-07 13:10:07 UTC
It is not possible to add a user when starting a unit file with
ExecStartPre=/usr/sbin/useradd testuser
even if PermissionsStartOnly=true is used because the unit doesn't seem to execute anything unless the User exists.

I think it would be more flexible if before checking for the user it executed ExecStartPre when PermissionsStartOnly=true is present.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.