Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 22 lines 715 B view raw
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2From: Nikolay Amiantov <ab@fmap.me> 3Date: Thu, 25 Jul 2019 20:46:58 +0300 4Subject: [PATCH] systemd-sleep: execute scripts in /etc/systemd/system-sleep 5 6This is needed for NixOS to use such scripts as systemd directory is immutable. 7--- 8 src/sleep/sleep.c | 1 + 9 1 file changed, 1 insertion(+) 10 11diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c 12index 181bb4ccef..2b1410d8a1 100644 13--- a/src/sleep/sleep.c 14+++ b/src/sleep/sleep.c 15@@ -218,6 +218,7 @@ static int execute( 16 }; 17 static const char* const dirs[] = { 18 SYSTEM_SLEEP_PATH, 19+ "/etc/systemd/system-sleep", 20 NULL 21 }; 22