OpenMarine

Full Version: Restart Signalk
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Seen it before, but google can't find it now -

What's the command line to restart signalk?

I know there's an option in the signalk dashboard, but only if you have security enabled - mine is disabled to get an ESP sketch to work.

TIA  Heart
Stop the daemon temporarily with;

$ sudo systemctl stop signalk.service
$ sudo systemctl stop signalk.socket
Start the deamon with;

$ sudo systemctl start signalk.socket
$ sudo systemctl start signalk.service
Disable the automatic start with;

$ sudo systemctl disable signalk.service
$ sudo systemctl disable signalk.socket
Check status with;

$ sudo systemctl status signalk*
(2018-07-30, 02:41 PM)jim321 Wrote: [ -> ]Stop the daemon temporarily with;

$ sudo systemctl stop signalk.service
$ sudo systemctl stop signalk.socket
Start the deamon with;

$ sudo systemctl start signalk.socket
$ sudo systemctl start signalk.service
Disable the automatic start with;

$ sudo systemctl disable signalk.service
$ sudo systemctl disable signalk.socket
Check status with;

$ sudo systemctl status signalk*

Thanks!  Cool
Little node red to make life easier if anyone wants it >



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": []
   }
]