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.
21 lines
414 B
Desktop File
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
|