summaryrefslogtreecommitdiff
path: root/src/unit.c
AgeCommit message (Collapse)Author
2012-04-11move libsystemd_core.la sources into core/Kay Sievers
2012-01-16unit: remove union UnitMichal Schmidt
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-16unit: reduce heap usage for unit objectsMichal Schmidt
The storage of the unit objects on the heap is currently not very efficient. For every unit object we allocate a chunk of memory as large as the biggest unit type, although there are significant differences in the units' real requirements. pahole shows the following sizes of structs: 488 Target 496 Snapshot 512 Device 528 Path 560 Timer 576 Automount 1080 Socket 1160 Swap 1168 Service 1280 Mount Usually there aren't many targets or snapshots in the system, but Device is one of the most common unit types and for every one we waste 1280 - 512 = 768 bytes. Fix it by allocating only the right amount for the given unit type. On my machine (x86_64, with 39 LVM volumes) this decreases systemd's USS (unique set size) by more than 300 KB.
2012-01-12core: switch all log targets to go directly to the journal, instead via syslogLennart Poettering
2012-01-11unit: implement new PropagateReloadTo=/PropagateReloadFrom= operationsLennart Poettering
2012-01-06unit: properly update references to units which are mergedLennart Poettering
When we merge units that some kind of object points to, those pointers might become invalidated, and needs to be updated. Introduce a UnitRef struct which links up all the unit references, to ensure corrected references. At the same time, drop configured_sockets in the Service object, and replace it by proper UNIT_TRIGGERS resp. UNIT_TRIGGERED_BY dependencies, which allow us to simplify a lot of code.
2012-01-06journal: introduce log target 'journal' for executed processesLennart Poettering
2012-01-05execute: talk directly to the journald, instead to the stdout-syslog-bridgeLennart Poettering
2012-01-05util: never ellipsize welcome messageLennart Poettering
2012-01-05util: when printing status updates during boot, take terminal width into accountLennart Poettering
2011-12-09unit: check for unneeded dependencies even when unit stop was expectedMichal Schmidt
systemd did not stop units marked as "StopWhenUnneeded=yes" when the requiring unit was stopped on user's request. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=704197
2011-12-09unit: fix false positive in check for unneeded unitMichal Schmidt
A freshly started unit A was immediately considered unneeded just because unit B, which Requires A, was starting later in the transaction. Fix it by looking not only at the state of B, but also at its pending job. Also fix a copied&pasted comment.
2011-12-06unit: garbage collect units with load errorMichal Schmidt
Units that failed to load were never cleaned up. It was possible to reach the 128K limit of units by attempting to load a bunch of nonsense. Bug observed by Reartes Guillermo in https://bugzilla.redhat.com/show_bug.cgi?id=680122
2011-11-14Fix same expression on both sides of '&&'Thomas Jarosch
The code should probably look like the statements above it. Please verify, I just detected it using cppcheck. Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
2011-11-11job: colored status messages on bootMichal Schmidt
The lack or green/red status marks on boot has been described by some users as "critical", "dramatic", "dealbreaker", "showstopper". Seriously.
2011-09-23unit: fix complementing of requirement deps with After deps for targetsMichal Schmidt
'man systemd.target' says: Unless DefaultDependencies= is set to false, target units will implicitly complement all configured dependencies of type Wants=, Requires=, RequiresOverridable= with dependencies of type After= if the units in question also have DefaultDependencies=true. It did not work because of a forgotten negation.
2011-09-22unit: don't recheck conditions when a unit is already starting but ↵Lennart Poettering
unit_start() is invoked
2011-09-01fsck: show progress while fscking at bootLennart Poettering
2011-08-30stdout-bridge: rename logger to stdout-syslog-bridge to make it more descriptiveLennart Poettering
2011-08-21cgroup: expose cgroup attributes as unit properties on the busLennart Poettering
2011-08-20exec: optionally apply cgroup attributes to the cgroups we createLennart Poettering
2011-08-01util: more join() optimizationsLennart Poettering
2011-07-31dbus: export unit file stateLennart Poettering
2011-07-06manager: merge serialization and desrialization counter into one, and ↵Lennart Poettering
increase it when reexecuting Instead of having individual counters n_serializing and n_deserializing have a single one n_reloading, which should be sufficient. Set n_reloading when we are about to go down for reexecution to avoid cgroup trimming when we free the units for reexecution.
2011-07-01unit: add three new specifiers to use in unit filesLennart Poettering
2011-06-30unit: consider all cgroups in the name=systemd hierarchy, even when the user ↵Lennart Poettering
has specified an explicit path in it
2011-06-21service: check whether sysv scripts where changedLennart Poettering
2011-06-21english: s/_per_/_by_/Lennart Poettering
2011-05-05unit: make ignoring in snapshots a per unit property, instead of a per unit ↵Lennart Poettering
type property
2011-04-28unit: fix assert when trying to load unit instances for uninstanciable typesLennart Poettering
http://lists.freedesktop.org/archives/systemd-devel/2011-April/001910.html
2011-04-20cgroup: don't accidentaly trim on reloadLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=678555
2011-04-16manager: introduce IgnoreOnIsolate flag so that we can keep systemd-logger ↵Lennart Poettering
around when isolating
2011-04-13unit: skip default cgroup setup if we have no hierarchy to work onLennart Poettering
2011-04-10unit: fix dump outputLennart Poettering
2011-04-07don't make up buffer sizes, use standard LINE_MAX insteadLennart Poettering
2011-04-07unit: disallow configuration of more than one on_failure dependencies if ↵Lennart Poettering
OnFailureIsolate= is on
2011-04-07unit: pull in logger unit only when running in system modeLennart Poettering
2011-04-07unit: introduce OnFailureIsolate=Lennart Poettering
2011-04-06job: fix deserialization of jobs: do not ignore orderingLennart Poettering
2011-03-31src: our lord is coverityLennart Poettering
2011-03-30unit: when deserializing do reconnect to dbus/syslog when they show upLennart Poettering
2011-03-30unit: don't override timestamps due to state changes when deserializingLennart Poettering
2011-03-30status: show status messages unconditionally if plymouth is aroundLennart Poettering
2011-03-29unit: fix parsing of condition-resultLennart Poettering
2011-03-29unit: don't complain about failed units when deserializingLennart Poettering
2011-03-29unit: when deserializing jobs, don't pull in dependenciesLennart Poettering
2011-03-18syslog: rework syslog detection so that we need no compile-time option what ↵Lennart Poettering
the name of the syslog implementation is
2011-03-17unit: serialize condition test resultsLennart Poettering
2011-03-09condition: take a timestamp and store last result of conditionsLennart Poettering
2011-03-08unit: don't accidently create ordering links to targets when default deps ↵Lennart Poettering
are off for either target and unit