From 83a1f7934f38a7cf78b2fa609e4effc565f6151c Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Fri, 11 Nov 2022 18:52:07 +0000 Subject: [PATCH] added service --- rebased-pod.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 rebased-pod.service 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