Common startup and shutdown subroutines used by GNOME scripts.