dev-xvdc1-swap.service 324 B

12345678910111213
  1. [Unit]
  2. # have it as .service, not .swap, because .swap has implicit dependency on
  3. # .device which needs udev running already
  4. Description=Enable swap on /dev/xvdc1 early
  5. DefaultDependencies=no
  6. Before=systemd-fsck-root.service
  7. [Service]
  8. Type=oneshot
  9. ExecStart=-/usr/sbin/swapon /dev/xvdc1
  10. [Install]
  11. WantedBy=sysinit.target