Hi list,
need some help to understand what is going here.
The main problem is: to check if dirsrv is running before calling ca.install().
So, in order to do that I added the lines in ca install_check:
if services.knownservices.dirsrv.is_installed() and
not services.knownservices.dirsrv.is_running():
raise ScriptError('Directory Server is not running')
is_running returns True, however, the method is_installed always returns
False.
The method checks if "dirsrv@EXAMPLE-TEST.service" is in the output of
"systemctl list-unit-files --full", which do not happen.
If I run "systemctl | grep running", dirsrv@EXAMPLE-TEST.service is in the
ouput.
What I'm missing here?
Thanks,
Felipe