From 4158fe5d94b27aa2b7bee1353692d72d96b9c1cb Mon Sep 17 00:00:00 2001 From: Eloy Coto Date: Thu, 14 Jul 2022 10:09:22 +0200 Subject: [PATCH] Systemd: Fix nologin Systemd-tmpfiles set /run/nologin on /usr/lib/tmpfiles.d/systemd-nologin.conf to booting up, with this change /run/nologin will not be executed at all. Signed-off-by: Eloy Coto --- packaging/systemd/flotta-agent.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/systemd/flotta-agent.service b/packaging/systemd/flotta-agent.service index deeec462..a9418e31 100644 --- a/packaging/systemd/flotta-agent.service +++ b/packaging/systemd/flotta-agent.service @@ -13,7 +13,7 @@ ExecStart=bash -c "semanage fcontext -a -e /home /var/home || true" ExecStart=bash -c "restorecon -R -v /var/home || true" ExecStart=bash -c "getent group flotta >/dev/null || groupadd flotta" ExecStart=bash -c "getent passwd flotta >/dev/null || useradd -m -g flotta -s /sbin/nologin -b /var/home flotta" -ExecStartPost=systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev --exclude-prefix=/var/lib/dnf +ExecStartPost=systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev --exclude-prefix=/var/lib/dnf --exclude-prefix=/run/nologin TimeoutSec=90s [Install]