Michal Schmidt
ac155bb885
unit: remove union Unit
...
Now that objects of all unit types are allocated the exact amount of
memory they need, the Unit union has lost its purpose. Remove it.
"Unit" is a more natural name for the base unit class than "Meta", so
rename Meta to Unit.
Access to members of the base class gets simplified.
2012-01-16 13:34:42 +01:00
Lennart Poettering
8f53a7b8ea
service: brutally slaughter processes that are running in the cgroup when we enter START_PRE and START
2012-01-11 02:52:34 +01:00
Lennart Poettering
353fa6a21a
cgroup: immediately remove all cgroups which run empty
...
Some controllers have scaling problems when many empty cgroups exist.
Hence, as soon as we get a notification that a cgroup is empty, delete
it. This is also nice to keep the systemd-cgls output short.
2011-11-03 19:42:53 +01:00
Lennart Poettering
6ddaf1ca4a
cgroup: always recreate cgroup before we try to apply attributes
...
We might have trimmed the cgroup tree previously, hence don't trust our
own "realized" flag, always recreate cgroup tree before applying our
attributes to make sure this actually works out.
https://bugzilla.redhat.com/show_bug.cgi?id=749687
2011-11-01 22:02:36 +01:00
Lennart Poettering
0c85a4f3ef
cgroup: optionally mount a specific cgroup controllers together, and add cpu+cpuacct to the default
2011-08-23 00:37:35 +02:00
Lennart Poettering
ab1f063390
exec: optionally apply cgroup attributes to the cgroups we create
2011-08-20 00:22:02 +02:00
Lennart Poettering
38a285d776
cgroup: don't trim a cgroup we create, we might just take it over from somebody else
2011-07-06 00:14:26 +02:00
Lennart Poettering
31e54cc807
cgroup: kill processes even in cgroups that aren't realized
2011-07-01 00:41:41 +02:00
Lennart Poettering
64747e2d4b
exec: add ControlGroupModify= switch to allow changing access mode to cgroups fs
2011-06-30 00:11:25 +02:00
Lennart Poettering
38c52d4606
cgroup: don't accidentaly trim on reload
...
https://bugzilla.redhat.com/show_bug.cgi?id=678555
2011-04-20 03:53:12 +02:00
Lennart Poettering
e5a53dc746
cgroup: be nice to Ingo Molnar
...
https://bugzilla.redhat.com/show_bug.cgi?id=628004
2011-04-12 22:16:02 +02:00
Lennart Poettering
12235040ec
cgroup: explain when we cannot initialize the cgroup stuff
2011-03-29 20:29:02 +02:00
Lennart Poettering
430c18ed7f
kill: always send SIGCONT after SIGTERM
...
When we kill a process to terminate it make sure to send SIGCONT to
ensure it is unpaused and processes the signal.
2011-03-03 23:55:30 +01:00
Lennart Poettering
2633eb8317
service: when guessing the main PID don't consider processes that aren't our children
2011-02-13 18:52:02 +01:00
Lennart Poettering
bd40a2d830
clang: fix some issues found with clang-analyzer
2011-01-22 02:19:16 +01:00
Lennart Poettering
d686d8a97b
cgroup: by default, duplicate service cgroup in the cpu hierarchy
2010-11-17 21:27:53 +01:00
Lennart Poettering
0baf24ddd5
cgroup: call root cgroup system instead of systemd-1
2010-11-15 23:55:53 +01:00
Lennart Poettering
9190132924
build-sys: fix usage of path macros
2010-11-12 00:40:26 +01:00
Lennart Poettering
4fbf50b38e
service: when after startup only one process is in a service's cgroup, assume it is the main process
2010-10-27 03:16:49 +02:00
Lennart Poettering
ca949c9dcf
service: rework killing logic so that we always kill the main process, even if it left our service cgroup
...
Related to:
http://bugzilla.redhat.com/show_bug.cgi?id=626477
2010-08-31 23:24:47 +02:00
Lennart Poettering
d6c9574fb5
emacs: make sure nobody accidently adds tabs to our sources
2010-08-14 19:59:25 +02:00
Lennart Poettering
4455bcd0e6
cgroup: try harder to find a unit a PID belongs to by traversing through parent cgroups
2010-08-13 02:08:34 +02:00
Lennart Poettering
e364ad0628
clang: fix numerous little issues found with clang-analyzer
2010-08-11 22:04:25 +02:00
Lennart Poettering
35d2e7ec19
cgroup: reimplement the last bit of libcgroup functionality natively
2010-07-12 18:16:44 +02:00
Lennart Poettering
c6c18be35b
cgroup: kill processes, not tasks and other cgroup changes
2010-07-11 00:50:49 +02:00
Lennart Poettering
5509654721
cgroup: make cgroup controller name a constant
2010-07-10 17:38:50 +02:00
Lennart Poettering
fb38518151
unit: trim cgroups when going down
2010-07-10 17:34:42 +02:00
Lennart Poettering
8c6db83365
pam: implement systemd PAM module and generelize cgroup API for that a bit
2010-06-21 23:27:18 +02:00
Lennart Poettering
33be102a21
cgroup: make sure the user cannot accidentaly unmount our cgroup filesystem
2010-06-18 20:15:34 +02:00
Lennart Poettering
8c47c7325f
notify: add minimal readiness/status protocol for spawned daemons
2010-06-16 05:10:31 +02:00
Lennart Poettering
5515116b61
cgroup: drop inherit flag, this mus be fixed in the kernel
2010-06-16 05:07:30 +02:00
Lennart Poettering
7c64bbc387
cgroup: consider not-realized cgroups empty when killing all processes in them
2010-05-20 20:45:00 +02:00
Lennart Poettering
53f7d807bf
cgroup: don't require debug cgroup controller anymore, use name hierarchy instead
2010-05-17 23:54:44 +02:00
Lennart Poettering
e99e38bbdc
build-sys: move source files to subdirectory
2010-05-16 18:45:24 +02:00