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

14 lines
319 B
SYSTEMD
Raw Permalink 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 repo.rcmd.space/dummy:latest
ExecStop=/usr/bin/podman stop -t 2 dummy
2021-02-04 12:31:54 +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