Systemd unit file: Can/Should ExecStart and ExecStop run a script?
Lennart Poettering
mzerqung at 0pointer.de
Wed Oct 19 22:12:36 UTC 2011
On Wed, 19.10.11 23:43, Kay Sievers (kay.sievers at vrfy.org) wrote:
> >> Like mentioned earlier in this thread, just put the user into the
> >> audio/video system group and forget about any permissions management.
> >
> > That works for me. I wonder if I could use ExecStartPre to run a shell
> > script to make sure the user is in those groups and write to stderr if
> > not?
>
> That's a job for a %pre RPM script, not a service. Create the user and
> put the user in the group when the package is installed.
This is how you create users in %pre:
https://fedoraproject.org/wiki/Packaging:UsersAndGroups
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the devel
mailing list