summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-17 01:14:44 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-17 02:43:44 +0200
commit1713703c966d85de2591498b45b6c035d04350aa (patch)
tree9abf6c7950e6b10224cd7f383a24864366a746a9
parentd7b15e0a0161e8fd823bffd61a4799364871582f (diff)
preset: ship a minimal preset file upstream
This is useful so that distros have something to base their own policy of. It also useful to make sure that minimal installs always get useful configuration in place.
-rw-r--r--Makefile.am3
-rw-r--r--system-preset/90-systemd.preset31
l---------system-preset/Makefile1
3 files changed, 35 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index a9e07b455f..66eda99490 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -509,6 +509,9 @@ dist_userunit_DATA = \
nodist_userunit_DATA = \
units/user/systemd-exit.service
+dist_systempreset_DATA = \
+ system-preset/90-systemd.preset
+
EXTRA_DIST += \
units/getty@.service.m4 \
units/serial-getty@.service.m4 \
diff --git a/system-preset/90-systemd.preset b/system-preset/90-systemd.preset
new file mode 100644
index 0000000000..e4a9e17cb7
--- /dev/null
+++ b/system-preset/90-systemd.preset
@@ -0,0 +1,31 @@
+# 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.
+
+# These ones should be enabled by default, even if distributions
+# generally follow a default-off policy.
+
+enable remote-fs.target
+enable getty@.service
+enable systemd-readahead-*
+enable systemd-timesyncd.service
+enable systemd-networkd.service
+enable systemd-resolved.service
+
+disable console-getty.service
+disable console-shell.service
+disable debug-shell.service
+
+disable halt.target
+disable kexec.target
+disable poweroff.target
+disable reboot.target
+disable rescue.target
+
+disable syslog.socket
+
+disable systemd-journal-gatewayd.*
+disable systemd-networkd-wait-online.service
diff --git a/system-preset/Makefile b/system-preset/Makefile
new file mode 120000
index 0000000000..bd1047548b
--- /dev/null
+++ b/system-preset/Makefile
@@ -0,0 +1 @@
+../src/Makefile \ No newline at end of file