blob: 81ba486187bff7faf76b358450508486c972a0f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[Unit]
Description=Skywire dmsg-discovery service
Wants=network-online.target redis.service
[Service]
Type=simple
ExecStartPre=/bin/bash -c '[[ ! -f /etc/skywire-dmsgd.conf ]] && skywire cli config gen-keys | tee /etc/skywire-dmsgd.conf || true'
ExecStart=/bin/bash -c "skywire dmsg disc --sk $$(tail -n1 /etc/skywire-dmsgd.conf)"
Restart=always
RestartSec=20
TimeoutSec=30
[Install]
WantedBy=multi-user.target
|