2020-07-18 16:06:22 +00:00
|
|
|
From 98580b4aa34f3d2e7401f54d6561c5af27ea3437 Mon Sep 17 00:00:00 2001
|
2020-04-24 23:36:52 +00:00
|
|
|
From: Nikolay Amiantov <ab@fmap.me>
|
|
|
|
Date: Thu, 25 Jul 2019 20:45:55 +0300
|
2020-05-15 21:57:56 +00:00
|
|
|
Subject: [PATCH 15/18] systemd-shutdown: execute scripts in
|
2020-04-24 23:36:52 +00:00
|
|
|
/etc/systemd/system-shutdown
|
|
|
|
|
|
|
|
This is needed for NixOS to use such scripts as systemd directory is immutable.
|
|
|
|
---
|
|
|
|
src/shutdown/shutdown.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c
|
2020-07-18 16:06:22 +00:00
|
|
|
index 523040b57c..561d91c94c 100644
|
2020-04-24 23:36:52 +00:00
|
|
|
--- a/src/shutdown/shutdown.c
|
|
|
|
+++ b/src/shutdown/shutdown.c
|
2020-07-18 16:06:22 +00:00
|
|
|
@@ -299,7 +299,7 @@ int main(int argc, char *argv[]) {
|
2020-04-24 23:36:52 +00:00
|
|
|
_cleanup_free_ char *cgroup = NULL;
|
|
|
|
char *arguments[3], *watchdog_device;
|
|
|
|
int cmd, r, umount_log_level = LOG_INFO;
|
|
|
|
- static const char* const dirs[] = {SYSTEM_SHUTDOWN_PATH, NULL};
|
|
|
|
+ static const char* const dirs[] = {SYSTEM_SHUTDOWN_PATH, "/etc/systemd/system-shutdown", NULL};
|
|
|
|
|
|
|
|
/* The log target defaults to console, but the original systemd process will pass its log target in through a
|
|
|
|
* command line argument, which will override this default. Also, ensure we'll never log to the journal or
|
|
|
|
--
|
2020-05-15 21:57:56 +00:00
|
|
|
2.26.2
|
2020-04-24 23:36:52 +00:00
|
|
|
|