Skip to content

Commit

Permalink
some services were not restarted after saving new settings in the mai…
Browse files Browse the repository at this point in the history
…n service
  • Loading branch information
Stefal committed Dec 23, 2024
1 parent 3d1db6d commit b286b1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Changed
- Faster Septentrio Mosaic-X5 detection
### Fixed
- Fix some services were not restarted after saving new settings in the main service.
- Fix pystemd result request for timer services. #162 #445
- Increase free space for archiving Mosaic-X5 data. #369
- Various fixes #441 #443
Expand Down
9 changes: 6 additions & 3 deletions web_app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,13 +832,16 @@ def restartServices(restart_services_list=None):
if service["name"] == "main":
#the main service should be stopped during at least 1 second to let rtkrcv stop too.
#another solution would be to call rtk.stopbase()
service["unit"].stop()
time.sleep(1.5)
service["unit"].start()
#service["unit"].stop()
#time.sleep(1.5)
#service["unit"].start()
rtk.stopBase()
service["unit"].restart()
else:
service["unit"].restart()

#refresh service status
time.sleep(1)
getServicesStatus()

@socketio.on("get services status", namespace="/test")
Expand Down

0 comments on commit b286b1e

Please sign in to comment.