Skip to content

Commit

Permalink
Add podman run to the opentofu-runner.service
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Mar 19, 2024
1 parent 9ebbee0 commit e5b0a0d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion systemd/opentofu-runner.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ PartOf=opentofu-runner.target
[Install]
WantedBy=opentofu-runner.target
[Service]
ExecStart=/usr/bin/ruby -e sleep
User=manageiq
Group=manageiq
ExecStartPre=/bin/rm -f /tmp/%n.cid
ExecStart=/usr/bin/podman run --conmon-pidfile %T/%N.pid --cidfile %T/%N.cid --cgroups=no-conmon --log-driver=journald --name=opentofu-runner docker.io/agrare/sleep:latest
ExecStop=/usr/bin/podman stop --ignore -t 30 --cidfile %T/%N.cid
ExecStopPost=/usr/bin/podman rm --ignore --cidfile %T/%N.cid
ExecStopPost=/usr/bin/rm -f %T/%N.pid %T/%N.cid
KillMode=none
Type=simple
Restart=always
Slice=manageiq.slice

0 comments on commit e5b0a0d

Please sign in to comment.