Files
Bang/docker/podman-bang.service
gib 7f930933b4 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.
2026-10-06 10:57:44 -04:00

21 lines
414 B
Desktop File

[Unit]
Description=Podman Compose: Bang
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=300
StartLimitBurst=3
[Service]
Type=oneshot
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=default.target