kdc: Improve handling of stopping service
This commit is contained in:
parent
983fefe383
commit
160073262d
1 changed files with 11 additions and 4 deletions
|
@ -1,13 +1,20 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Kerberos KDC Container
|
Description=Kerberos KDC Container
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=kdc
|
User=kdc
|
||||||
EnvironmentFile=/etc/sysconfig/kdc-container
|
EnvironmentFile=/etc/sysconfig/kdc-container
|
||||||
ExecStart=/usr/bin/podman run --rm -p 127.0.0.1:8001:8000 --name kdc \
|
ExecStart=/usr/bin/podman run \
|
||||||
-e LDAP_BASEDN -e LDAP_BIND_PW -e KRB5_REALM -e KRB5_STASH_PW kdc
|
--rm -p 127.0.0.1:8001:8000 \
|
||||||
ExecStop=/usr/bin/podman stop kdc
|
--name kdc \
|
||||||
KillMode=none
|
-e LDAP_BASEDN \
|
||||||
|
-e LDAP_BIND_PW \
|
||||||
|
-e KRB5_REALM \
|
||||||
|
-e KRB5_STASH_PW kdc
|
||||||
|
ExecStop=/usr/bin/podman stop --ignore kdc
|
||||||
|
ExecStopPost=/usr/bin/podman rm -f --ignore kdc
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Reference in a new issue