Bleh
This commit is contained in:
parent
62d3942832
commit
d953c458a5
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ deploy:
|
||||||
docker service rm dummy || true
|
docker service rm dummy || true
|
||||||
install -D -m 644 config/systemd/dummy.service /etc/systemd/system
|
install -D -m 644 config/systemd/dummy.service /etc/systemd/system
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl stop dummy.service || true && podman rm -f dummy
|
systemctl stop dummy.service
|
||||||
podman run --name dummy -d dummy:latest
|
podman run --name dummy -d dummy:latest
|
||||||
systemctl enable dummy.service
|
systemctl enable dummy.service
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,8 @@ Description=A dummy service
|
||||||
Restart=always
|
Restart=always
|
||||||
ExecStart=/usr/bin/podman start -a dummy
|
ExecStart=/usr/bin/podman start -a dummy
|
||||||
ExecStop=/usr/bin/podman stop -t 2 dummy
|
ExecStop=/usr/bin/podman stop -t 2 dummy
|
||||||
|
ExecStop=/usr/bin/podman rm -f dummy
|
||||||
|
ExecStopPost=/bin/sleep 2
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
Loading…
Reference in New Issue
Block a user