From 9758322556d0abc2783bd664226c01934bbed63d Mon Sep 17 00:00:00 2001 From: Vilgot Fredenberg Date: Fri, 24 Jul 2020 08:09:17 +0200 Subject: [PATCH] Set priority for swapD to swapd_prio Linked issue #169 --- systemd-swap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd-swap b/systemd-swap index b2d1113..83a76fe 100755 --- a/systemd-swap +++ b/systemd-swap @@ -320,7 +320,7 @@ case $1 in [[ ${device} == "${used_device}" ]] && unset device done [[ ! -b ${device} ]] && continue - UNIT_NAME=$(gen_swap_unit What="${device}" Options=discard Tag="swapd") + UNIT_NAME=$(gen_swap_unit What="${device}" Options=discard Priority=$swapd_prio Tag="swapd") systemctl daemon-reload systemctl start "${UNIT_NAME}" || continue INFO "swapD: enabled device: ${device}"