units,sysusers: use DynamicUser= for journal-gatewayd and drop user systemd-journal...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Jul 2017 03:28:17 +0000 (12:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Jul 2017 04:37:10 +0000 (13:37 +0900)
sysusers.d/systemd-remote.conf.m4
units/systemd-journal-gatewayd.service.in

index 0e9d71c..83b3626 100644 (file)
@@ -6,7 +6,6 @@
 #  (at your option) any later version.
 
 m4_ifdef(`HAVE_MICROHTTPD',
-u systemd-journal-gateway - "systemd Journal Gateway"
 u systemd-journal-remote  - "systemd Journal Remote"
 )m4_dnl
 m4_ifdef(`HAVE_LIBCURL',
index 9909996..42da350 100644 (file)
@@ -15,6 +15,7 @@ ExecStart=@rootlibexecdir@/systemd-journal-gatewayd
 User=systemd-journal-gateway
 Group=systemd-journal-gateway
 SupplementaryGroups=systemd-journal
+DynamicUser=yes
 PrivateTmp=yes
 PrivateDevices=yes
 PrivateNetwork=yes