summaryrefslogtreecommitdiffstats
path: root/src/core/system.conf (follow)
Commit message (Collapse)AuthorAgeFilesLines
* meson: add -Dmemory-accounting-default=true|falseZbigniew Jędrzejewski-Szmek2018-02-151-65/+0
| | | | | This makes it easy to set the default for distributions and users which want to default to off because they primarily use older kernels.
* pid1: turn memory accounting on by default nowLennart Poettering2018-02-091-1/+1
| | | | | | | | | | | After discussions with @htejun it appears it's OK now to enable memory accounting by default for all units without affecting system performance too badly. facebook has made good experiences with deploying memory accounting across their infrastructure. This hence turns MemoryAccounting= from opt-in to opt-out, similar to how TasksAccounting= is already handled. The other accounting options remain off, their performance impact is too big still.
* manager: hook up IP accounting defaultsDaniel Mack2017-09-221-0/+1
|
* cgroup: add fields to accommodate eBPF related detailsDaniel Mack2017-09-221-0/+2
| | | | | Add pointers for compiled eBPF programs as well as list heads for allowed and denied hosts for both directions.
* core: add possibility to set action for ctrl-alt-del burst (#4105)Lukáš Nykrýn2016-10-071-0/+1
| | | | | | For some certification, it should not be possible to reboot the machine through ctrl-alt-delete. Currently we suggest our customers to mask the ctrl-alt-delete target, but that is obviously not enough. Patching the keymaps to disable that is really not a way to go for them, because the settings need to be easily checked by some SCAP tools.
* core: change TasksMax= default for system services to 15%Lennart Poettering2016-07-221-1/+1
| | | | | | | | | | | | | | | | | As it turns out 512 is max number of tasks per service is hit by too many applications, hence let's bump it a bit, and make it relative to the system's maximum number of PIDs. With this change the new default is 15%. At the kernel's default pids_max value of 32768 this translates to 4915. At machined's default TasksMax= setting of 16384 this translates to 2457. Why 15%? Because it sounds like a round number and is close enough to 4096 which I was going for, i.e. an eight-fold increase over the old 512 Summary: | on the host | in a container old default | 512 | 512 new default | 4915 | 2457
* core: add io controller support on the unified hierarchyTejun Heo2016-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the unified hierarchy, blkio controller is renamed to io and the interface is changed significantly. * blkio.weight and blkio.weight_device are consolidated into io.weight which uses the standardized weight range [1, 10000] with 100 as the default value. * blkio.throttle.{read|write}_{bps|iops}_device are consolidated into io.max. Expansion of throttling features is being worked on to support work-conserving absolute limits (io.low and io.high). * All stats are consolidated into io.stats. This patchset adds support for the new interface. As the interface has been revamped and new features are expected to be added, it seems best to treat it as a separate controller rather than trying to expand the blkio settings although we might add automatic translation if only blkio settings are specified. * io.weight handling is mostly identical to blkio.weight[_device] handling except that the weight range is different. * Both read and write bandwidth settings are consolidated into CGroupIODeviceLimit which describes all limits applicable to the device. This makes it less painful to add new limits. * "max" can be used to specify the maximum limit which is equivalent to no config for max limits and treated as such. If a given CGroupIODeviceLimit doesn't contain any non-default configs, the config struct is discarded once the no limit config is applied to cgroup. * lookup_blkio_device() is renamed to lookup_block_device(). Signed-off-by: Tejun Heo <htejun@fb.com>
* core: rename StartLimitInterval= to StartLimitIntervalSec=Lennart Poettering2016-04-291-1/+1
| | | | | | | | | We generally follow the rule that for time settings we suffix the setting name with "Sec" to indicate the default unit if none is specified. The only exception was the rate limiting interval settings. Fix this, and keep the old names for compatibility. Do the same for journald's RateLimitInterval= setting
* core: enable TasksMax= for all services by default, and set it to 512Lennart Poettering2015-11-161-2/+2
| | | | | | | | Also, enable TasksAccounting= for all services by default, too. See: http://lists.freedesktop.org/archives/systemd-devel/2015-November/035006.html
* core: add new DefaultTasksMax= setting for system.confLennart Poettering2015-11-131-0/+1
| | | | | This allows initializing the TasksMax= setting of all units by default to some fixed value, instead of leaving it at infinity as before.
* core: system.conf: add DefaultTasksAccountingEvgeny Vereshchagin2015-10-081-0/+1
|
* core: rework crash handlingLennart Poettering2015-09-291-2/+3
| | | | | | | | | | | | | | | | | | | This introduces a new systemd.crash_reboot=1 kernel command line option that triggers a reboot after crashing. This also cleans up crash VT handling. Specifically, it cleans up the configuration setting, to be between 1..63 or a boolean. This is to replace the previous logic where "-1" meant disabled. We continue to accept that setting, but only document the boolean syntax instead. This also brings the documentation of the default settings in sync with what actually happens. The CrashChVT= configuration file setting is renamed to CrashChangeVT=, following our usual logic of not abbreviating unnecessarily. The old setting stays support for compat reasons. Fixes #1300
* Do not advertise .d snippets over main config fileZbigniew Jędrzejewski-Szmek2015-03-041-3/+4
| | | | | | | | | | For daemons which have a main configuration file, there's little reason for the administrator to use configuration snippets. They are useful for packagers which need to override settings, but we shouldn't advertise that as the main way of configuring those services. https://bugs.freedesktop.org/show_bug.cgi?id=89397
* core: Support system.conf.d and user.conf.d directories in the usual search ↵Josh Triplett2014-11-291-0/+3
| | | | paths
* core: remove system start timeout logic againLennart Poettering2014-10-281-3/+0
| | | | | | | | | | | | The system start timeout as previously implemented would get confused by long-running services that are included in the initial system startup transaction for example by being cron-job-like long-running services triggered immediately at boot. Such long-running jobs would be subject to the default 15min timeout, esily triggering it. Hence, remove this again. In a subsequent commit, introduce per-target job timeouts instead, that allow us to control these timeouts more finegrained.
* core: introduce "poweroff" as new failure action typesLennart Poettering2014-08-221-1/+1
| | | | Also, change the default action on a system start-up timeout to powering off.
* core: add support for a configurable system-wide start-up timeoutLennart Poettering2014-08-221-0/+3
| | | | | | | | | | | | | | | | | | | When this system-wide start-up timeout is hit we execute one of the failure actions already implemented for services that fail. This should not only be useful on embedded devices, but also on laptops which have the power-button reachable when the lid is closed. This devices, when in a backpack might get powered on by accident due to the easily reachable power button. We want to make sure that the system turns itself off if it starts up due this after a while. When the system manages to fully start-up logind will suspend the machine by default if the lid is closed. However, in some cases we don't even get as far as logind, and the boot hangs much earlier, for example because we ask for a LUKS password that nobody ever enters. Yeah, this is a real-life problem on my Yoga 13, which has one of those easily accessible power buttons, even if the device is closed.
* cgroups: simplify CPUQuota= logicLennart Poettering2014-05-221-1/+0
| | | | | | | | | Only accept cpu quota values in percentages, get rid of period definition. It's not clear whether the CFS period controllable per-cgroup even has a future in the kernel, hence let's simplify all this, hardcode the period to 100ms and only accept percentage based quota values.
* core: expose CFS CPU time quota as high-level unit propertiesLennart Poettering2014-04-251-0/+1
|
* core: add a setting to globally control the default for timer unit accuracyLennart Poettering2014-03-241-0/+1
|
* core: add global settings for enabling CPUAccounting=, MemoryAccounting=, ↵Lennart Poettering2014-02-241-0/+3
| | | | BlockIOAccounting= for all units at once
* core: add a system-wide SystemCallArchitectures= settingLennart Poettering2014-02-131-2/+3
| | | | | | This is useful to prohibit execution of non-native processes on systems, for example 32bit binaries on 64bit systems, this lowering the attack service on incorrect syscall and ioctl 32→64bit mappings.
* manager: configurable StartLimit default valuesLukas Nykryn2013-11-081-0/+2
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=821723
* Configurable Timeouts/Restarts default valuesOleksii Shevchuk2013-11-051-0/+3
| | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=71132 Patch adds DefaultTimeoutStartSec, DefaultTimeoutStopSec, DefaultRestartSec configuration options to manager configuration file.
* core: drop some out-of-date references to cgroup settingsLennart Poettering2013-09-261-2/+1
|
* manager: add DefaultEnvironment optionUmut Tezduyar2013-06-201-0/+1
| | | | | | | This complements existing functionality of setting variables through 'systemctl set-environment', the kernel command line, and through normal environment variables for systemd in session mode.
* man: rename systemd.conf to systemd-system.confZbigniew Jędrzejewski-Szmek2013-02-131-1/+1
| | | | | | | Alias as systemd-user.conf is also provided. This should help users running systemd in session mode. https://bugzilla.redhat.com/show_bug.cgi?id=690868
* fix typosLennart Poettering2012-09-201-1/+1
|
* main: jointly mount more controllersLennart Poettering2012-09-041-1/+1
| | | | | | | | | After talking to the cgroup kernel folks at LPC we came to the conclusion that it is probably a good idea to mount all CPU related resp. all network related cgroup controllers together, both because they are good defaults for admins and because this might prepare for eventual kernel cleanups where the ability to mount them separately is removed.
* core: remove sysv_console optionLennart Poettering2012-06-221-1/+0
| | | | | | | | | | | | This option never made much sense. It was originally intended to make sure that the usual startup output of sysv scripts goes to the terminal. However, since SysV scripts started from a terminal would not output to that terminal, but rather /dev/console this effect was more often than not actually taking place. Nowadays systemd has much nicer boot time status output than SysV which makes the sysv output redundant. Finally, all output of services goes to the journal anyway, and is not lost. Hence, let's drop this option, and simplify things a bit.
* main: allow setting of timer slack for PID 1Lennart Poettering2012-05-311-0/+1
|
* main: add configuration option to alter capability bounding set for PID 1Lennart Poettering2012-05-241-0/+17
| | | | | | | This also ensures that caps dropped from the bounding set are also dropped from the inheritable set, to be extra-secure. Usually that should change very little though as the inheritable set is empty for all our uses anyway.
* manager: drop MountAuto= and SwapAuto= optionsLennart Poettering2012-04-241-2/+0
| | | | | | | The ability to set MountAuto=no and SwapAuto=no was useful during the adoption phase of systemd, so that distributions could stick to their classic mount scripts a bit longer. It is about time to get rid of it now.
* watchdog: fix default configuration fragment for watchdogLennart Poettering2012-04-211-2/+2
|
* move more main systemd parts to core/Kay Sievers2012-04-121-0/+28