21 lines
525 B
Desktop File
21 lines
525 B
Desktop File
[Unit]
|
|
Description=sharry.service
|
|
Wants=network.target
|
|
After=network-online.target
|
|
RequiresMountsFor=/var/lib/containers/storage /var/run/containers/storage
|
|
|
|
# %E is "the XDG_CONFIG path"
|
|
|
|
[Service]
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
Restart=on-failure
|
|
TimeoutStopSec=70
|
|
ExecStart=/usr/bin/podman-compose -f %E/compose/sharry.yml up -d
|
|
ExecStop=/usr/bin/podman-compose -f %E/compose/sharry.yml down
|
|
ExecStopPost=/usr/bin/podman rm sharry
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|