We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a6c71e commit 0d77fa3Copy full SHA for 0d77fa3
mycodo/mycodo_daemon.py
@@ -1178,6 +1178,15 @@ def controller_deactivate(self, cont_id):
1178
self.logger.exception(message)
1179
return 1, message
1180
1181
+ def controller_restart(self, cont_id):
1182
+ """Restart a controller."""
1183
+ try:
1184
+ return self.mycodo.controller_restart(cont_id)
1185
+ except Exception as except_msg:
1186
+ message = f"Could not restart controller with ID {cont_id}: {except_msg}"
1187
+ self.logger.exception(message)
1188
+ return 1, message
1189
+
1190
def controller_is_active(self, cont_id):
1191
"""Checks if a controller is active."""
1192
return self.mycodo.controller_is_active(cont_id)
0 commit comments