summaryrefslogtreecommitdiff
path: root/src/unit.c
AgeCommit message (Collapse)Author
2010-08-09manager: when two pending jobs conflict, keep the one that "conflicts", ↵Lennart Poettering
remove the one that is "conflicted" This gives the writer of units control which unit is kept and which is stopped when two units conflict.
2010-08-09dbus: don't call bus_path_escape() with NULL unit nameLennart Poettering
Fixes an assertion triggerable via D-Bus. https://bugzilla.redhat.com/show_bug.cgi?id=622008
2010-07-21unit: deduce following unit value dynamically instead of statically, to ↵Lennart Poettering
avoid dangling pointers
2010-07-20device: do not merge devicesLennart Poettering
Don't try to merge devices that have been created via dependencies when they appear in the system and can be recognized as the same. Instead, simply continue to maintain them independently of each other, however with the same state cycle. Why? Because otherwise we'd have a hard time to seperate the dependencies after the devices are unplugged again and we hence cannot be sure anymore that next time the device is plugged in it will carry the same names. Example: if one depndency refers to dev-sda.device and another one to dev-by-id-xxxyyy.device we only learn at time of plug in of the device that it is actually the same device that was ment. In the moment the device is unplugged again we won't know anymore their relation to each other and the next time the harddisk is plugged it might even appear as dev-by-id-xxxyyy.device and dev-sdb.service. To ensure the dependencies continue to have the meaning they were intended to have let's hence keep the .device objects seperate all the time, even when they are plugged in. This patch also introduces a new Following= property which points from the various .device units of a specific device to the main .device unit for it. This can be used by the client side to figure out the relation of the .device units to each other and even filter units from display.
2010-07-19systemctl: introduce reset-maintenance commandLennart Poettering
2010-07-17job: timeout every job independently of the unitLennart Poettering
2010-07-17unit: introduce OnFailure dependencies to activate units on failure of other ↵Lennart Poettering
units, as a way to implement an automatic rescue shell
2010-07-17systemctl: warn when operating on service files that changed on disk but ↵Lennart Poettering
haven't been reloaded
2010-07-16unit: allow units to have more than one instance idLennart Poettering
2010-07-13unit: disable retroactive starting/stopping of units when deserializingLennart Poettering
2010-07-13unit: retroactively start dependencies for job-less units tooLennart Poettering
2010-07-12cgroup: reimplement the last bit of libcgroup functionality nativelyLennart Poettering
2010-07-12unit: introduce IgnoreDependencyFailure=Lennart Poettering
2010-07-11cgroup: kill processes, not tasks and other cgroup changesLennart Poettering
2010-07-10cgroup: make cgroup controller name a constantLennart Poettering
2010-07-10unit: trim cgroups when going downLennart Poettering
2010-07-10main: add a few more useful diagnostic log messagesLennart Poettering
2010-07-08dbus: make errors reported via D-Bus more usefulLennart Poettering
2010-07-07log: bump up a number of log messages so that they are shown even if debug ↵Lennart Poettering
logging is disabled, for diagnostic purposes
2010-07-07unit: don't cancel dependent jobs if a stopped daemon returned an error codeLennart Poettering
2010-07-07manager: optionally print status updates to console on bootLennart Poettering
2010-07-05dbus: send signals about jobs to the clients having created them ↵Lennart Poettering
unconditionally, and thus get rid of broadcast signals in most cases
2010-07-03unit: add DefaultDependencies= settingLennart Poettering
In order to simplify writing of unit files introduce default dependencies that are added to all units unless explictly disabled in a unit. This option can be switched off for select units that are involved in early boot-up ot late system shutdown, This should simplify service files for most normal daemons, but breaks existing service files for software involved in early boot (notably udev), which need to be updated for a DefaultDependencies=no setting)
2010-07-03unit: simplify things a little by introducing API to add two dependencies in ↵Lennart Poettering
one step
2010-07-01unit: shorten active state enums to make systemctl output nicerLennart Poettering
2010-07-01unit: add new abstracted maintenance state for unitsLennart Poettering
2010-07-01core: rename struct timestamp to dual_timestamp to avoid name clash with IP ↵Lennart Poettering
system headers
2010-06-19manager: get rid of destinction between running_as=system and ↵Lennart Poettering
running_as=init, as there is little value in it and we cannot really test this
2010-06-19dbus: to make sure that systemd stays controllable during early bootup, ↵Lennart Poettering
register our services on our own micro usb server in addition to the bus
2010-06-18systemctl: add verbs for special unitsLennart Poettering
2010-06-15set: introduce set_free_free()Lennart Poettering
2010-06-05unit: when destructing units make sure we don't readd the unit to the gc ↵Lennart Poettering
queue after we already removed it there
2010-06-04unit: avoid assert on daemon reloadLennart Poettering
2010-06-04unit: if a unit external changes state, consider that good enough for a job ↵Lennart Poettering
to succeed, don't enforce waiting for the dependencies
2010-06-03unit: serialize jobs in addition to unitsLennart Poettering
2010-05-24path: add .path unit type for monitoring filesLennart Poettering
2010-05-24timer: fully implement timer unitsLennart Poettering
2010-05-21unit: add simple only-by-dependency flag for unitsLennart Poettering
2010-05-20logger: add an after dependency on the syslog dependencyLennart Poettering
2010-05-20service: when we cannot start due to rate limít consider that a real failureLennart Poettering
2010-05-19execute: s/EXEC_OUTPUT_KERNEL/EXEC_OUTPUT_KMSG/ to follow LOG_TARGET_xxx ↵Lennart Poettering
nomenclature
2010-05-18unit: don't gc units that are still in STUB stateLennart Poettering
2010-05-16build-sys: move source files to subdirectoryLennart Poettering