legends-of-equestria: init at 2024.05.01 (#296316)
[NixPkgs.git] / pkgs / os-specific / linux / systemd / 0010-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch
blob24c74216b7293ab581007f3fd7fcd5628b7255da
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Nikolay Amiantov <ab@fmap.me>
3 Date: Thu, 25 Jul 2019 20:45:55 +0300
4 Subject: [PATCH] systemd-shutdown: execute scripts in
5 /etc/systemd/system-shutdown
7 This is needed for NixOS to use such scripts as systemd directory is immutable.
8 ---
9 src/shutdown/shutdown.c | 1 +
10 1 file changed, 1 insertion(+)
12 diff --git a/src/shutdown/shutdown.c b/src/shutdown/shutdown.c
13 index 67f44e16e9..dda6614561 100644
14 --- a/src/shutdown/shutdown.c
15 +++ b/src/shutdown/shutdown.c
16 @@ -358,6 +358,7 @@ static void notify_supervisor(void) {
17 int main(int argc, char *argv[]) {
18 static const char* const dirs[] = {
19 SYSTEM_SHUTDOWN_PATH,
20 + "/etc/systemd/system-shutdown",
21 NULL
23 _cleanup_free_ char *cgroup = NULL;