Code:
[
{
"id": "a21e8ede.8f5aa",
"type": "inject",
"z": "3f30ea31.da3756",
"name": "restart signalk",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 110,
"y": 1800,
"wires": [
[
"1d5665c1.c4a16a"
]
]
},
{
"id": "1d5665c1.c4a16a",
"type": "exec",
"z": "3f30ea31.da3756",
"command": "sudo systemctl stop signalk.service",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "sudo systemctl stop signalk.service",
"x": 360,
"y": 1800,
"wires": [
[
"21cdca01.bff9b6"
],
[],
[
"e46f3f04.a7aa8"
]
]
},
{
"id": "cc85bf4a.43a93",
"type": "exec",
"z": "3f30ea31.da3756",
"command": "sudo systemctl stop signalk.socket",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "sudo systemctl stop signalk.socket",
"x": 360,
"y": 1860,
"wires": [
[
"9563db87.ba05b8"
],
[],
[
"e46f3f04.a7aa8"
]
]
},
{
"id": "65fa4b31.14f344",
"type": "exec",
"z": "3f30ea31.da3756",
"command": "sudo systemctl start signalk.socket",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "sudo systemctl start signalk.socket",
"x": 360,
"y": 1920,
"wires": [
[
"41df3970.233a28"
],
[],
[
"e46f3f04.a7aa8"
]
]
},
{
"id": "1766bfa3.e640b",
"type": "exec",
"z": "3f30ea31.da3756",
"command": "sudo systemctl start signalk.service",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "sudo systemctl start signalk.service",
"x": 360,
"y": 1980,
"wires": [
[],
[
"e46f3f04.a7aa8"
],
[
"e46f3f04.a7aa8"
]
]
},
{
"id": "21cdca01.bff9b6",
"type": "delay",
"z": "3f30ea31.da3756",
"name": "",
"pauseType": "delay",
"timeout": "100",
"timeoutUnits": "milliseconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 590,
"y": 1800,
"wires": [
[
"cc85bf4a.43a93"
]
]
},
{
"id": "9563db87.ba05b8",
"type": "delay",
"z": "3f30ea31.da3756",
"name": "",
"pauseType": "delay",
"timeout": "100",
"timeoutUnits": "milliseconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 590,
"y": 1860,
"wires": [
[
"65fa4b31.14f344"
]
]
},
{
"id": "41df3970.233a28",
"type": "delay",
"z": "3f30ea31.da3756",
"name": "",
"pauseType": "delay",
"timeout": "100",
"timeoutUnits": "milliseconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 590,
"y": 1920,
"wires": [
[
"1766bfa3.e640b"
]
]
},
{
"id": "e46f3f04.a7aa8",
"type": "debug",
"z": "3f30ea31.da3756",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 590,
"y": 1980,
"wires": []
}
]