infra/roles/signal-bots/templates/signald.service

17 lines
629 B
SYSTEMD
Raw Normal View History

2024-05-19 04:44:05 +00:00
[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