[Freeipa-devel] [PATCH 0043] Stop uninstaller from failing if a service can't be started
Stanislav Laznicka
slaznick at redhat.com
Fri Jun 24 13:50:41 UTC 2016
On 06/21/2016 04:39 PM, Martin Basti wrote:
>
>
> On 14.06.2016 17:26, Stanislav Laznicka wrote:
>> - signerd_service.start()
>> + try:
>> + signerd_service.start()
>> + except Exception as e:
>> + root_logger.error("Unable to start '{svcname}': {err}"
>> + .format(svcname=signerd_service.service_name,
>> + err=e))
>
> why is signerd so special?
>
> Martin^2
>
From ODSExporterInstance.uninstall():
signerd_service = services.knownservices.ods_signerd
This means that signerd_service here is not an instance of the
service.Service class or of its child class but is rather an instance of
the RedHatService class, a child class of the services.SystemdService
class. Thus it has to be treated with special care.
More information about the Freeipa-devel
mailing list