units: restore User=systemd-journal-gateway in systemd-journal-gatewayd.service (#7005)

After the discussions around #7003 I think we should restore the
User=systemd-journal-gateway line for systemd-journal-gatewayd.service,
too, so that we continue to use the state user if it exists, and create
it as dynamic user only when it does not.

Note that undoes part of a change made after 234, i.e. a never released
change.
This commit is contained in:
Lennart Poettering 2017-10-05 15:05:02 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 892a035c2e
commit c74cdb5cc3
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ Requires=systemd-journal-gatewayd.socket
[Service]
ExecStart=@rootlibexecdir@/systemd-journal-gatewayd
User=systemd-journal-gateway
SupplementaryGroups=systemd-journal
DynamicUser=yes
PrivateDevices=yes