chiark / gitweb /
Lennart Poettering [Thu, 18 Oct 2012 20:55:12 +0000 (22:55 +0200)]
journalctl: honour -n if -F is used
Lennart Poettering [Thu, 18 Oct 2012 20:54:58 +0000 (22:54 +0200)]
man: ensure example of sd_journal_query_unique() compiles cleanly
Dave Reisner [Thu, 18 Oct 2012 20:56:03 +0000 (16:56 -0400)]
journalctl.xml: fix shortopt for --field
Lennart Poettering [Thu, 18 Oct 2012 20:38:56 +0000 (22:38 +0200)]
journal: fix symbol versioning file
Lennart Poettering [Thu, 18 Oct 2012 20:36:50 +0000 (22:36 +0200)]
journal: typo fix
Lennart Poettering [Thu, 18 Oct 2012 20:33:39 +0000 (22:33 +0200)]
journal: implement filtering in browse.html
Lennart Poettering [Thu, 18 Oct 2012 20:31:58 +0000 (22:31 +0200)]
journal: add high-level match option to filter by current boot id
Lennart Poettering [Thu, 18 Oct 2012 20:31:27 +0000 (22:31 +0200)]
journal: add ability to list unique fields to gatewayd
Lennart Poettering [Thu, 18 Oct 2012 20:30:27 +0000 (22:30 +0200)]
journal: validate field name in sd_journal_query_unique()
Zbigniew Jędrzejewski-Szmek [Wed, 10 Oct 2012 22:11:24 +0000 (22:11 +0000)]
systemd: use structured logging for unit changes
Information which unit a log entry pertains to enables systemctl
status to display more log messages.
Zbigniew Jędrzejewski-Szmek [Thu, 18 Oct 2012 12:16:59 +0000 (14:16 +0200)]
core/execute: use cleanup_strv_free
Zbigniew Jędrzejewski-Szmek [Thu, 18 Oct 2012 19:18:20 +0000 (19:18 +0000)]
libsystemd-journal: export sd_journal_restart_unique
Lennart Poettering [Thu, 18 Oct 2012 16:48:45 +0000 (18:48 +0200)]
man: add missing man page
Lennart Poettering [Thu, 18 Oct 2012 02:12:25 +0000 (04:12 +0200)]
journal: suggest rotation when fields are not indexed
Lennart Poettering [Thu, 18 Oct 2012 01:34:43 +0000 (03:34 +0200)]
journalctl: move access check before the first access to the journal files
Lennart Poettering [Thu, 18 Oct 2012 01:34:37 +0000 (03:34 +0200)]
update TODO
Lennart Poettering [Thu, 18 Oct 2012 01:33:44 +0000 (03:33 +0200)]
journalctl: implement quering field values with new -F switch
Example:
journalctl -F _SYSTEMD_UNIT
will list all units that ever logged to the journal.
Lennart Poettering [Thu, 18 Oct 2012 01:29:19 +0000 (03:29 +0200)]
journal: add ability to list values a specified field can take in all entries of the journal
The new 'unique' API allows listing all unique field values that a field
specified by a field name can take in all entries of the journal. This
allows answering queries such as "What units logged to the journal?",
"What hosts have logged into the journal?", "Which boot IDs have logged
into the journal?".
Ultimately this allows implementation of tools similar to lastlog based
on journal data.
Note that listing these field values will not work for journal files
created with older journald, as the field values are not indexed in
older files.
Lennart Poettering [Wed, 17 Oct 2012 23:20:03 +0000 (01:20 +0200)]
units: rework systemd-exit.service to terminate systemd via signal rather than bus
This should make session termination more reliable, as D-Bus doesn't
have to be around anymore for this to succeed.
Lennart Poettering [Wed, 17 Oct 2012 23:19:35 +0000 (01:19 +0200)]
manager: connect SIGRTMIN+24 to terminating --user instances
Lennart Poettering [Wed, 17 Oct 2012 23:18:50 +0000 (01:18 +0200)]
service: when invoking service processes in --user mode set MANAGERPID to PID of systemd
Lennart Poettering [Wed, 17 Oct 2012 20:52:21 +0000 (22:52 +0200)]
timedatectl: rename --fix-system to --adjust-system-clock
Quite long to read but hopefully less misleading.
Lennart Poettering [Wed, 17 Oct 2012 19:51:04 +0000 (21:51 +0200)]
update TODO
Dave Reisner [Wed, 17 Oct 2012 19:44:59 +0000 (15:44 -0400)]
timedatectl: ensure n_zones is initialized
Lennart Poettering [Wed, 17 Oct 2012 19:24:36 +0000 (21:24 +0200)]
timedatectl: properly initialize struct before decoding bus messages
Lennart Poettering [Wed, 17 Oct 2012 19:24:14 +0000 (21:24 +0200)]
hostnamed: allow UTF8 chars in pretty hostname again
Lennart Poettering [Wed, 17 Oct 2012 19:23:52 +0000 (21:23 +0200)]
journal: fix potential integer overflow
Lennart Poettering [Wed, 17 Oct 2012 19:23:30 +0000 (21:23 +0200)]
hostname: add new hostnamectl tool as text client for hostnamed
Lennart Poettering [Wed, 17 Oct 2012 18:03:21 +0000 (20:03 +0200)]
docs: install README files into /var/log and 7etc/rc.d/init.d
On systemd systems seasoned admins might be surprised to see that the
init scripts and log files are gone. To ease the transition let's place
some README files there, that hopefully help clearing up the situation.
Lennart Poettering [Wed, 17 Oct 2012 01:15:16 +0000 (03:15 +0200)]
loginctl: show pager also for status command
Lennart Poettering [Wed, 17 Oct 2012 00:50:09 +0000 (02:50 +0200)]
timedatectl: introduce new command line client for timedated
Much like logind has a client in loginctl, and journald in journalctl
introduce timedatectl, to change the system time (incl. RTC), timezones
and related settings.
Eelco Dolstra [Wed, 10 Oct 2012 20:43:10 +0000 (16:43 -0400)]
Properly handle device aliases used as dependencies
If a device unit has aliases defined in udev rules, and there are
other units that depend on that alias, as in
BindTo=sys-subsystem-net-devices-eth0.device
then systemd will fail the start the alias, and any dependent units
will time out. See
https://bugs.freedesktop.org/show_bug.cgi?id=52580
This is because unit_add_name() in device_add_escaped_name() will
return EEXIST.
The solution taken here is to call device_update_unit() on the alias
name. Thus if a unit with the alias name already exists, we reuse it;
otherwise a new unit is created. Creating multiple units for a single
device is perhaps suboptimal, but it's consistent with the treatment
of udev symlinks in device_process_new_device().
Lennart Poettering [Tue, 16 Oct 2012 21:00:04 +0000 (23:00 +0200)]
journalctl: properly track rotated journals in follow mode
Lennart Poettering [Tue, 16 Oct 2012 20:59:28 +0000 (22:59 +0200)]
sd-journal: fix bad memory access
Lennart Poettering [Tue, 16 Oct 2012 20:59:14 +0000 (22:59 +0200)]
update TODO
Lennart Poettering [Tue, 16 Oct 2012 20:58:07 +0000 (22:58 +0200)]
journal: implement time-based rotation/vacuuming
This also enables time-based rotation (but not vacuuming) after 1month,
so that not more one month of journal is lost at a time per vacuuming.
Lennart Poettering [Tue, 16 Oct 2012 19:40:48 +0000 (21:40 +0200)]
journal: sort data items of entries by offset
This should slightly optimize disk access patterns on rotating disks for
simple readers.
Lennart Poettering [Tue, 16 Oct 2012 17:50:26 +0000 (19:50 +0200)]
mount: don't try to initialize extra deps for mount units before initializing their basic fields
Under some circumstances this could lead to a segfault since we we
half-initialized a mount unit, then tried to hook it into the network of
things and while doing that recursively ended up looking at our
half-initialized mount unit again assuming it was fully initialized.
Lennart Poettering [Tue, 16 Oct 2012 17:21:21 +0000 (19:21 +0200)]
logind: only release logind session from the PAM module if the same module instance actually created it
Lennart Poettering [Tue, 16 Oct 2012 15:02:51 +0000 (17:02 +0200)]
id128: introduce new SD_ID128_CONST_STR() macro
Lennart Poettering [Tue, 16 Oct 2012 14:26:41 +0000 (16:26 +0200)]
journal: don't export MESSAGE_ID() macro
If it is exported it would need to be prefixed, but since we need it
exclusively internally so far, simply move it to an internal header.
Michael Stapelberg [Tue, 16 Oct 2012 08:14:03 +0000 (10:14 +0200)]
service: Heuristically determine whether SysV scripts support reload
This commit checks for a usage line which contains [{|]reload[|}"] (to
not errnously match force-reload).
Heuristics like this suck, but it solves a real problem and there
appears to be no better way...
Colin Guthrie [Tue, 16 Oct 2012 11:03:37 +0000 (12:03 +0100)]
journal: Set the last_unused pointer correctly when attaching an unused window
It seems the previous code was copy/pasted from context_detach_window()
but not updated.
Colin Guthrie [Tue, 16 Oct 2012 11:03:36 +0000 (12:03 +0100)]
journal: Properly track the number of allocated windows.
Checks were already in place to make sure that the number of
windows was limited to 64, but the count was never incremented
or decremented.
Lukas Nykryn [Tue, 16 Oct 2012 09:01:29 +0000 (11:01 +0200)]
systemctl: append .service when unit does not have valid suffix
systemctl status a and systemctl status a.service lead to same output but
systemctl status a.b and systemctl status a.b.service do not.
Lennart Poettering [Tue, 16 Oct 2012 00:59:27 +0000 (02:59 +0200)]
journalctl: add --unit=/-u to match by unit name
This applies unit_name_mangle() to the specified unit names and hence
can handle weird characters nicely and will add unit suffixes as
necessary.
Wulf C. Krueger [Sat, 6 Oct 2012 09:37:44 +0000 (11:37 +0200)]
configure.ac: Add a --without-python option.
Being able to be explicit about Python support (in addition to the
default of auto-detecting it) and acting upon the result, specifying
it as an option gains us more control about both dependencies and
the resulting build.
Furthermore, relying purely on auto-detection can lead to problems for
source-based distros. E. g. systemd being built before *both* 32-bit &
64-bit ABIs are installed will lead to build failures as systemd's
build system will pick up either 32-/64-bit Python, conclude both are
available and fail if that's not the case.
Thomas Bächler [Fri, 5 Oct 2012 23:11:53 +0000 (01:11 +0200)]
core/swap.c: Do not add Before=swap.target to swap units.
The fstab generator adds Before=swap.target by default, and when creating
a custom .swap unit, you can also add Before=swap.target to the unit.
However, it is impossible to not have this ordering dependency right now.
Virtually all existing setups likely use the fstab generator, so this
change is unlikely to break anything.
Thomas Bächler [Fri, 5 Oct 2012 23:11:52 +0000 (01:11 +0200)]
core: Refuse to run a user instance when the system hasn't been booted with systemd.
Running as a user instance won't work at all if systemd isn't running as system
manager, so refuse to start in that case.
Daniel J Walsh [Thu, 11 Oct 2012 21:08:47 +0000 (17:08 -0400)]
selinux: selabel_lookup_raw can return ENOENT and be a non failure mode.
Daniel J Walsh [Thu, 11 Oct 2012 21:06:46 +0000 (17:06 -0400)]
SELinux patch still broken, in that we are not checking the correct source context.
This patch does the dbus calls correctly.
Mantas Mikulėnas [Wed, 10 Oct 2012 17:18:42 +0000 (20:18 +0300)]
core: allow Type=oneshot services to have ExecReload
Use cases:
* iptables.service – atomically reload rules without having to flush
them beforehand (which may leave the system insecure if reload fails)
* rpc-nfsd.service – reexport filesystems after /etc/exports update
without completely stopping and restarting nfsd
(In both cases, the actual service is provided by a kernel module and
does not have any associated user-space processes, thus Type=oneshot.)
Michael Olbrich [Tue, 9 Oct 2012 12:58:51 +0000 (14:58 +0200)]
build-sys: check for name_to_handle_at declaration instead of its definition
AC_CHECK_FUNCS may be successful, even though name_to_handle_at and
'struct file_handle' are not available.
Ferenc Wágner [Mon, 15 Oct 2012 17:38:21 +0000 (19:38 +0200)]
man: Fix typo in udevadm documentation
Lennart Poettering [Mon, 15 Oct 2012 23:09:09 +0000 (01:09 +0200)]
journalctl: harmonise in-stream comments
From now on, always use ANSI-SQL-style comments in log streams, i.e.
prefix with --. We also suffix things with this, just to be nice...
Lennart Poettering [Mon, 15 Oct 2012 23:02:36 +0000 (01:02 +0200)]
util: properly handle -1 timespec/timeval
Lennart Poettering [Mon, 15 Oct 2012 23:01:55 +0000 (01:01 +0200)]
update TODO
Andrew Eikum [Mon, 15 Oct 2012 18:59:12 +0000 (13:59 -0500)]
Reword sentences that contain psuedo-English "resp."
As you likely know, Arch Linux is in the process of moving to systemd.
So I was reading through the various systemd docs and quickly became
baffled by this new abbreviation "resp.", which I've never seen before
in my English-mother-tongue life.
Some quick Googling turned up a reference:
<http://www.transblawg.eu/index.php?/archives/870-Resp.-and-other-non-existent-English-wordsNicht-existente-englische-Woerter.html>
I guess it's a literal translation of the German "Beziehungsweise", but
English doesn't work the same way. The word "respectively" is used
exclusively to provide an ordering connection between two lists. E.g.
"the prefixes k, M, and G refer to kilo-, mega-, and giga-,
respectively." It is also never abbreviated to "resp." So the sentence
"Sets the default output resp. error output for all services and
sockets" makes no sense to a natural English speaker.
This patch removes all instances of "resp." in the man pages and
replaces them with sentences which are much more clear and, hopefully,
grammatically valid. In almost all instances, it was simply replacing
"resp." with "or," which the original author (Lennart?) could probably
just do in the future.
The only other instances of "resp." are in the src/ subtree, which I
don't feel privileged to correct.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Zbigniew Jędrzejewski-Szmek [Mon, 15 Oct 2012 16:14:09 +0000 (16:14 +0000)]
journalctl: skip informational messages in export/json modes
Lukas Nykryn [Mon, 15 Oct 2012 12:51:27 +0000 (14:51 +0200)]
systemctl: don't mangle name when it is a path
systemctl enable, disable, ... can also accept full path and in this case
we don't need to alter it.
https://bugzilla.redhat.com/show_bug.cgi?id=866346
Lennart Poettering [Mon, 15 Oct 2012 14:28:04 +0000 (16:28 +0200)]
update TODO
Zbigniew Jędrzejewski-Szmek [Sun, 14 Oct 2012 15:29:38 +0000 (15:29 +0000)]
journalctl: make --follow really work
Zbigniew Jędrzejewski-Szmek [Sat, 13 Oct 2012 19:21:07 +0000 (19:21 +0000)]
journalctl: make --follow work again
Stopped working after
cfbc22ab 'journalctl: implement --since= and
--until for filtering by time'.
Zbigniew Jędrzejewski-Szmek [Sat, 13 Oct 2012 17:50:53 +0000 (17:50 +0000)]
journal-verify: get rid of an unused variable
When compiling without gcrypt, gcc emits an annoying warning.
Zbigniew Jędrzejewski-Szmek [Sat, 13 Oct 2012 16:09:09 +0000 (16:09 +0000)]
journald: add missing include
./src/journal/journald.h:123:114: warning: ‘struct ucred’ declared inside parameter list [enabled by default]
Zbigniew Jędrzejewski-Szmek [Sat, 13 Oct 2012 11:13:50 +0000 (13:13 +0200)]
build-sys: always distribute file
Zbigniew Jędrzejewski-Szmek [Sat, 13 Oct 2012 11:08:17 +0000 (13:08 +0200)]
journal-gatewayd: rename variables to avoid -Wshadow warning
Zbigniew Jędrzejewski-Szmek [Sat, 13 Oct 2012 09:31:54 +0000 (11:31 +0200)]
journald: properly update message size after stripping the identifier
Valgrind says:
==29176== Conditional jump or move depends on uninitialised value(s)
==29176== at 0x412A85: cunescape_length_with_prefix (util.c:1565)
==29176== by 0x40B351: dev_kmsg_record (journald-kmsg.c:301)
==29176== by 0x40B653: server_read_dev_kmsg (journald-kmsg.c:347)
==29176== by 0x40B701: server_flush_dev_kmsg (journald-kmsg.c:365)
==29176== by 0x409DE7: main (journald.c:1535)
Zbigniew Jędrzejewski-Szmek [Fri, 12 Oct 2012 12:56:19 +0000 (12:56 +0000)]
journal: fix build in VALGRIND compatibility mode
Zbigniew Jędrzejewski-Szmek [Mon, 8 Oct 2012 17:02:30 +0000 (17:02 +0000)]
log: introduce a macro to format message id
The MESSAGE_ID=... stanza will appear in countless number of places.
It is just too long to write it out in full each time.
Incidentally, this also fixes a typo of MESSSAGE is three places.
Kay Sievers [Thu, 11 Oct 2012 20:31:23 +0000 (22:31 +0200)]
build-sys: check - fix typo
Sebastian Ott [Tue, 9 Oct 2012 13:57:54 +0000 (15:57 +0200)]
udev: path_id - add scm support
Add support for scm block devices. Introduced here:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=
f30664e2
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Lennart Poettering [Thu, 11 Oct 2012 14:42:46 +0000 (16:42 +0200)]
journalctl: implement --since= and --until for filtering by time
Martin Pitt [Thu, 11 Oct 2012 06:21:17 +0000 (08:21 +0200)]
rules: Fix persistent input symlinks for interface 00
Commits
5e9eb156c and
32567f8 introduced persistent symlinks for input devices
with more than one interface. However, this does not ensure stability for the
"default" interface, i. e. with interface number 00 or a nonexisting one. If a
device with a higher interface number appears first, it'll claim the symlink
name without an interface number, and the "interface 00" device won't get any.
Fix this by creating the default symlink only for interface 00 or a nonexisting
one, so that we properly partition the two cases over the two rules.
https://launchpad.net/bugs/
1057824
Lennart Poettering [Thu, 11 Oct 2012 00:37:10 +0000 (02:37 +0200)]
journal: support epxorting the journal in a format suitable for text/event-stream
Lennart Poettering [Wed, 10 Oct 2012 23:57:36 +0000 (01:57 +0200)]
journal: take scroll events in the entire white box in browse.html
Lennart Poettering [Wed, 10 Oct 2012 23:52:35 +0000 (01:52 +0200)]
journal: make buttons bigger in browse.html
Lennart Poettering [Wed, 10 Oct 2012 22:38:20 +0000 (00:38 +0200)]
journal: use localstorage instead of cookies in browse.html and store where the current position
Lennart Poettering [Wed, 10 Oct 2012 22:04:54 +0000 (00:04 +0200)]
journal: move buttons to the center in browse.html
Kay Sievers [Wed, 10 Oct 2012 21:59:29 +0000 (23:59 +0200)]
journal: add mousewheel scrolling to browse.html
Lennart Poettering [Wed, 10 Oct 2012 21:49:21 +0000 (23:49 +0200)]
journal: add keyboard navigation to browse.html
Lennart Poettering [Wed, 10 Oct 2012 21:14:32 +0000 (23:14 +0200)]
journal: properly HTML escape more output in browse.html
Mantas Mikulėnas [Wed, 10 Oct 2012 21:00:25 +0000 (23:00 +0200)]
journal: properly escape HTML entities in browse.html
Lennart Poettering [Wed, 10 Oct 2012 20:39:45 +0000 (22:39 +0200)]
journal: when browsing the journal via browse.html allow clicking on entries to show their details
Lennart Poettering [Wed, 10 Oct 2012 20:24:28 +0000 (22:24 +0200)]
journal: drop path name from cursor strings
we had this mostly for debugging purposes and it was ignored when
parsing anyway, so let's get rid of it
Lennart Poettering [Wed, 10 Oct 2012 20:23:06 +0000 (22:23 +0200)]
update TODO
Martin Pitt [Wed, 10 Oct 2012 16:56:01 +0000 (18:56 +0200)]
keymap: Fix scan codes > 0x7FFFFFFF
According to Linux drivers/input/evdev.c, scan codes are unsigned, not int nor
uint32_t.
Thanks to Dejan Tosovic <dejan@post.com> for reporting this!
Lennart Poettering [Wed, 10 Oct 2012 00:41:27 +0000 (02:41 +0200)]
gatewayd: beef up browse.html a bit
Lennart Poettering [Tue, 9 Oct 2012 23:57:06 +0000 (01:57 +0200)]
journal: fix seeking backwards in gateway daemon
Lennart Poettering [Tue, 9 Oct 2012 23:37:38 +0000 (01:37 +0200)]
journal: update comments a bit
Lennart Poettering [Tue, 9 Oct 2012 23:35:24 +0000 (01:35 +0200)]
journalctl: properly parse --cursor= long getopt in addition to short -c
Lennart Poettering [Tue, 9 Oct 2012 23:34:27 +0000 (01:34 +0200)]
journal: make sure sd_journal_seek_cursor() seeks to the specified entry if it exists, not one after it
Lennart Poettering [Tue, 9 Oct 2012 20:25:32 +0000 (22:25 +0200)]
detect-virt: install with fs caps by default to allow unprivileged access
Lennart Poettering [Mon, 8 Oct 2012 23:31:27 +0000 (01:31 +0200)]
journal: implement follow mode for HTTP GET in gatewayd
Lennart Poettering [Mon, 8 Oct 2012 23:17:29 +0000 (01:17 +0200)]
journal: add matching support to gatewayd
Lennart Poettering [Mon, 8 Oct 2012 22:43:18 +0000 (00:43 +0200)]
logind: expose missing signals in Session bus objects
Kay Sievers [Mon, 8 Oct 2012 22:49:15 +0000 (00:49 +0200)]
udev: fix rule-syntax-check.py
Kay Sievers [Mon, 8 Oct 2012 22:16:50 +0000 (00:16 +0200)]
udev: support multiple entries for ENV{SYSTEMD_ALIAS} and ENV{SYSTEM_WANTS}
Kay Sievers [Mon, 8 Oct 2012 20:02:01 +0000 (22:02 +0200)]
README: update
Kay Sievers [Mon, 8 Oct 2012 19:54:39 +0000 (21:54 +0200)]
udev: remove SYMLINK "unique" option