new unit file for container
added correct unit file definition, fixes #1
This commit is contained in:
parent
44bf0fd4a7
commit
26c92664fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user