Skip to content

Commit 8d2bca3

Browse files
committed
restart service after the web server had import the new release number
1 parent 4a563bb commit 8d2bca3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rtkbase_update.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@ upd_${old_version} "$@"
155155
echo "delete the line version= in settings.conf"
156156
# The new version number will be imported from settings.conf.default during the web server startup.
157157
sed -i '/version=/d' ${destination_directory}/settings.conf
158-
# restart ntrip/rtcm to send the new release number in the stream
159-
systemctl is-active --quiet str2str_ntrip.service && systemctl restart str2str_ntrip.service
160-
systemctl is-active --quiet str2str_local_ntrip_caster.service && systemctl restart str2str_local_ntrip_caster.service
161-
systemctl is-active --quiet str2str_rtcm_svr.service && systemctl restart str2str_rtcm_svr.service
162-
systemctl is-active --quiet str2str_rtcm_serial.service && systemctl restart str2str_rtcm_serial.service
163158

164159
#change rtkbase's content owner
165160
chown -R ${standard_user}:${standard_user} ${destination_directory}
166161

167162
echo "Restart web server"
168163
systemctl restart rtkbase_web.service
169-
164+
# restart ntrip/rtcm to send the new release number in the stream
165+
sleep 5
166+
systemctl is-active --quiet str2str_ntrip.service && systemctl restart str2str_ntrip.service
167+
systemctl is-active --quiet str2str_local_ntrip_caster.service && systemctl restart str2str_local_ntrip_caster.service
168+
systemctl is-active --quiet str2str_rtcm_svr.service && systemctl restart str2str_rtcm_svr.service
169+
systemctl is-active --quiet str2str_rtcm_serial.service && systemctl restart str2str_rtcm_serial.service
170170
#if a reboot is needed
171171
#systemctl reboot

0 commit comments

Comments
 (0)