aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-10-15 23:20:15 -0400
committerBill Nottingham <notting@redhat.com>2010-10-15 23:20:15 -0400
commit588fadded55c6d808b5a2b076da87d32a7b885e6 (patch)
tree85ca64e72adadd015b49160c528299981cdb22bc /systemd
parent2d238bd89255740f308f51a50b4cfae2c713293f (diff)
downloadinitscripts-588fadded55c6d808b5a2b076da87d32a7b885e6.tar
initscripts-588fadded55c6d808b5a2b076da87d32a7b885e6.tar.gz
initscripts-588fadded55c6d808b5a2b076da87d32a7b885e6.tar.bz2
initscripts-588fadded55c6d808b5a2b076da87d32a7b885e6.tar.xz
initscripts-588fadded55c6d808b5a2b076da87d32a7b885e6.zip
Use systemd's support for normal swapon; only handle autoswap here.initscripts-9.21.systemd-1
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/fedora-autoswap (renamed from systemd/fedora-swapon)4
-rw-r--r--systemd/system/fedora-autoswap.service (renamed from systemd/system/fedora-swapon.service)4
2 files changed, 3 insertions, 5 deletions
diff --git a/systemd/fedora-swapon b/systemd/fedora-autoswap
index 98c5b273..ea392909 100755
--- a/systemd/fedora-swapon
+++ b/systemd/fedora-autoswap
@@ -1,12 +1,10 @@
#!/bin/bash
#
-# Start up swap (partitions and files)
+# Support automatic swapon.
#
. /etc/init.d/functions
-update_boot_stage RCswap
-action $"Enabling /etc/fstab swaps: " swapon -a -e
if [ "$AUTOSWAP" = "yes" ]; then
curswap=$(awk '/^\/dev/ { print $1 }' /proc/swaps | while read x; do get_numeric_dev dec $x ; echo -n " "; done)
swappartitions=$(blkid -t TYPE=swap -o device)
diff --git a/systemd/system/fedora-swapon.service b/systemd/system/fedora-autoswap.service
index 4b945026..c5087967 100644
--- a/systemd/system/fedora-swapon.service
+++ b/systemd/system/fedora-autoswap.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Configure the system if the administrator requested it
+Description=Enable all detected swap partitions
DefaultDependencies=no
Conflicts=shutdown.target
Before=shutdown.target emergency.service emergency.target
@@ -7,7 +7,7 @@ After=fedora-mountall.service fedora-init-crypto-3.service
Requires=fedora-mountall.service fedora-init-crypto-3.service
[Service]
-ExecStart=/lib/systemd/fedora-swapon
+ExecStart=/lib/systemd/fedora-autoswap
Type=oneshot
TimeoutSec=0
RemainAfterExit=yes