Template
1
0
dummy/config/systemd/dummy.service
2021-02-03 19:12:30 +01:00

14 lines
302 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