summaryrefslogtreecommitdiff
path: root/src/core/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-13 19:28:32 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-16 11:57:48 +0100
commit9ded9cd14cc03c67291b10a5c42ce5094ba0912f (patch)
treeb905c1173fa4acb99741210907b15136c3919fdf /src/core/manager.c
parent702d4e6f14b0c92f7325fcdc3650c79c2221849e (diff)
core: enable TasksMax= for all services by default, and set it to 512
Also, enable TasksAccounting= for all services by default, too. See: http://lists.freedesktop.org/archives/systemd-devel/2015-November/035006.html
Diffstat (limited to 'src/core/manager.c')
-rw-r--r--src/core/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index fd915d748c..edff6758c5 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -577,7 +577,8 @@ int manager_new(ManagerRunningAs running_as, bool test_run, Manager **_m) {
m->running_as = running_as;
m->exit_code = _MANAGER_EXIT_CODE_INVALID;
m->default_timer_accuracy_usec = USEC_PER_MINUTE;
- m->default_tasks_max = (uint64_t) -1;
+ m->default_tasks_accounting = true;
+ m->default_tasks_max = UINT64_C(512);
/* Prepare log fields we can use for structured logging */
m->unit_log_field = unit_log_fields[running_as];