Template
1
0

Trying to kick out the service in a very dumb way

This commit is contained in:
Azer Abdullaev 2021-02-03 19:01:05 +01:00
parent e2eaef3a18
commit 62d3942832
2 changed files with 1 additions and 2 deletions

View File

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

View File

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