File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525import argparse
2626
27- import configparser
2827import logging
2928import sys
3029
@@ -229,24 +228,6 @@ def shutdown():
229228 # start the shutdown process and returning immediately (hopeully before the shutdown process begins)
230229 Popen ('sleep 1 && sudo systemctl poweroff' , shell = True )
231230
232-
233- @api .post (
234- '/api/persist_logs' ,
235- tags = ["config" ],
236- response_class = Response ,
237- responses = {
238- 200 : {}
239- }
240- )
241- def log_persistance (ctrl : Api = Depends (get_ctrl )):
242- """Toggles log persistance by directly changing the journald.conf and restarting the service"""
243- try :
244- ctrl .toggle_persist_logs ()
245- except Exception as e :
246- logger .error ("persist_logs toggle failed!" )
247- raise e
248-
249-
250231@api .post (
251232 '/api/lms_mode' , tags = ['config' ],
252233 response_class = Response ,
Original file line number Diff line number Diff line change 2424
2525from enum import Enum
2626
27- import configparser
2827from copy import deepcopy
2928import os # files
3029from pathlib import Path
You can’t perform that action at this time.
0 commit comments