Skip to content

Commit

Permalink
systemd: add StateDirectory to gssproxy.service
Browse files Browse the repository at this point in the history
gssproxy won't start if /var/lib/gssproxy is missing ("Failed to
create Unix Socket!"). systemd provides a directive to ensure that all
necessary state directories exist so we can use it in this case.

Signed-off-by: Alberto Garcia <[email protected]>
  • Loading branch information
bertogg authored and simo5 committed Jul 11, 2023
1 parent f6ab319 commit ec46345
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions systemd/gssproxy.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=syslog.target network.target
Before=rpc-gssd.service

[Service]
StateDirectory=gssproxy/clients gssproxy/rcache
Environment=KRB5RCACHEDIR=/var/lib/gssproxy/rcache
ExecStart=@sbindir@/gssproxy -D
# These two should be used with traditional UNIX forking daemons
Expand Down

0 comments on commit ec46345

Please sign in to comment.