This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restart Signalk
#1
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
Reply
#2
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*
Reply
#3
(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
Reply
#4
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": []
   }
]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)