From 808025cb9def4c4d7df50e4cba041d620d4e77e4 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Jul 19 2018 17:05:42 +0000 Subject: Improve service ordering in .service file, drop overlooked debug statement --- diff --git a/zram-swap.service b/zram-swap.service index e963d6f..14ced81 100644 --- a/zram-swap.service +++ b/zram-swap.service @@ -1,6 +1,7 @@ [Unit] Description=Enable compressed swap in memory using zram -After=multi-user.target +DefaultDependencies=no +Before=swap.target [Service] Type=oneshot @@ -11,4 +12,3 @@ ExecStop=/usr/sbin/zramstop [Install] WantedBy=swap.target -DefaultDependencies=false diff --git a/zram.spec b/zram.spec index 39063a5..2611c4c 100644 --- a/zram.spec +++ b/zram.spec @@ -1,5 +1,5 @@ Name: zram -Version: 0.1 +Version: 0.2 Release: 1%{?dist} Summary: ZRAM for swap config and services for Fedora License: GPLv2+ @@ -53,5 +53,8 @@ install -pm 0755 %{SOURCE4} %{buildroot}%{_sbindir} %{_sbindir}/zramstop %changelog +* Thu Jul 19 2018 Peter Robinson 0.2-1 +- Service ordering fixes, minor cleanup + * Tue Jul 17 2018 Peter Robinson 0.1-1 - Initial package diff --git a/zramstart b/zramstart index 391ec19..ed5d2e5 100755 --- a/zramstart +++ b/zramstart @@ -1,8 +1,7 @@ #!/bin/bash - +#set -x # default factor of 1/3 of RAM factor=3 -echo "Factor: $factor" [ -f /etc/zram.conf ] && source /etc/zram.conf || true factor=$FACTOR