From 7f930933b4d76d8bac1836cb1cf22ca5b7efb3db Mon Sep 17 00:00:00 2001 From: gibbyb Date: Tue, 6 Oct 2026 10:57:44 -0400 Subject: [PATCH] Run the unit as a rootless user service WorkingDirectory uses %h, the unit installs under default.target, and it retries a failed start with a limit, the same as the other services on the VPS. --- docker/podman-bang.service | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker/podman-bang.service b/docker/podman-bang.service index 9e3a2b6..aa7d4ba 100644 --- a/docker/podman-bang.service +++ b/docker/podman-bang.service @@ -2,14 +2,19 @@ Description=Podman Compose: Bang After=network-online.target Wants=network-online.target +StartLimitIntervalSec=300 +StartLimitBurst=3 [Service] Type=oneshot -WorkingDirectory=/home/gib/Server/Search/Bang/docker +WorkingDirectory=%h/Server/Search/Bang/docker ExecStart=/usr/bin/podman compose up -d ExecStop=/usr/bin/podman compose down RemainAfterExit=yes +TimeoutStartSec=900 TimeoutStopSec=60 +Restart=on-failure +RestartSec=30 [Install] -WantedBy=multi-user.target +WantedBy=default.target