From 588fadded55c6d808b5a2b076da87d32a7b885e6 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 15 Oct 2010 23:20:15 -0400 Subject: Use systemd's support for normal swapon; only handle autoswap here. --- systemd/system/fedora-autoswap.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 systemd/system/fedora-autoswap.service (limited to 'systemd/system/fedora-autoswap.service') diff --git a/systemd/system/fedora-autoswap.service b/systemd/system/fedora-autoswap.service new file mode 100644 index 00000000..c5087967 --- /dev/null +++ b/systemd/system/fedora-autoswap.service @@ -0,0 +1,13 @@ +[Unit] +Description=Enable all detected swap partitions +DefaultDependencies=no +Conflicts=shutdown.target +Before=shutdown.target emergency.service emergency.target +After=fedora-mountall.service fedora-init-crypto-3.service +Requires=fedora-mountall.service fedora-init-crypto-3.service + +[Service] +ExecStart=/lib/systemd/fedora-autoswap +Type=oneshot +TimeoutSec=0 +RemainAfterExit=yes -- cgit v1.2.1