diff --git a/rebased-pod.service b/rebased-pod.service new file mode 100644 index 0000000..0be5068 --- /dev/null +++ b/rebased-pod.service @@ -0,0 +1,14 @@ +[Unit] +Description=Rebased Podman container +Wants=syslog.service + +[Service] +ExecStartPre=/bin/sleep 10 +Restart=always +ExecStartPre=/usr/bin/podman pod start rebased-pod +ExecStart=/usr/bin/podman attach rebased-web +ExecStop=/usr/bin/podman pod stop rebased-pod +User=psw + +[Install] +WantedBy=multi-user.target