Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-guis
Navigation:
Lists: gentoo-guis: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-guis@g.o
From: René 'Necoro' Neumann <lists@...>
Subject: Re: One backend for alle portage GUIs
Date: Mon, 05 Nov 2007 00:51:21 +0100
-----BEGIN PGP SIGNED MESSAGE-----
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 catapult-start.sh: I renamed it to "catapult.sh" and
make it accept four commands:

- - start: Starts the service - the script does not return # old
catapult-start.sh 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 - http://enigmail.mozdev.org

iD8DBQFHLlr44UOg/zhYFuARAjghAJ9IRA5R29O25OF0sKKoLqwaHBp89ACfTGKe
2CkmnA8aS3nyw8dzkS4LqDA=
=smMS
-----END PGP SIGNATURE-----
-- 
gentoo-guis@g.o mailing list


References:
One backend for alle portage GUIs
-- René 'Necoro' Neumann
Re: One backend for alle portage GUIs
-- René 'Necoro' Neumann
Re: One backend for alle portage GUIs
-- René 'Necoro' Neumann
Navigation:
Lists: gentoo-guis: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: One backend for alle portage GUIs
Next by thread:
Re: One backend for alle portage GUIs
Previous by date:
Re: One backend for alle portage GUIs
Next by date:
Re: One backend for alle portage GUIs


Updated Jun 17, 2009

Summary: Archive of the gentoo-guis mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.