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