new unit file for container

added correct unit file definition, fixes #1
This commit is contained in:
jonas 2021-11-05 13:29:48 +01:00
parent 44bf0fd4a7
commit 26c92664fd

View File

@ -1,10 +1,13 @@
[Unit]
Description=Docker registry container
Wants=network.target
After=network-online.target
[Service]
Restart=always
Restart=on-failure
ExecStart=/usr/bin/podman start -a docker-registry
ExecStop=/usr/bin/podman stop -t 120 docker-registry
SuccessExitStatus=2
[Install]
WantedBy=local.target
WantedBy=multi-user.target default.target