]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sleep: install default sleep.conf
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 2 Jan 2019 17:32:57 +0000 (02:32 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Jan 2019 13:43:15 +0000 (14:43 +0100)
Closes #11310.

meson.build
src/sleep/sleep.conf [new file with mode: 0644]

index a72b00fdaf2e1027c118e3f7b6d9c5c1a6ccc0de..a0b86af7822038167b1d63666e9144a39a98d594 100644 (file)
@@ -2396,6 +2396,9 @@ executable('systemd-sleep',
            install : true,
            install_dir : rootlibexecdir)
 
+install_data('src/sleep/sleep.conf',
+             install_dir : pkgsysconfdir)
+
 exe = executable('systemd-sysctl',
                  'src/sysctl/sysctl.c',
                  include_directories : includes,
diff --git a/src/sleep/sleep.conf b/src/sleep/sleep.conf
new file mode 100644 (file)
index 0000000..dc2ed37
--- /dev/null
@@ -0,0 +1,25 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+#
+# Entries in this file show the compile time defaults.
+# You can change settings by editing this file.
+# Defaults can be restored by simply deleting this file.
+#
+# See systemd-sleep.conf(5) for details
+
+[Sleep]
+#AllowSuspend=yes
+#AllowHibernation=yes
+#AllowSuspendThenHibernate=yes
+#AllowHybridSleep=yes
+#SuspendMode=
+#SuspendState=mem standby freeze
+#HibernateMode=platform shutdown
+#HibernateState=disk
+#HybridSleepMode=suspend platform shutdown
+#HybridSleepState=disk
+#HibernateDelaySec=180min