Skip to content

Commit

Permalink
Use Type=exec and ExecStartPost=/usr/bin/sleep 1 to delay systemd con…
Browse files Browse the repository at this point in the history
…sidering the service started until hopefully after the kerberos ticket has been retrieved
  • Loading branch information
opoplawski committed Jan 16, 2024
1 parent 167da9d commit 349f8d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion systemd/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ Description=Kerberos credentials maintainer for user %i
After=syslog.target network-online.target

[Service]
Type=simple
# Slow down starting of service and fail if k5start fails
Type=exec
EnvironmentFile=/etc/k5start-%i.conf
User=%i
ExecStart=/usr/bin/k5start $K5START_OPTS
# Give a delay to hopefully retrieve the ticket before considering the service started
ExecStartPost=/usr/bin/sleep 1
Restart=always

[Install]
Expand Down

0 comments on commit 349f8d0

Please sign in to comment.