summaryrefslogtreecommitdiff
path: root/src/core
Commit message (Collapse)AuthorAge
* core: make sure scope attributes survive a reloadLennart Poettering2013-07-30
|
* core: open up SendSIGHUP property for transient unitsLennart Poettering2013-07-30
|
* do not pass-along the environment from the kernel or initrdKay Sievers2013-07-30
|
* core: optionally send SIGHUP in addition to the configured kill signalLennart Poettering2013-07-30
| | | | This is useful to fake session ends for processes like shells.
* rework systemd's own process environment handling/passingKay Sievers2013-07-26
| | | | | | | | | | | | | Stop importing non-sensical kernel-exported variables. All parameters in the kernel command line are exported to the initial environment of PID1, but suppressed if they are recognized by kernel built-in code. The EFI booted kernel will add further kernel-internal things which do not belong into userspace. The passed original environ data of the process is not touched and preserved across re-execution, to allow external reading of /proc/self/environ for process properties like container*=.
* core: allow setting RemainAfterExit= for transient servicesLennart Poettering2013-07-26
|
* remove left-over initrd time stamp handlingKay Sievers2013-07-23
|
* core: correct dbus parameter directionZbigniew Jędrzejewski-Szmek2013-07-20
|
* core: update configuration directive list "systemd ↵Lennart Poettering2013-07-19
| | | | --dump-configuration-items" shows
* core: add %v specifierZbigniew Jędrzejewski-Szmek2013-07-19
|
* systemd,systemctl: export condition status and show failing conditionZbigniew Jędrzejewski-Szmek2013-07-17
| | | | | | | | | | | | | | | | | | | | | | | $ systemctl --user status hoohoo hoohoo.service Loaded: loaded (/home/zbyszek/.config/systemd/user/hoohoo.service; static) Active: inactive (dead) start condition failed at Tue 2013-06-25 18:08:42 EDT; 1s ago ConditionPathExists=/tmp/hoo was not met Full information is exported over D-Bus: [(condition, trigger, negate, param, state),...] where state is one of "failed" (<0), "untested" (0), "OK" (>0). I've decided to use 0 for "untested", because it might be useful to differentiate different types of failure later on, without breaking compatibility. systemctl shows the failing condition, if there was a non-trigger failing condition, or says "none of the trigger conditions were met", because there're often many trigger conditions, and they must all fail for the condition to fail, so printing them all would consume a lot of space, and bring unnecessary attention to something that is quite low-level.
* systemd: log failed conditionsZbigniew Jędrzejewski-Szmek2013-07-17
| | | | ConditionPathExists=/tmp/nosuchpath failed for nosuchpath.service.
* mount: also exclude /usr from unmount at shutdownLennart Poettering2013-07-18
|
* service: don't enter a second SIGTERM/SIGKILL cycle if no ExecStopPost= ↵Michael Olbrich2013-07-18
| | | | | | | process is defined It won't help if the main process is still there and there is no new process to kill.
* remove RD_TIMESTAMP importHarald Hoyer2013-07-17
| | | | | If you want timing information from the initramfs, use systemd in the initramfs.
* remove /run/initramfs/root-fsck logicHarald Hoyer2013-07-17
| | | | | | | dracut uses systemd in the initramfs and does not write these files anymore. The state of the root fsck is serialized.
* rpm: add RPM macro for creating tmpfiles entries after package installationLennart Poettering2013-07-16
|
* Do not set LANG=C in every child environment.Harald Hoyer2013-07-16
| | | | | LANG does not have to be set and setting it to default to the default does not add any value.
* build-sys: discover the path to kexec during build timeZbigniew Jędrzejewski-Szmek2013-07-15
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=55248
* man: add FILES section to systemd-journald.service(8)Zbigniew Jędrzejewski-Szmek2013-07-15
|
* systemd: do not output status messages once gettys are runningZbigniew Jędrzejewski-Szmek2013-07-15
| | | | | | | | | | | | | | | | Make Type=idle communication bidirectional: when bootup is finished, the manager, as before, signals idling Type=idle jobs to continue. However, if the boot takes too long, idling jobs signal the manager that they have had enough, wait a tiny bit more, and continue, taking ownership of the console. The manager, when signalled that Type=idle jobs are done, makes a note and will not write to the console anymore. This is a cosmetic issue, but quite noticable, so let's just fix it. Based on Harald Hoyer's patch. https://bugs.freedesktop.org/show_bug.cgi?id=54247 http://unix.stackexchange.com/questions/51805/systemd-messages-after-starting-login/
* unit: check correct variable after strdupLukas Nykryn2013-07-12
|
* core: simplify drop-in writing logic a bitLennart Poettering2013-07-11
| | | | let's make use of some format string magic!
* core: when writing drop-in files, name them directly after the property we setLennart Poettering2013-07-11
| | | | | | Mapping from "FooBar" to "foo-bar" is unnecessary and makes it hard to handle many different properties with the same code, hence, let's just not do it.
* cgroup: split out per-device BlockIOWeight= setting into BlockIODeviceWeight=Lennart Poettering2013-07-11
| | | | | This way we can nicely map the configuration directive to properties and back, without requiring two different signatures for the same property.
* cgroup: simplify how instantiated units are mapped to cgroupsLennart Poettering2013-07-11
| | | | | | | | | Previously for an instantiated unit foo@bar.service we created a cgroup foo@.service/foo@bar.service, in order to place all instances of the same template inside the same subtree. As we now implicitly add all instantiated units into one per-template slice we don't need this complexity anymore, and instance units can map directly to the cgroups of their full name.
* cgroup: don't ever try to destroy the cgroup of the root sliceLennart Poettering2013-07-11
| | | | | The root slice is after all the root cgroup, so don't attempt to delete it.
* cgroup: don't move systemd into systems.slice when running as --user instanceLennart Poettering2013-07-11
|
* core: implicitly create a per-template slice for all instantiated units by ↵Lennart Poettering2013-07-11
| | | | | | | default If no explicit slice is configured for an instantiated unit, create an implicit one for all instances of the same template.
* basic SO_REUSEPORT supportShawn Landden2013-07-11
|
* core: grant user@.service instances write access to their own cgroupLennart Poettering2013-07-11
|
* core: rearrange if blocks a bitLennart Poettering2013-07-11
|
* shutdown: avoid malloc() if we canLennart Poettering2013-07-11
|
* shutdown: fix /proc/cmdline reading of 'quiet'Kay Sievers2013-07-11
|
* core: uninstall cgroup agent only if we are running outside of a containerLennart Poettering2013-07-10
| | | | | Since the cgroupfs is currently not virtualized for containers we shouldn't reset the hosts agent from the container.
* user-sessions: rely on PID 1 to kill sessionsLennart Poettering2013-07-10
| | | | | | | As we want to centralized cgroup access we should stop killing the user sessions directly from the systemd-user-sessions service. Instead, rely on PID 1 doing this by adding the right ordering dependencies to the session scope units.
* unit: when deserializing cgroup path add it back into cgroup hashmapLennart Poettering2013-07-10
| | | | Also, properly remove cgroup path from hashmap when freeing unit.
* unit: save description/slice of transient units to /runLennart Poettering2013-07-10
| | | | This is necessary so that these properties survive a daemon reload.
* core: send out "Reloading" signal before and after doing a full ↵Lennart Poettering2013-07-10
| | | | | | | | | | | | | | reload/reexec of PID 1 Since we'll unload all units/job during a reload, and then readd them it is really useful for clients to be aware of this phase hence sent a signal out before and after. This signal is called "Reloading" (despite the fact that it is also sent out during reexecution, which we consider a special case in this context) and has one boolean parameter which is true for the signal sent before the reload, and false for the signal after the reload. The UnitRemoved/JobRremoved and UnitNew/JobNew due to the reloading are guranteed to be between the pair of Reloading messages.
* scope: don't require an initialized PIDs set when deserializingLennart Poettering2013-07-10
| | | | | | When a scope unit is created due to deserialization rather than client request don't enforce that the PIDs set must be non-empty, since the cgroup is already populated.
* core: while we are reloading don't suppress bus signalsLennart Poettering2013-07-10
| | | | | | | While we are reloading we shouldn't suppress adding units to the bus queue when there are no subscribers, simply because we might not have deserialized the subscribers list yet. Hence, during reloading always assume we have subscribers.
* core: serialize/deserialize bus subscribersLennart Poettering2013-07-10
|
* cgroup: downgrade error message when we cannot remove a cgroup to debugLennart Poettering2013-07-10
| | | | | | Some units set KillMode=none to survive the initrd→rootfs transition. We cannot remove their cgroups, but that shouldn't really be considered an issue, so let's downgrade the error message.
* tests: add tests for string lookup tablesZbigniew Jędrzejewski-Szmek2013-07-05
| | | | | The tests check if the tables have entries for all values in the enum, and that the entries are unique.
* suppress status message output at shutdown when 'quiet' is givenKay Sievers2013-07-05
|
* disable the cgroups release agent when shutting downKay Sievers2013-07-04
| | | | | | | | | | During shutdown, when we try to clean up all remaining processes, the kernel will fork new agents every time a cgroup runs empty. These new processes cause delays in the final SIGTERM, SIGKILL logic. Apart from that, this should also avoid that the kernel-forked binaries cause unpredictably timed access to the filesystem which we might need to unmount.
* core/mount.c:mount_dump(): don't segfault, if mount is not mounted anymoreHarald Hoyer2013-07-04
| | | | | | | Don't segfault, if m->from_proc_self_mountinfo and m->from_fragment is false. https://bugzilla.redhat.com/show_bug.cgi?id=957783#c9
* replace tabs with spaces in various filesJason St. John2013-07-02
| | | | | | | | The affected files in this patch had inconsistent use of tabs vs. spaces for indentation, and this patch eliminates the stray tabs. Also, the opening brace of sigchld_hdl() in activate.c was moved so the opening braces are consistent throughout the file.
* man: improve grammar and word formatting in numerous man pagesJason St. John2013-07-02
| | | | | | | | | | Use proper grammar, word usage, adjective hyphenation, commas, capitalization, spelling, etc. To improve readability, some run-on sentences or sentence fragments were revised. [zj: remove the space from 'file name', 'host name', and 'time zone'.]
* core: make GC more aggressiveLennart Poettering2013-07-02
| | | | | | | | | | | Since we should allow registering/unregistering transient units with the same name in a tight-loop, we need to make the GC more aggressive, so that dead units are cleaned up immediately instead of later. hence, execute the GC sweep on every event loop iteration and clean up units. This of course, means we need to be careful with adding units to the GC queue, which we already are since we execute check_gc() of each unit type already when adding something to the queue.