machine: remove unnecessary supervisord handlers

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-02-08 06:02:25 -05:00
parent 645f0c9acf
commit f0b82afde4
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 0 additions and 27 deletions

View File

@ -1254,20 +1254,6 @@ class SupervisordCliProvider(BaseProvider):
pstats: ProcStats = self.server.lookup_component('proc_stats') pstats: ProcStats = self.server.lookup_component('proc_stats')
pstats.register_stat_callback(self._update_service_status) pstats.register_stat_callback(self._update_service_status)
async def shutdown(self) -> None:
raise self.server.error(
"[machine]: Supervisord manager can not process SHUTDOWN."
"Please try KILL container or stop Supervisord via ssh terminal."
)
return
async def reboot(self) -> None:
raise self.server.error(
"[machine]: Supervisord manager can not process REBOOT."
"Please try KILL container or stop Supervisord via ssh terminal."
)
return
async def do_service_action( async def do_service_action(
self, action: str, service_name: str self, action: str, service_name: str
) -> None: ) -> None:
@ -1276,19 +1262,6 @@ class SupervisordCliProvider(BaseProvider):
f"{action} {service_name}", timeout=6. f"{action} {service_name}", timeout=6.
) )
async def check_virt_status(self) -> Dict[str, Any]:
virt_id = virt_type = "none"
if (
os.path.exists("/.dockerenv") or
os.path.exists("/.dockerinit")
):
virt_id = "docker"
virt_type = "container"
return {
'virt_type': virt_type,
'virt_identifier': virt_id
}
async def _exec_supervisorctl_command( async def _exec_supervisorctl_command(
self, self,
args: str, args: str,