Gentoo Archives: gentoo-guis

From: "René 'Necoro' Neumann" <lists@××××××.eu>
To: gentoo-guis@l.g.o
Subject: Re: [gentoo-guis] One backend for alle portage GUIs
Date: Sun, 04 Nov 2007 23:52:32
In Reply to: Re: [gentoo-guis] One backend for alle portage GUIs by "René 'Necoro' Neumann"
Hash: SHA1

René 'Necoro' Neumann schrieb:
> > Catapult now seems quite reliable. Some functionality still has to be > implemented:
> - allow the server to be stopped from outside. this is esp. important > when installing a new version - the old version running should then stop > and the new one should start ;)
This is now allowed. I added another DBus-Interface (org.gentoo.catapult.Admin) which currently holds the two methods "stop()" and "ping()". The first one does the job :). "Ping" is kind of a start up function: it pings the service - and if the service is not started already, dbus launches it. I also extended the I renamed it to "" and make it accept four commands: - - start: Starts the service - the script does not return # old bevavior - - stop: Stops the service - - ping: Pings the service --> startup WITH returning (see note above) - - status: Checks whether the service has been started. As the catapult services a run on the session bus, it can only give information about the current user. So a restart of e.g. the catapult portage service would look like: if catapult status portage; then catapult stop portage catapult ping portage fi A similar algorithm is used by the catapult-portage ebuild in the pkg_postinst function to restart the root's service (or whoever ran the emerge command). Regards, Necoro -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - iD8DBQFHLlr44UOg/zhYFuARAjghAJ9IRA5R29O25OF0sKKoLqwaHBp89ACfTGKe 2CkmnA8aS3nyw8dzkS4LqDA= =smMS -----END PGP SIGNATURE----- -- gentoo-guis@g.o mailing list