Template
1
0

Updated systemd unit

This commit is contained in:
Azer Abdullaev 2021-02-03 19:12:30 +01:00
parent 70ae4e8905
commit e0680557af

View File

@ -3,9 +3,10 @@ Description=A dummy service
[Service] [Service]
Restart=always Restart=always
ExecStartPre=-/usr/bin/podman rm -f dummy
ExecStart=/usr/bin/podman run --name dummy dummy:latest ExecStart=/usr/bin/podman run --name dummy dummy:latest
ExecStop=/usr/bin/podman stop -t 2 dummy ExecStop=/usr/bin/podman stop -t 2 dummy
ExecStop=/usr/bin/podman rm -f dummy ExecStopPost=/usr/bin/podman rm -f dummy
ExecStopPost=/bin/sleep 2 ExecStopPost=/bin/sleep 2
[Install] [Install]