32 lines
715 B
SYSTEMD
32 lines
715 B
SYSTEMD
|
[Unit]
|
||
|
Description=Podman container-slskd.service
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
||
|
Restart=on-failure
|
||
|
TimeoutStopSec=70
|
||
|
ExecStartPre=/bin/rm -f %t/%n.ctr-id
|
||
|
ExecStart=/usr/bin/podman run \
|
||
|
--cidfile=%t/%n.ctr-id \
|
||
|
--cgroups=no-conmon \
|
||
|
--rm \
|
||
|
--sdnotify=conmon \
|
||
|
--name=slskd \
|
||
|
-e SLSKD_REMOTE_CONFIGURATION=true \
|
||
|
-v slskd-data:/app:z \
|
||
|
-v /nas/media:/nas \
|
||
|
-d \
|
||
|
-p 5030:5030 \
|
||
|
-p 5031:5031 \
|
||
|
-p 50300:50300 \
|
||
|
docker.io/slskd/slskd:latest
|
||
|
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
|
||
|
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
|
||
|
Type=notify
|
||
|
NotifyAccess=all
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|