def go() -> DBusString: unit = pystemd.systemd1.unit.Unit(service_name, bus=self._dbus) unit.load() result = _pystemd_dynamic(unit).Service.Result assert isinstance(result, DBusString) return result
def go() -> DBusString: unit = pystemd.systemd1.unit.Unit(unit_name, bus=self._dbus) unit.load() active_state = _pystemd_dynamic(unit).Unit.ActiveState assert isinstance(active_state, DBusString) return active_state