lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 22.05-pre 27 lines 1.2 kB view raw
1From e7c960789b0ca97b24a66e9eeaa56ea645d9c66b Mon Sep 17 00:00:00 2001 2From: Nikolay Amiantov <ab@fmap.me> 3Date: Thu, 25 Jul 2019 20:45:55 +0300 4Subject: [PATCH 14/21] systemd-shutdown: execute scripts in 5 /etc/systemd/system-shutdown 6 7This is needed for NixOS to use such scripts as systemd directory is immutable. 8--- 9 src/shutdown/shutdown.c | 2 +- 10 1 file changed, 1 insertion(+), 1 deletion(-) 11 12diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c 13index a98cfc4d8a..b0b34edda7 100644 14--- a/src/shutdown/shutdown.c 15+++ b/src/shutdown/shutdown.c 16@@ -312,7 +312,7 @@ int main(int argc, char *argv[]) { 17 _cleanup_free_ char *cgroup = NULL; 18 char *arguments[3], *watchdog_device; 19 int cmd, r, umount_log_level = LOG_INFO; 20- static const char* const dirs[] = {SYSTEM_SHUTDOWN_PATH, NULL}; 21+ static const char* const dirs[] = {SYSTEM_SHUTDOWN_PATH, "/etc/systemd/system-shutdown", NULL}; 22 23 /* The log target defaults to console, but the original systemd process will pass its log target in through a 24 * command line argument, which will override this default. Also, ensure we'll never log to the journal or 25-- 262.33.0 27