github.com/rigado/snapd@v2.42.5-go-mod+incompatible/data/systemd/snapd.system-shutdown.service.in (about)

     1  [Unit]
     2  Description=Ubuntu core (all-snaps) system shutdown helper setup service
     3  Before=umount.target
     4  DefaultDependencies=false
     5  # don't run on classic
     6  ConditionKernelCommandLine=snap_core
     7  # don't run if system-shutdown isn't there
     8  ConditionPathExists=@libexecdir@/snapd/system-shutdown
     9  # X-Snapd-Snap: do-not-start
    10  
    11  [Service]
    12  Type=oneshot
    13  ExecStart=/bin/mount /run -o remount,exec
    14  ExecStart=/bin/mkdir -p /run/initramfs
    15  ExecStart=/bin/cp @libexecdir@/snapd/system-shutdown /run/initramfs/shutdown
    16  
    17  [Install]
    18  WantedBy=final.target