On Thu, Mar 09, 2006 at 03:50:03PM +0100, Patrick Monnerat wrote:
I use "rpm --root ..." to build a cross root filesystem. Some of the
packages I install start, restart or stop a daemon from their
install/erase scripts. [...]
Packages doing that are wrong, IMHO. Packages may do a "condrestart"
(restarting them *only* if they are already running), but never start
(or stop) a service. In fact, the system install itself is done in
another root.
So, IMHO packages should never *need* to check this, they just should
work fine in a chroot environment or they should be fixed.