diff --git a/Makefile b/Makefile index eb1c326..a9f4e36 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: build deploy +all: build deploy update build: Makefile podman build -t dummy:latest . @@ -7,7 +7,6 @@ deploy: install -D -m 644 config/systemd/dummy.service /etc/systemd/system systemctl daemon-reload systemctl stop dummy.service - podman run --name dummy -d dummy:latest systemctl enable dummy.service update: diff --git a/config/systemd/dummy.service b/config/systemd/dummy.service index d2c24b0..6d5b1d2 100644 --- a/config/systemd/dummy.service +++ b/config/systemd/dummy.service @@ -3,7 +3,7 @@ Description=A dummy service [Service] Restart=always -ExecStart=/usr/bin/podman start -a dummy +ExecStart=/usr/bin/podman run --name dummy dummy:latest ExecStop=/usr/bin/podman stop -t 2 dummy ExecStop=/usr/bin/podman rm -f dummy ExecStopPost=/bin/sleep 2