summarylogtreecommitdiffstats
path: root/skywire-sd.service
blob: 55a244d0f2e5f3567a2c5fad07d2ecc7c9710cc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Skywire service-discovery service
Wants=network-online.target redis.service postgresql.service

[Service]
Type=simple
ExecStartPre=/bin/bash -c '[[ ! -f /etc/skywire-sd.conf ]] && skywire cli config gen-keys | tee /etc/skywire-sd.conf || true'
ExecStart=/bin/bash -c 'skywire svc sd --sk $$(tail -n1 /etc/skywire-sd.conf)'
Restart=always
RestartSec=20
TimeoutSec=30

[Install]
WantedBy=multi-user.target