Example #1
0
 async def get_state(self):
     return ServiceState(
         (await self.middleware.call('kmip.config'))['enabled'],
         [],
     )
Example #2
0
 async def get_state(self):
     return ServiceState(True, [])
Example #3
0
 async def _get_state_freebsd(self):
     return ServiceState(
         (await self._freebsd_service("collectd-daemon",
                                      "status")).returncode == 0,
         [],
     )
Example #4
0
 async def _get_state_freebsd(self):
     return ServiceState(
         (await self._freebsd_service("libvirtd",
                                      "status")).returncode == 0,
         [],
     )
Example #5
0
 async def get_state(self):
     return ServiceState(
         await self.middleware.call(f"{self.plugin}.started"),
         [],
     )