Skip to content

Commit

Permalink
update service list
Browse files Browse the repository at this point in the history
stop/restart raw2nmea service during upgrade
  • Loading branch information
Stefal committed Jun 12, 2024
1 parent 56591f0 commit efb1730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion rtkbase_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ str2str_local_caster=$(systemctl is-active str2str_local_ntrip_caster)
str2str_rtcm=$(systemctl is-active str2str_rtcm_svr)
str2str_serial=$(systemctl is-active str2str_rtcm_serial)
str2str_file=$(systemctl is-active str2str_file)
rtkrcv_raw2nmea=$(systemctl is-active rtkbase_raw2nmea)

check_before_update() {
TOO_OLD='You'"'"'re Operating System is too old\nPlease update it or reflash you SDCard with a more recent RTKBase image\n'
Expand Down Expand Up @@ -222,6 +223,7 @@ upd_2.3.3() {

upgrade_rtklib() {
systemctl stop str2str_tcp
systemctl stop rtkbase_raw2nmea
bin_path=$(dirname "$(command -v str2str)")
rm "${bin_path}"'/str2str' "${bin_path}"'/rtkrcv' "${bin_path}"'/convbin'
"${destination_directory}"'/tools/install.sh' --user "${standard_user}" --rtklib
Expand Down Expand Up @@ -364,7 +366,7 @@ upd_2.5.0 () {
[ $str2str_rtcm = 'active' ] && systemctl start str2str_rtcm_svr
[ $str2str_serial = 'active' ] && systemctl start str2str_rtcm_serial
[ $str2str_file = 'active' ] && systemctl start str2str_file

[ $rtkrcv_raw2nmea = 'active' ] && systemctl start rtkbase_raw2nmea

}
#check if we can apply the update
Expand Down
4 changes: 1 addition & 3 deletions web_app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@
{"service_unit" : "str2str_ntrip_B.service", "name" : "ntrip_B"},
{"service_unit" : "str2str_local_ntrip_caster.service", "name" : "local_ntrip_caster"},
{"service_unit" : "str2str_rtcm_svr.service", "name" : "rtcm_svr"},
{"service_unit" : "str2str_rtcm_client.service", "name" : "rtcm_client"},
{"service_unit" : "str2str_rtcm_udp_svr.service", "name" : "rtcm_udp_svr"},
{'service_unit' : 'str2str_rtcm_udp_client.service', "name" : "rtcm_udp_client"},
{'service_unit' : 'str2str_rtcm_serial.service', "name" : "rtcm_serial"},
{"service_unit" : "str2str_file.service", "name" : "file"},
{'service_unit' : 'rtkbase_archive.timer', "name" : "archive_timer"},
{'service_unit' : 'rtkbase_archive.service', "name" : "archive_service"},
{'service_unit' : 'rtkbase_raw2nmea.service', "name" : "raw2nmea"},
]

#Delay before rtkrcv will stop if no user is on status.html page
Expand Down

0 comments on commit efb1730

Please sign in to comment.