Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 26-01-2017, 03:07   #1
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 4,680
Closing Opencpn via command line on linux

Hi, I use raspberry pi running openplotter, often from a tablet.
So to shutdown the Pi, rather than use VNC with fat cold fingers I have a button on node-red programmed to send this to the command line (found on google):

killall -s TERM opencpn
(then delay 5 seconds)
sudo shutdown -h now

Seems to work OK, but anyone know if there's a "nicer" way to close opencpn using the command line?
It seems to save tracks and the logbook data OK but seems a bit heavy handed - is there a better command line option?

Thanks
conachair is online now   Reply With Quote
Old 26-01-2017, 03:26   #2
Registered User
 
teddythetwig's Avatar

Join Date: Oct 2016
Location: Amsterdam
Boat: Contest 40
Posts: 78
Re: Closing Opencpn via command line on linux

Quote:
Originally Posted by conachair View Post
Hi, I use raspberry pi running openplotter, often from a tablet.
So to shutdown the Pi, rather than use VNC with fat cold fingers I have a button on node-red programmed to send this to the command line (found on google):

killall -s TERM opencpn
(then delay 5 seconds)
sudo shutdown -h now

Seems to work OK, but anyone know if there's a "nicer" way to close opencpn using the command line?
It seems to save tracks and the logbook data OK but seems a bit heavy handed - is there a better command line option?

Thanks
You can always try to send SIGHUP instead of the default SIGTERM. I believe that is the signal sent when pressing the "x" to close a GUI window. It may be more graceful, but I don't know if it really matters.
teddythetwig is offline   Reply With Quote
Old 26-01-2017, 06:39   #3
Registered User

Join Date: Nov 2007
Location: Probably in an anchorage or a boatyard..
Boat: Ebbtide 33' steel cutter
Posts: 4,680
Re: Closing Opencpn via command line on linux

Should anyone be interested....

Quick look at the opencpn.log file and it seems like using the exit opencpn menu button has exactly the same result as "killall -s TERM opencpn " on the command line so think all is good.
Node red on the Pi is GREAT!
conachair is online now   Reply With Quote
Reply

Tags
enc, linux, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenCPN Linux / Ubuntu Issues and Questions yachtmanforfun OpenCPN 65 24-01-2018 08:06
OpenCPN plugin for Bridge Command use j85 OpenCPN 7 01-09-2016 20:26
How to run command line in android app calderp OpenCPN 5 07-04-2016 08:08
Command line senc creation for all NOAA enc charts- bad idea? calderp OpenCPN 3 06-04-2016 07:28
OpenCPN, Linux, Web site opencpn.org, user manual and manual wiki ... Gilletarom OpenCPN 26 30-11-2015 15:17

Advertise Here


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 22:54.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
×

ShowCase vBulletin Plugins by Drive Thru Online, Inc.