Template
1
0
dummy/config/systemd/dummy.service
2021-02-04 12:31:54 +01:00

14 lines
303 B
Desktop File

[Unit]
Description=A dummy service
[Service]
Restart=always
ExecStartPre=-/usr/bin/podman rm -f dummy
ExecStart=/usr/bin/podman run --name dummy dummy:latest
ExecStop=/usr/bin/podman stop -t 2 dummy
ExecStopPost=-/usr/bin/podman rm -f dummy
ExecStopPost=/bin/sleep 2
[Install]
WantedBy=default.target