blob: ce02d76a61823a426d35e7e43814f4a830175af9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[Unit]
Description=Skywire route setup-node service
Wants=network-online.target
[Service]
Type=simple
ExecStartPre=/bin/bash -c '[[ ! -f /etc/skywire-sn.json ]] && skywire cli config gen -n --loglvl debug | jq \'{public_key: .pk, secret_key: .sk, dmsg: {discovery: .dmsg.discovery, sessions_count: .dmsg.sessions_count, servers: .dmsg.servers}, transport_discovery: .transport.discovery, log_level: .log_level}\' | tee skywire-sn.json || true'
ExecStart=/bin/skywire svc sn /etc/skywire-sn.json
Restart=always
RestartSec=20
TimeoutSec=30
[Install]
WantedBy=multi-user.target
|