25 lines
655 B
Desktop File
25 lines
655 B
Desktop File
# TEMPLATE for a rootless user unit.
|
|
# Install to ~/.config/systemd/user/podman-<name>.service then:
|
|
# systemctl --user daemon-reload && systemctl --user enable --now podman-<name>.service
|
|
# Requires linger: sudo loginctl enable-linger $USER
|
|
[Unit]
|
|
Description=Podman Compose: wristcode
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
StartLimitIntervalSec=300
|
|
StartLimitBurst=3
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
WorkingDirectory=%h/Server/Wristcode
|
|
ExecStart=/usr/bin/podman compose up -d
|
|
ExecStop=/usr/bin/podman compose down
|
|
RemainAfterExit=yes
|
|
TimeoutStartSec=300
|
|
TimeoutStopSec=60
|
|
Restart=on-failure
|
|
RestartSec=30
|
|
|
|
[Install]
|
|
WantedBy=default.target
|