Template
1
0
dummy/config/systemd/dummy.service

14 lines
302 B
SYSTEMD
Raw Normal View History

[Unit]
Description=A dummy service
[Service]
Restart=always
2021-02-03 19:12:30 +01:00
ExecStartPre=-/usr/bin/podman rm -f dummy
ExecStart=/usr/bin/podman run --name dummy dummy:latest
ExecStop=/usr/bin/podman stop -t 2 dummy
2021-02-03 19:12:30 +01:00
ExecStopPost=/usr/bin/podman rm -f dummy
2021-02-03 19:02:42 +01:00
ExecStopPost=/bin/sleep 2
[Install]
WantedBy=default.target