Skip to content

Commit

Permalink
Systemd: Fix nologin
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
eloycoto committed Jul 14, 2022
1 parent 8975d7d commit 4158fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/systemd/flotta-agent.service
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4158fe5

Please sign in to comment.