core: add ConditionUser and ConditionGroup
authorFelipe Sateler <fsateler@gmail.com>
Sat, 8 Apr 2017 23:32:13 +0000 (20:32 -0300)
committerFelipe Sateler <fsateler@gmail.com>
Fri, 26 May 2017 13:42:44 +0000 (09:42 -0400)
commitc465a29f24403c7583a96eb90a1fe4f5b7f9b5a9
treeebf087fd33982647f231234cc41fdd80976d8873
parent9bfc0df113edd50bd01acba02a42f2a13db83d71
core: add ConditionUser and ConditionGroup

This adds two options that are useful for user units. In particular, it
is useful to check ConditionUser=!0 to not start for the root user.

Closes: #5187
man/systemd.unit.xml
src/core/load-fragment-gperf.gperf.m4
src/shared/condition.c
src/shared/condition.h
src/test/test-condition.c