Template
1
0

Trying to stop a service before updating

This commit is contained in:
Azer Abdullaev 2021-02-03 18:51:14 +01:00
parent a970bc15de
commit 862a810c18
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ build: Makefile
deploy:
docker service rm dummy || true
install -D -m 644 config/systemd/dummy.service /etc/systemd/system
podman stop dummy || true && podman rm dummy || true
systemctl stop dummy.service || true
podman run --name dummy -d dummy:latest
systemctl daemon-reload
systemctl enable dummy.service

View File

@ -5,6 +5,7 @@ Description=A dummy service
Restart=always
ExecStart=/usr/bin/podman start -a dummy
ExecStop=/usr/bin/podman stop -t 2 dummy
ExecStopPost=/usr/bin/podman rm -f dummy
[Install]
WantedBy=default.target