Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-04-20 | transaction: remove a couple of asserts | Michal Schmidt | |
We already asserted these facts in the previous loop. | |||
2012-04-20 | transaction: remove the anchor link | Michal Schmidt | |
tr->anchor_job is sufficient. | |||
2012-04-20 | transaction: avoid garbage collecting the anchor job | Michal Schmidt | |
Make sure the anchor job is never considered garbage, even if it has no links leading to it (this will be allowed in the next patch). | |||
2012-04-20 | transaction: simplify transaction_find_jobs_that_matter_to_anchor() | Michal Schmidt | |
2012-04-20 | transaction: change the linking of isolate jobs to the anchor | Michal Schmidt | |
When isolating, the JOB_STOP jobs have no parent job, so they are all peers of the real anchor job. This is a bit odd. Link them from the anchor job. | |||
2012-04-20 | transaction: maintain anchor_job | Michal Schmidt | |
Track which job is the anchor in the transaction. | |||
2012-04-20 | transaction: do not add installed jobs to the transaction | Michal Schmidt | |
Do not attempt to optimize away the job creation by refering to installed jobs. We do not want to disturb installed jobs until commiting the transaction. (A later patch to job merging will make the separation of transaction jobs and installed jobs complete.) | |||
2012-04-20 | job: jobs shouldn't need to know about transaction anchors | Michal Schmidt | |
Let the transactions maintain their own anchor links. | |||
2012-04-20 | job: job_new() can find the manager from the unit | Michal Schmidt | |
2012-04-20 | manager: split transaction.[ch] | Michal Schmidt | |
manager.c takes care of the main loop, unit management, signal handling, ... transaction.c computes transactions. After split: manager.c: 65 KB transaction.c: 40 KB | |||
2012-04-20 | manager: Transaction as an object | Michal Schmidt | |
This makes it obvious that transactions are short-lived. They are created in manager_add_job() and destroyed after the application of jobs. It also prepares for a split of the transaction code to a new source. | |||
2012-04-20 | job: job_uninstall() | Michal Schmidt | |
Split the uninstallation of the job from job_free() into a separate function. Adjust the callers. job_free() now only works on unlinked and uninstalled jobs. This enforces clear thinking about job lifetimes. | |||
2012-04-20 | manager: simplify transaction_abort() | Michal Schmidt | |
This is equivalent. | |||
2012-04-20 | job: allow job_free() only on already unlinked jobs | Michal Schmidt | |
job_free() is IMO too helpful when it unlinks the job from the transaction. The callers should ensure the job is already unlinked before freeing. The added assertions check if anyone gets it wrong. | |||
2012-04-20 | manager: fix comment | Michal Schmidt | |
2012-04-20 | mount-setup: don't log with LOG_ERROR if a mount that doesn't matter fails | Lennart Poettering | |
2012-04-20 | main: log to the journal in container mode, by default | Lennart Poettering | |
2012-04-18 | remove MS_* which can not be combined with current kernel code | Kay Sievers | |
MS_BIND|MS_MOVE can not be combined: do_mount() else if (flags & MS_BIND) do_loopback(&path, dev_name, flags & MS_REC); [...] else if (flags & MS_MOVE) do_move_mount(&path, dev_name); MS_REMOUNT|MS_UNBINDABLE can not be combined: do_mount() if (flags & MS_REMOUNT) do_remount(&path, flags & ~MS_REMOUNT, mnt_flags, data_page); [...] else if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) do_change_type(&path, flags); | |||
2012-04-17 | udev: unify /dev static symlink setup | Kay Sievers | |
2012-04-17 | selinux: unify systemd and udev code | Kay Sievers | |
2012-04-16 | logind: remove redundant entries from logind's default controller lists too | Lennart Poettering | |
2012-04-16 | manager: remove unavailable/redundant entries from default controllers list | Lennart Poettering | |
2012-04-16 | cgroup: if a controller is not available don't try to create cgroups in its ↵ | Lennart Poettering | |
hierarchy | |||
2012-04-13 | service: place control command in subcgroup control/ | Lennart Poettering | |
Previously, we were brutally and onconditionally killing all processes in a service's cgroup before starting the service anew, in order to ensure that StartPre lines cannot be misused to spawn long-running processes. On logind-less systems this has the effect that restarting sshd necessarily calls all active ssh sessions, which is usually not desirable. With this patch control processes for a service are placed in a sub-cgroup called "control/". When starting a service anew we simply kill this cgroup, but not the main cgroup, in order to avoid killing any long-running non-control processes from previous runs. https://bugzilla.redhat.com/show_bug.cgi?id=805942 | |||
2012-04-13 | update .gitignore | Kay Sievers | |
2012-04-13 | watchdog: make watchdog dbus properties writable | Lennart Poettering | |
2012-04-13 | dbus: expose whether we have a hardware watchdog on the bus | Lennart Poettering | |
2012-04-13 | unit: signal explicitly if a condition failed in unit_start() | Lennart Poettering | |
We shouldn't print a status message on the console if we skipped a unit due to a condition. Hence make unit_start() return -ENOEXEC in such a case which is mapped to JOB_SKIPPED which results in no console message. | |||
2012-04-13 | main: unset some more env vars | Lennart Poettering | |
2012-04-13 | audit: ignore if we get EPERM | Lennart Poettering | |
if auditing access is not available, then don't complain about it, in order to play nice with systems lacking CAP_SYS_AUDIT | |||
2012-04-13 | loopback: handle EPERM more gracefully | Lennart Poettering | |
2012-04-13 | manager: support systems lacking /dev/tty0 | Lennart Poettering | |
2012-04-13 | fix a couple of things found with the llvm static analyzer | Lennart Poettering | |
2012-04-12 | build-sys: move *-setup out of shared to avoid selinux being pulled in | Lennart Poettering | |
2012-04-12 | main: we want all setup functions to be in files called xxx-setup.[ch] | Lennart Poettering | |
2012-04-12 | move more main systemd parts to core/ | Kay Sievers | |
2012-04-12 | hostname-setup: move to core/ | Lennart Poettering | |
2012-04-12 | shutdown: move shutdown to core since it replaces PID 1 | Lennart Poettering | |
2012-04-12 | build-sys: dbus-loop.h is not used by the core | Lennart Poettering | |
2012-04-12 | build-sys: move a few things into more appropriate places | Lennart Poettering | |
2012-04-12 | build-sys: add stub makefiles to make emacs easier to use | Lennart Poettering | |
2012-04-12 | rename machine-id-main.c tomacht the binary and move main.c to core/ | Kay Sievers | |
2012-04-12 | execute: when we can't get the requested rlimit, get the next closest | Lennart Poettering | |
2012-04-12 | unit: introduce ConditionPathIsReadWrite | Lennart Poettering | |
2012-04-12 | relicense to LGPLv2.1 (with exceptions) | Lennart Poettering | |
We finally got the OK from all contributors with non-trivial commits to relicense systemd from GPL2+ to LGPL2.1+. Some udev bits continue to be GPL2+ for now, but we are looking into relicensing them too, to allow free copy/paste of all code within systemd. The bits that used to be MIT continue to be MIT. The big benefit of the relicensing is that closed source code may now link against libsystemd-login.so and friends. | |||
2012-04-11 | polkit: temporarily spawn of a polkit agent in terminals for possibly ↵ | Lennart Poettering | |
authenticated operations | |||
2012-04-11 | move libsystemd_core.la sources into core/ | Kay Sievers | |