~michael-sheldon/ubuntu-touch-session/fix-1659388

« back to all changes in this revision

Viewing changes to keep-display-on-during-boot.conf

  • Committer: Bileto Bot
  • Author(s): Alexandros Frantzis
  • Date: 2016-11-17 15:41:06 UTC
  • mfrom: (293.1.1 ubuntu-touch-session)
  • Revision ID: ci-train-bot@canonical.com-20161117154106-i1xciw132s3347qk
Fix potential upstart job race between lightdm and keep-display-on-during-boot (LP: #1642360)

If lightdm happens to start before keep-display-on-during-boot, then keep-display-on-during-boot will never receive the "started lightdm" event, and will therefore never release the display-on lock.

This MP ensures that the keep-display-on-during-boot job does not acquire a display-on lock if lightdm is already running, thus avoiding the scenario described above. (LP: #1642360)

Approved by: Pat McGowan, Łukasz Zemczak

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
start on started repowerd
14
14
stop on started lightdm
15
15
 
 
16
pre-start script
 
17
    if status lightdm | grep running;
 
18
    then
 
19
        stop; exit 0
 
20
    fi
 
21
end script
 
22
 
16
23
exec repowerd-cli display on