safe-mode sys argument removed on restart
@@ -1051,6 +1051,10 @@ class Server:
_logger.info("Stopping the FogLAMP Core event loop. Good Bye!")
loop.stop()
+ if 'safe-mode' in sys.argv:
+ sys.argv.remove('safe-mode')
+ sys.argv.append('')
+
python3 = sys.executable
os.execl(python3, python3, *sys.argv)
