[Freeipa-devel] [PATCH, 2.1] 0021 Fedora 16 and systemd support
Alexander Bokovoy
abokovoy at redhat.com
Tue Oct 18 11:27:39 UTC 2011
On Tue, 18 Oct 2011, Martin Kosek wrote:
> I tested our most recent master with simo's rebased patch and your patch
> 0004-Spin-for-connection-success-also-when-socket-is-not-.patch. It
> looks very good, I hit just few issues:
>
> 1) ipa service reports inactive (dead) status even though LDAP server is
> running:
>
> systemctl status ipa.service
> ipa.service - Identity, Policy, Audit
> Loaded: loaded (/lib/systemd/system/ipa.service; enabled)
> Active: inactive (dead) since Mon, 17 Oct 2011 10:21:30 -0400; 15s ago
> Process: 25194 ExecStop=/usr/sbin/ipactl stop (code=exited, status=0/SUCCESS)
> Process: 25173 ExecStart=/usr/sbin/ipactl start (code=exited, status=0/SUCCESS)
> CGroup: name=systemd:/system/ipa.service
>
> Maybe we should return "active" status when dirsrv is running?
We can't. This is systemd's status which we can't influence. And you
have stopped the service so it is properly showing it as 'inactive'.
I still need to investigate such cases as in correct situation it should be:
ipa.service - Identity, Policy, Audit
Loaded: loaded (/lib/systemd/system/ipa.service; enabled)
Active: active (exited) since Mon, 17 Oct 2011 07:03:17 -0400; 24h ago
Process: 956 ExecStart=/usr/sbin/ipactl start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/ipa.service
Note that you have ExecStop for process 25194 (which is newer than
25173) -- which means you have stopped ipa.service yourself.
It should have stopped dirsrv.target, though. Here is how it looks if
I issue 'systemctl stop ipa.service':
ipa.service - Identity, Policy, Audit
Loaded: loaded (/lib/systemd/system/ipa.service; enabled)
Active: inactive (dead) since Tue, 18 Oct 2011 07:24:30 -0400; 1s ago
Process: 11004 ExecStop=/usr/sbin/ipactl stop (code=exited, status=0/SUCCESS)
Process: 956 ExecStart=/usr/sbin/ipactl start (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/ipa.service
And for dirsrv.target after that:
# systemctl status dirsrv.target
dirsrv.target - 389 Directory Server
Loaded: loaded (/lib/systemd/system/dirsrv.target; disabled)
Active: inactive (dead)
> 2) I wasn't able to build IPA on F-15 after the patches were applied:
> $ make rpms
> ...
> + install -m755
> init/SystemV/ipa.init /home/mkosek/freeipa/rpmbuild/BUILDROOT/freeipa-2.99.0GITb607c5c-0.fc15.x86_64/etc/rc.d/init.d/ipa
> install: cannot stat `init/SystemV/ipa.init': No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.nwbRUX (%install)
>
> ipa.init was removed from the git, but it was never moved to
> init/SystemV/.
It should have been moved (rm+new file). I'll check what's happening
there, maybe Simo's patch omitted that one?
http://koji.fedoraproject.org/koji/taskinfo?taskID=3437275 is current
scratch build of 2.1 for F-16. It is 2.1.2+diff up to current ipa-2-1
git tree + systemd patch.
--
/ Alexander Bokovoy
More information about the Freeipa-devel
mailing list