snapd.system-shutdown.service 570 B

12345678910111213141516171819
  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. ConditionKernelCommandLine=|snapd_recovery_mode
  8. # don't run if system-shutdown isn't there
  9. ConditionPathExists=/usr/lib/snapd/system-shutdown
  10. # X-Snapd-Snap: do-not-start
  11. [Service]
  12. Type=oneshot
  13. ExecStart=/bin/mount /run -o remount,exec
  14. ExecStart=/bin/mkdir -p /run/initramfs
  15. ExecStart=/bin/cp /usr/lib/snapd/system-shutdown /run/initramfs/shutdown
  16. [Install]
  17. WantedBy=final.target