github.com/ethanhsieh/snapd@v0.0.0-20210615102523-3db9b8e4edc5/data/systemd/snapd.recovery-chooser-trigger.service.in (about)

     1  [Unit]
     2  Description=Wait for the Ubuntu Core chooser trigger
     3  Before=snapd.service
     4  # don't run on classic or uc16/uc18
     5  ConditionKernelCommandLine=snapd_recovery_mode
     6  # only run when there are input devices
     7  ConditionPathExistsGlob=/dev/input/event*
     8  
     9  [Service]
    10  # blocks the service startup until a trigger is detected or a timeout is hit
    11  Type=oneshot
    12  ExecStart=@libexecdir@/snapd/snap-bootstrap recovery-chooser-trigger
    13  RemainAfterExit=true
    14  
    15  [Install]
    16  WantedBy=multi-user.target
    17  
    18  # started on boot only
    19  # X-Snapd-Snap: do-not-start