Bug 78390 - PermissionsStartOnly doesn't run ExecStartPre if the User specified in the unit doesn't exist
Summary: PermissionsStartOnly doesn't run ExecStartPre if the User specified in the un...
Status: NEW
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-07 13:10 UTC by Bogdan Rădulescu
Modified: 2014-05-07 13:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.