Re: Systemd unit file: Can/Should ExecStart and ExecStop run a script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 19.10.11 23:43, Kay Sievers (kay.sievers@xxxxxxxx) 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.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux