Yeah, don't use that script. $UPSTART_EVENTS is the variable containing the list of events that triggered the *start* of the job; so anything that's 'start on [...] runlevel [...]' will always match and then we have the same race condition all over again.
Here's an alternative that DTRT. post-stop script if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then initctl emit desktop-shutdown fi end script Tested out here with gdm and lightdm installed; the dots-over-text error goes away with this change. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to xdm in Ubuntu. https://bugs.launchpad.net/bugs/854329 Title: race condition on shutdown with more than one DM installed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/854329/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-x-swat Post to : ubuntu-x-swat@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-x-swat More help : https://help.launchpad.net/ListHelp