infra/roles/signal-bots/templates/signald.service
2024-05-18 21:44:05 -07:00

16 lines
629 B
Desktop File

[Unit]
Description=signald
Wants=network.target
[Service]
Type=simple
ExecStartPre=/usr/bin/podman pull git.janky.solutions/signald/signald:dev
ExecStartPre=-/usr/bin/podman stop signald
ExecStartPre=-/usr/bin/podman rm signald
ExecStartPre=/usr/bin/mkdir -p /var/run/signald
ExecStartPre=/usr/bin/chown 1337:signald /var/run/signald
ExecStart=/usr/bin/podman run --rm -v /var/run/signald:/var/run/signald -v /var/signald:/signald --name signald -p 9595:9595 git.janky.solutions/signald/signald:dev --socket /var/run/signald/signald.sock --metrics --trust-new-keys --verbose
Restart=always
[Install]
WantedBy=multi-user.target