source: trunk/debathena/config/reactivate/debian/90debathena-reactivate @ 25609

Revision 25609, 618 bytes checked in by jdreed, 12 years ago (diff)
In reactivate: * Avoid race conditions by inhibiting dbus-daemon-launch-helper during a chroot shutdown (Trac: #1052, probably)
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3set -e
4
5. "$SETUP_DATA_DIR/common-data"
6. "$SETUP_DATA_DIR/common-functions"
7
8if [ -f "$CHROOT_SCRIPT_CONFIG" ]; then
9    . "$CHROOT_SCRIPT_CONFIG"
10elif [ "$STATUS" = "ok" ]; then
11    fatal "script-config file '$CHROOT_SCRIPT_CONFIG' does not exist"
12fi
13
14if [ $STAGE = "setup-start" ]; then
15    info "Adding messagebus to access list for session ${SESSION_ID}"
16    sed -i "/^root-users/s/$/,messagebus/" /var/lib/schroot/session/"${SESSION_ID}"
17fi
18
19if [ $STAGE = "setup-stop" ]; then
20    info "Inhibiting dbus-daemon-launch-helper during chroot shutdown"
21    touch /var/run/debathena-inhibit-dbus-helper
22fi
23
Note: See TracBrowser for help on using the repository browser.