Lennart Poettering [Thu, 29 Dec 2011 14:00:57 +0000 (15:00 +0100)]
journald: flush /run to /var as soon as it becomes available
Lennart Poettering [Thu, 29 Dec 2011 14:00:05 +0000 (15:00 +0100)]
journald: increase rate limit burst rate
Lennart Poettering [Wed, 28 Dec 2011 00:53:06 +0000 (01:53 +0100)]
journal: never mmap beyond file size
Lennart Poettering [Tue, 27 Dec 2011 22:18:09 +0000 (23:18 +0100)]
journald: when checking available disk space for rate limiting, cache the results temporarily
Lennart Poettering [Tue, 27 Dec 2011 21:58:20 +0000 (22:58 +0100)]
journal: fix hash table lookup logic
Lennart Poettering [Tue, 27 Dec 2011 21:52:22 +0000 (22:52 +0100)]
journal: fix typo
Lennart Poettering [Tue, 27 Dec 2011 21:52:15 +0000 (22:52 +0100)]
udev: exclude loopback device from udev rule based sysctl application, since we can just apply that directly at boot
Lennart Poettering [Tue, 27 Dec 2011 21:51:46 +0000 (22:51 +0100)]
journald: implement sophisticated rate limiting
Lennart Poettering [Fri, 23 Dec 2011 19:50:48 +0000 (20:50 +0100)]
journal: implement stdout transport
Lennart Poettering [Wed, 21 Dec 2011 23:35:04 +0000 (00:35 +0100)]
journald: enforce some syntax restrictions on field names sent from the client side
Lennart Poettering [Wed, 21 Dec 2011 21:32:52 +0000 (22:32 +0100)]
journal: properly handle first inline bisect array entry
Lennart Poettering [Wed, 21 Dec 2011 18:00:10 +0000 (19:00 +0100)]
journal: add missing compress.[ch]
Lennart Poettering [Wed, 21 Dec 2011 17:59:56 +0000 (18:59 +0100)]
journalctl: add command line parsing
Lennart Poettering [Wed, 21 Dec 2011 17:17:22 +0000 (18:17 +0100)]
journalctl: add json, export, short and verbose output modes
Lennart Poettering [Wed, 21 Dec 2011 01:40:59 +0000 (02:40 +0100)]
journal: add inline compression support with XZ
Lennart Poettering [Tue, 20 Dec 2011 01:38:36 +0000 (02:38 +0100)]
journal: fix space reservation limit enforcement
Lennart Poettering [Mon, 19 Dec 2011 23:38:14 +0000 (00:38 +0100)]
journal: fix matches
Lennart Poettering [Mon, 19 Dec 2011 21:35:46 +0000 (22:35 +0100)]
journal: implement inotify-based live logging logic
Lennart Poettering [Mon, 19 Dec 2011 19:25:52 +0000 (20:25 +0100)]
man: switch to UTF-8 output, to work around charset issues
Lennart Poettering [Mon, 19 Dec 2011 18:55:54 +0000 (19:55 +0100)]
man: generate HTML instead of XHTML with XSL docbook to work around 'fsfunc' noise
Lennart Poettering [Mon, 19 Dec 2011 18:54:51 +0000 (19:54 +0100)]
hashmap: add hashmap_first_key()
Lennart Poettering [Mon, 19 Dec 2011 16:40:31 +0000 (17:40 +0100)]
man: extend sd-login(7) in regards to mixing D-Bus and synchronous library calls a bit
Lennart Poettering [Mon, 19 Dec 2011 13:42:59 +0000 (14:42 +0100)]
man: various updates
Lennart Poettering [Mon, 19 Dec 2011 12:57:07 +0000 (13:57 +0100)]
man: add sd-login(7) page
Lennart Poettering [Mon, 19 Dec 2011 12:25:00 +0000 (13:25 +0100)]
build-sys: add rules for man page aliases
Lennart Poettering [Mon, 19 Dec 2011 12:19:01 +0000 (13:19 +0100)]
man: sd_readahead is not actually available in libsystemd-daemon
Lennart Poettering [Mon, 19 Dec 2011 12:12:36 +0000 (13:12 +0100)]
man: build new man pages
Lennart Poettering [Mon, 19 Dec 2011 12:11:42 +0000 (13:11 +0100)]
sd-daemon: fix #include lines since we now ship a shared library
Lennart Poettering [Mon, 19 Dec 2011 02:02:17 +0000 (03:02 +0100)]
man: document the sd-login interfaces
Lennart Poettering [Sat, 17 Dec 2011 00:36:47 +0000 (01:36 +0100)]
journald: filter fields send from client starting with underscore
Lennart Poettering [Sat, 17 Dec 2011 00:32:49 +0000 (01:32 +0100)]
journal: introduce mandatory sd_journal_printf() priority parameter
Lennart Poettering [Sat, 17 Dec 2011 00:13:55 +0000 (01:13 +0100)]
journal: enforce limits on open journal files
Lennart Poettering [Fri, 16 Dec 2011 23:56:34 +0000 (00:56 +0100)]
journal: add native protocol to journald, and client side API to send journal messages
Lennart Poettering [Tue, 8 Nov 2011 18:44:16 +0000 (19:44 +0100)]
Merge branch 'master' into journal
Lennart Poettering [Tue, 8 Nov 2011 18:12:29 +0000 (19:12 +0100)]
TODO
Lennart Poettering [Tue, 8 Nov 2011 17:20:03 +0000 (18:20 +0100)]
journal: implement multiple field matches
Lennart Poettering [Tue, 8 Nov 2011 17:18:48 +0000 (18:18 +0100)]
macro: fix ALIGN_TO macro definition
Lennart Poettering [Thu, 3 Nov 2011 18:55:36 +0000 (19:55 +0100)]
update TODO
Lennart Poettering [Thu, 3 Nov 2011 18:42:53 +0000 (19:42 +0100)]
cgroup: immediately remove all cgroups which run empty
Some controllers have scaling problems when many empty cgroups exist.
Hence, as soon as we get a notification that a cgroup is empty, delete
it. This is also nice to keep the systemd-cgls output short.
Lennart Poettering [Wed, 2 Nov 2011 13:08:49 +0000 (14:08 +0100)]
Merge remote-tracking branch 'zbigniew/systemadm_changes'
Ran Benita [Wed, 2 Nov 2011 08:48:51 +0000 (10:48 +0200)]
bash-completion: rename file since it is no longer for systemctl only
Ran Benita [Wed, 2 Nov 2011 08:48:50 +0000 (10:48 +0200)]
bash-completion: add completions for systemd-loginctl
This script is straightforward and should give proper completions for
all of systemd-loginctl's verbs.
Ran Benita [Wed, 2 Nov 2011 08:48:49 +0000 (10:48 +0200)]
bash-completion: update with new verbs and arguments
Adds arguments --root= --runtime --no-legend.
Adds verbs link mask unmask reenable list-unit-files.
Also uses list-unit-files to make nicer enable and disable completions.
Rebased due to changes in systemctl.
Dexter Morgan [Fri, 28 Oct 2011 17:16:33 +0000 (19:16 +0200)]
Add Mageia support
This patch adds support for the Mageia Linux distribution:
http://www.mageia.org/
Mageia is a fork of Mandriva although some divergence has already occured
and thus inclusion of these changes upstream allow us to (hopefully)
migrate more rapidly to the new standard approaches systemd offers.
Indeed, we already use the preferred mechanism of OS identification via
the /etc/os-release file rather than a distro specific variation.
This patch mostly mirrors the patch added previously for Mandriva
support. In addition to those original authors, this patch was mostly
written by Dexter Morgan with help from Colin Guthrie and Eugeni Dodonov.
Lennart Poettering [Tue, 1 Nov 2011 22:53:15 +0000 (23:53 +0100)]
update TODO
Tom Gundersen [Mon, 17 Oct 2011 11:01:08 +0000 (13:01 +0200)]
cryptsetup-generator: avoid ordering cycle on swap
Devices with random keys (swap), should not be ordered before local-fs.target,
as this creates a cycle with systemd-load-random-seed.service (and also it
does not make sense, a swap device is not a local-fs).
Lennart Poettering [Tue, 1 Nov 2011 21:29:48 +0000 (22:29 +0100)]
units: drop [Install] section from remote-fs-pre.target
remote-fs-pre.target is not a unit a user should ever explicitly enable.
Instead services which need to hook before network mounts should pull it
in.
Lennart Poettering [Tue, 1 Nov 2011 21:27:48 +0000 (22:27 +0100)]
mount: order remote mounts after both network.target and remote-fs-pre.target
Since remote-fs-pre.target is optional we cannot count on it to order
remote mounts after network.target, so let's add that order explicitly
in addition to remote-fs-pre.target.
https://bugzilla.redhat.com/show_bug.cgi?id=749940
Lennart Poettering [Tue, 1 Nov 2011 21:02:36 +0000 (22:02 +0100)]
cgroup: always recreate cgroup before we try to apply attributes
We might have trimmed the cgroup tree previously, hence don't trust our
own "realized" flag, always recreate cgroup tree before applying our
attributes to make sure this actually works out.
https://bugzilla.redhat.com/show_bug.cgi?id=749687
Lennart Poettering [Tue, 1 Nov 2011 17:18:17 +0000 (18:18 +0100)]
initctl: don't use dbus connection after PID 1 got respawned
After reexec PID 1 our bus connection is invalidated. Hence don't try to
reuse it, just terminate so that when we are spawned the next time we
just get a new one.
Spotted by Marti Raudsepp.
Thomas Jarosch [Wed, 26 Oct 2011 07:38:39 +0000 (09:38 +0200)]
condition: Fix file descriptor leak in test_capability()
Detected by cppcheck.
Tom Gundersen [Sat, 22 Oct 2011 16:47:08 +0000 (18:47 +0200)]
random-seed: convert poolsize from bits to bytes
The problem was first noted in a bug report against Arch's initscripts.
Reported-by: Taylan Ulrich Bayırlı <taylanbayirli@gmail.com>
Reported-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Lennart Poettering [Tue, 1 Nov 2011 13:20:31 +0000 (14:20 +0100)]
plymouth: fix ply proto endianess issues
Plymouth enforces LE even for the local Ply proto, hence we should do
the conversion properly for BE arch compat.
Tracked down by Harald Hoyer.
https://bugzilla.redhat.com/show_bug.cgi?id=744415
Lennart Poettering [Tue, 1 Nov 2011 12:52:28 +0000 (13:52 +0100)]
README: explain dependency on cgroups
Lennart Poettering [Tue, 1 Nov 2011 12:48:30 +0000 (13:48 +0100)]
update TODO
Zbigniew Jędrzejewski-Szmek [Mon, 24 Oct 2011 09:49:59 +0000 (11:49 +0200)]
systemctl: make list-unit-files output more economical
The first column is given the width of the widest entry,
if possible, otherwise all entries are ellipsized to fit
in ($COLUMNS - (width of second column)).
[ Added a few fixes, calculate state_cols too, respect '--no-legend',
better handling of '--full' -- michich ]
Dave Reisner [Wed, 12 Oct 2011 00:56:53 +0000 (20:56 -0400)]
systemctl-completion: always invoke with --no-legend
In the case of completion for the 'restart' verb, passing the invalid
unit name (the colums header) causes completion to cease functioning
entirely, with the error:
Failed to issue method call: Unit name UNIT is not valid.
This adds a small wrapper function for systemctl which can have common
options added to it.
Jonathan Nieder [Mon, 17 Oct 2011 19:01:40 +0000 (21:01 +0200)]
audit: do not complain if kernel lacks audit
When running on a kernel without audit support, systemd currently
writes a mysterious-sounding error to its log:
systemd[1]: Failed to connect to audit log: Protocol not supported
Better to suppress the audit_open() failure message when (and only
when) it is due to running on a kernel without audit support, since in
this case the admin probably does not mind systemd not writing to the
audit log. This way, more serious errors like ENOMEM and EACCES will
stand out more.
Tollef Fog Heen [Mon, 17 Oct 2011 19:00:42 +0000 (21:00 +0200)]
service: Drop rcN.d runlevels from SysV services that also exist in rcS.d
Services which claim to start in both rcN.d and rcS.d generate
loops which for some reason seems to usually end up with dbus not
starting and the whole machine being quite unhappy. We now rather
assume that if a service can be started in rcS, it should not also
start in rcN.d.
Fixes Debian bug #637037
Michal Schmidt [Mon, 17 Oct 2011 09:12:12 +0000 (11:12 +0200)]
manager: fix a crash in isolating
HASHMAP_FOREACH is safe against the removal of the current entry, but
not against the removal of other entries. job_finish_and_invalidate()
can recursively remove other entries.
It triggered an assertion failure:
Assertion 'j->installed' failed at src/manager.c:1218, function
transaction_apply(). Aborting.
Fix the crash by iterating from the beginning when there is a
possibility that the iterator could be invalid.
It is O(n^2) in the worst case, but that's better than a crash.
https://bugzilla.redhat.com/show_bug.cgi?id=717325
Lennart Poettering [Sat, 15 Oct 2011 00:53:04 +0000 (02:53 +0200)]
journal: automaticall reset location when the set of matches changes
Lennart Poettering [Sat, 15 Oct 2011 00:45:58 +0000 (02:45 +0200)]
journal: implement seek to head/tail
Lennart Poettering [Fri, 14 Oct 2011 23:38:44 +0000 (01:38 +0200)]
journal: unify code for up and for down traversal
Lennart Poettering [Fri, 14 Oct 2011 23:13:37 +0000 (01:13 +0200)]
journal: properly implement matching with multiple matches
Lennart Poettering [Fri, 14 Oct 2011 14:52:42 +0000 (16:52 +0200)]
journal: if two entries match with everything but seqnums, they are still identical
Lennart Poettering [Fri, 14 Oct 2011 03:38:40 +0000 (05:38 +0200)]
journal: move field index from file into journal object
Lennart Poettering [Fri, 14 Oct 2011 03:34:19 +0000 (05:34 +0200)]
journal: when the same entry is in two files, skip over them in sync
Lennart Poettering [Fri, 14 Oct 2011 03:12:58 +0000 (05:12 +0200)]
journal: synchronize seqnum across files
Lennart Poettering [Fri, 14 Oct 2011 02:52:56 +0000 (04:52 +0200)]
journal: fix field retrieval by name
Lennart Poettering [Fri, 14 Oct 2011 02:44:50 +0000 (04:44 +0200)]
journal: implement parallel file traversal
Lennart Poettering [Thu, 13 Oct 2011 03:19:35 +0000 (05:19 +0200)]
journal: implementation rotation
Lennart Poettering [Wed, 12 Oct 2011 03:29:08 +0000 (05:29 +0200)]
journalctl: find journal files in right path
Lennart Poettering [Wed, 12 Oct 2011 03:28:39 +0000 (05:28 +0200)]
journal: add cgroup path to entries
Lennart Poettering [Wed, 12 Oct 2011 03:06:09 +0000 (05:06 +0200)]
journal: place machin journals in machine specific subdirectories
Lennart Poettering [Wed, 12 Oct 2011 02:42:38 +0000 (04:42 +0200)]
util: fix build
Lennart Poettering [Wed, 12 Oct 2011 02:41:27 +0000 (04:41 +0200)]
journal: only fallocate() what we really need to avoid slowness on file systems which do not support fallocate natively
Lennart Poettering [Wed, 12 Oct 2011 02:29:11 +0000 (04:29 +0200)]
Merge branch 'master' into journal
Lennart Poettering [Tue, 11 Oct 2011 20:30:31 +0000 (22:30 +0200)]
util: properly detect what the last capability is
Lennart Poettering [Tue, 11 Oct 2011 18:46:56 +0000 (20:46 +0200)]
build-sys: bump release for v37
Lennart Poettering [Tue, 11 Oct 2011 18:21:06 +0000 (20:21 +0200)]
service: don't try to guess PID for SysV services anymore
As it turns out there are quite a number of SysV services too broken to
make the guessing work: instead of returning in the parent only after
the child is fully initialized they return immediately. The effect is
that the guessing in systemd might happen too early, at a time where the
final main process doesn't exist yet.
By turning this off we won't try to detect the main pid anymore, with
the effect that all processes of the service in question are considered
equally likely to be the main process.
Lennart Poettering [Tue, 11 Oct 2011 18:20:01 +0000 (20:20 +0200)]
localed: make sure s-s-k doesn't create any X11 config files anymore
Zbigniew Jędrzejewski-Szmek [Tue, 11 Oct 2011 10:34:14 +0000 (12:34 +0200)]
localed: shorten generate-kbd-model-map
Output is identical.
Zbigniew Jędrzejewski-Szmek [Tue, 11 Oct 2011 09:27:06 +0000 (11:27 +0200)]
pager: add _noreturn_ to pager_fallback()
src/pager.c: In function ‘pager_fallback’:
src/pager.c:35:13: warning: function might be possible candidate for attribute ‘noreturn’ [-Wmissing-noreturn]
Lennart Poettering [Tue, 11 Oct 2011 13:16:52 +0000 (15:16 +0200)]
unit: introduce ConditionCapability
Lennart Poettering [Tue, 11 Oct 2011 12:26:20 +0000 (14:26 +0200)]
units: forgot target units
Lennart Poettering [Tue, 11 Oct 2011 02:43:29 +0000 (04:43 +0200)]
units: increase LimitNOFILE a bit
since we need one fd per session (for logind) and one fd per service
(for stdout-syslog-bridge) increase the default rlimit a bit.
Lennart Poettering [Tue, 11 Oct 2011 02:43:01 +0000 (04:43 +0200)]
logind: fail gracefully if too many sessions are created
https://bugzilla.redhat.com/show_bug.cgi?id=744726
Lennart Poettering [Tue, 11 Oct 2011 02:23:35 +0000 (04:23 +0200)]
timedate: fall back to /etc/sysconfig/clock on Fedora, for compatibility with legacy
Lennart Poettering [Tue, 11 Oct 2011 01:41:04 +0000 (03:41 +0200)]
units: remount root and API FS before all mount units are applied
In order to ensure that bind mounts copy the final mount settings to the
new bind mount make the root and API FS mount options are applied before
the other file systems are mounted.
https://bugzilla.redhat.com/show_bug.cgi?id=718464
Lennart Poettering [Tue, 11 Oct 2011 01:33:53 +0000 (03:33 +0200)]
units: introduce local-fs-pre.target and remote-fs-pre.target
This hook target enables services to order themselves between
network.target and remote mounts, which is needed for GFS2 and similar
systems.
Zbigniew Jędrzejewski-Szmek [Tue, 20 Sep 2011 07:09:15 +0000 (09:09 +0200)]
l10n: Reword the polish translation a bit
s/siedzenie/stanowisko/: they both translate to seat in English, but 'stanowisko'
is a place where you work, while 'siedzenie' is like a chair.
s/podłączanie/podłączenie/: we are doing it now, now sometime in the future.
Ran Benita [Sat, 24 Sep 2011 09:04:16 +0000 (12:04 +0300)]
man: document list-unit-files
It's documented in the --help, but not in the manpage.
Dave Reisner [Mon, 26 Sep 2011 13:25:27 +0000 (09:25 -0400)]
sd-login.h: correct spelling mistakes in comments
Miklos Vajna [Tue, 27 Sep 2011 18:45:51 +0000 (20:45 +0200)]
hostname-setup: Frugalware switched to /etc/hostname
Paolo Bonzini [Mon, 10 Oct 2011 23:43:58 +0000 (01:43 +0200)]
readahead: lower max file size for readahead
https://bugs.freedesktop.org/show_bug.cgi?id=41336
Barry Scott [Mon, 3 Oct 2011 10:50:10 +0000 (11:50 +0100)]
man: .include directive does not include as textual include it includes by parsing the include file.
This means that section headers must be used inside of
a .include file otherwise all the lines are ignored.
Barry Scott [Mon, 3 Oct 2011 10:50:09 +0000 (11:50 +0100)]
man: for ExecStart= provide more details on env var substitution and how that turns into arguments.
For EnvironmentFile= explain that double quotes can be used
to protect whitespace.
Lennart Poettering [Mon, 10 Oct 2011 23:00:08 +0000 (01:00 +0200)]
update TODO
Thomas Jarosch [Wed, 5 Oct 2011 20:31:41 +0000 (22:31 +0200)]
util: fix close() call on wrong variable
Detected by "cppcheck" (actually it detected a file descriptor leak)
Thomas Jarosch [Wed, 5 Oct 2011 20:30:49 +0000 (22:30 +0200)]
tmpfiles: fix file descriptor leak
Detected by "cppcheck"