summaryrefslogtreecommitdiff
path: root/src/manager.h
Commit message (Collapse)AuthorAgeFilesLines
* manager: tell correctly if the manager is bootingMichal Schmidt2012-02-021-0/+1
| | | | | | | | | | | | | | | | | | | | The assumption that the initial job is the job with id==1 is incorrect. Some jobs may be enqueued before the job that starts the default unit as in this example: -.mount changed dead -> mounted Trying to enqueue job quotacheck.service/start/fail Installed new job quotacheck.service/start as 1 Installed new job systemd-stdout-syslog-bridge.socket/start as 2 Enqueued job quotacheck.service/start as 1 Trying to enqueue job quotaon.service/start/fail Installed new job quotaon.service/start as 5 Enqueued job quotaon.service/start as 5 Activating default unit: default.target Trying to enqueue job graphical.target/start/replace This fixes a bug where displaying of boot status messages was turned off too early.
* unit: remove union UnitMichal Schmidt2012-01-161-6/+6
| | | | | | | | | | 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.
* core: switch all log targets to go directly to the journal, instead via syslogLennart Poettering2012-01-121-1/+1
|
* dbus: register to DBus asynchronouslyMichal Schmidt2011-12-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Chen Jie observed and analyzed a deadlock. Assuming systemd-kmsg-syslogd is already stopped, but rsyslogd is not started yet: 1. systemd makes a synchronous call to dbus-daemon. 2. dbus-daemon wants to write something to syslog. 3. syslog needs to be started by systemd. ... but cannot be, because systemd is waiting in 1. Solve this by avoiding synchronous D-Bus calls. I had to write an async bus registration call. Interestingly, D-Bus authors anticipated this, in documentation to dbus_bus_set_unique_name(): > The only reason to use this function is to re-implement the equivalent > of dbus_bus_register() yourself. One (probably unusual) reason to do > that might be to do the bus registration call asynchronously instead > of synchronously. Lennart's comments from IRC: > though I think this doesn't fix the problem in its entirety > simply because dbus_connection_open_private() itself is still synchronous > i.e. the connect() call behind it is not async > I think I listed that issue actually on some D-Bus todo list > i.e. to make dbus_connection_get() fully async > but that's going to be hard > so your patch looks good So it may not be perfect, but it's clearly an improvement. I did not manage to reproduce the original deadlock with the patch.
* fsck: show progress while fscking at bootLennart Poettering2011-09-011-0/+3
|
* manager: merge serialization and desrialization counter into one, and ↵Lennart Poettering2011-07-061-2/+2
| | | | | | | | | | 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.
* english: s/_per_/_by_/Lennart Poettering2011-06-211-1/+1
|
* cgroup: don't accidentaly trim on reloadLennart Poettering2011-04-201-0/+1
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=678555
* manager: fix taint check for /usrLennart Poettering2011-03-301-0/+2
|
* syslog: rework syslog detection so that we need no compile-time option what ↵Lennart Poettering2011-03-181-0/+2
| | | | the name of the syslog implementation is
* Spelling CorrectionsHarald Hoyer2011-02-281-2/+2
| | | | Just some lame spelling corrections with no functionality.
* exec: introduce global defaults for the standard output of servicesLennart Poettering2011-02-151-0/+2
|
* getty: don't parse console= anymore, use /sys/class/tty/console/active insteadLennart Poettering2011-02-141-2/+0
|
* manager: bump up max number of units to 128KLennart Poettering2010-11-241-1/+1
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=655857
* manager: make list of default controllers configurableLennart Poettering2010-11-181-0/+2
|
* drop support for MANAGER_SESSION, introduce MANAGER_USER insteadLennart Poettering2010-11-151-1/+1
|
* manager: hookup generatorsLennart Poettering2010-11-121-0/+4
|
* manager: parse RD_TIMESTAMP passed from initrdLennart Poettering2010-11-101-0/+1
|
* swap: listen for POLLPRI events on /proc/swaps if availableLennart Poettering2010-10-181-0/+2
|
* manager: hookup execution of systemd-shutdown helperFabiano Fidencio2010-10-141-1/+5
| | | | (Modified by Lennart Poettering)
* swap: major rework, use /sbin/swapon for setting up swaps, fix merging of ↵Lennart Poettering2010-10-121-0/+2
| | | | aliased swap disks
* manager: notify plymouth about progress if it is runningLennart Poettering2010-10-061-0/+1
|
* sysv: optionally disable of SysV init/rcN.d support at compile timeFabiano Fidencio2010-09-271-0/+2
| | | | | | | | | | | | | | | | | | This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to isolate code dealing with /etc/init.d and /etc/rcN.d for systems where it does not make sense (one that does not use sysv or one that is fully systemd native). The patch tries to be as little intrusive as possible, however in order to minimize the number of #ifdef'ed regions I've reordered some code in path-lookup.c:lookup_paths_init() where all code dealing with sysv is now isolated under running_as == MANAGER_SYSTEM as well. Moreover, In struct Service, some fields were rearranged to reduce the number of ifdefs. Lennart's suggestions were fixed and squashed with the original patch, that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).
* dbus: export number of total failed jobs on D-Bus interfaceLennart Poettering2010-09-231-0/+1
|
* manager: measure startup timesLennart Poettering2010-09-211-0/+3
|
* manager: count how many jobs we executedLennart Poettering2010-09-211-0/+2
|
* dbus: don't accept activation requests anymore if we are going down anywayLennart Poettering2010-09-011-0/+2
|
* manager: add missing second part of s/maintenance/failed/Matthew Miller2010-08-311-1/+1
|
* console: rework automatic getty on kernel console logic againLennart Poettering2010-08-301-0/+4
| | | | | | | | | | | It is essential that the gettys are proper dependencies from getty.target so that they aren't killed and immediately restarted on runlevel changes. Hence rework the logic to implicitly add console gettys to getty.target as dependencies. This also adds an automatic hvc console for virtualizers. https://bugzilla.redhat.com/show_bug.cgi?id=501720
* mount: rework automatic mounting to follow the 'nofail' option in fstabLennart Poettering2010-08-251-3/+1
|
* mount: add global configuration options for handling of auto mountsLennart Poettering2010-08-251-0/+4
|
* emacs: disable tabs in .h files, tooLennart Poettering2010-08-171-1/+1
|
* pahole: rearrange structs to make them smallerLennart Poettering2010-08-111-4/+4
|
* audit,utmp: implement audit logic and rip utmp stuff out of the main daemon ↵Lennart Poettering2010-08-111-5/+7
| | | | and into a helper binary
* service: hide output of sysv scripts if quiet is passed on the kernel cmdlineLennart Poettering2010-08-091-0/+1
|
* manager: write serialization to /dev/.systemd/ instead of /dev/shmLennart Poettering2010-07-201-1/+1
|
* device: do not merge devicesLennart Poettering2010-07-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* systemctl: introduce reset-maintenance commandLennart Poettering2010-07-191-0/+2
|
* job: timeout every job independently of the unitLennart Poettering2010-07-171-1/+3
|
* unit: disable retroactive starting/stopping of units when deserializingLennart Poettering2010-07-131-1/+1
|
* manager: introduce unit path cache to minimize disk accessesLennart Poettering2010-07-111-0/+1
|
* cgroup: kill processes, not tasks and other cgroup changesLennart Poettering2010-07-111-1/+0
|
* cgroup: make cgroup controller name a constantLennart Poettering2010-07-101-1/+0
|
* snapshot: fix deserializationLennart Poettering2010-07-101-0/+2
|
* dbus: make errors reported via D-Bus more usefulLennart Poettering2010-07-081-4/+4
|
* dbus: send reload completion message on right connectionLennart Poettering2010-07-071-0/+1
|
* manager: optionally print status updates to console on bootLennart Poettering2010-07-071-1/+4
|
* dbus: send signals about jobs to the clients having created them ↵Lennart Poettering2010-07-051-1/+1
| | | | unconditionally, and thus get rid of broadcast signals in most cases
* dbus: complete coverage of manager interfaceLennart Poettering2010-07-041-1/+1
|
* core: rename struct timestamp to dual_timestamp to avoid name clash with IP ↵Lennart Poettering2010-07-011-1/+1
| | | | system headers