Zbigniew Jędrzejewski-Szmek
774471b68a
man: fix compilation warning in sd_journal_query_unique example
2012-10-18 23:45:30 +02:00
Dave Reisner
ad57912eb0
bash-completion: complete values for journal fields
...
This adds completion for the new -F, --field flag, but also uses this
option directly from journalctl to complete values for fields which
might be used as filters.
2012-10-18 17:44:59 -04:00
Lennart Poettering
f89a3b6f5b
journalctl: unify ellipsation handling between journalctl and systemctl
2012-10-18 23:35:44 +02:00
Lennart Poettering
cd4b13e0bf
journalctl: don't ellipsize unless on a tty
2012-10-18 23:35:44 +02:00
Lennart Poettering
fd6e887537
journalctl: honour -n if -F is used
2012-10-18 23:35:44 +02:00
Lennart Poettering
0902aa1838
man: ensure example of sd_journal_query_unique() compiles cleanly
2012-10-18 23:35:44 +02:00
Dave Reisner
9536e0e109
journalctl.xml: fix shortopt for --field
2012-10-18 16:56:03 -04:00
Lennart Poettering
b5cff06b48
journal: fix symbol versioning file
2012-10-18 22:38:56 +02:00
Lennart Poettering
bdc02927f7
journal: typo fix
2012-10-18 22:36:50 +02:00
Lennart Poettering
1cd8a002ff
journal: implement filtering in browse.html
2012-10-18 22:34:42 +02:00
Lennart Poettering
082d0180f9
journal: add high-level match option to filter by current boot id
2012-10-18 22:34:42 +02:00
Lennart Poettering
240a5fe83e
journal: add ability to list unique fields to gatewayd
2012-10-18 22:34:42 +02:00
Lennart Poettering
d5c4ed623b
journal: validate field name in sd_journal_query_unique()
2012-10-18 22:34:42 +02:00
Zbigniew Jędrzejewski-Szmek
23635a8547
systemd: use structured logging for unit changes
...
Information which unit a log entry pertains to enables systemctl
status to display more log messages.
2012-10-18 21:33:52 +02:00
Zbigniew Jędrzejewski-Szmek
b66871dad9
core/execute: use cleanup_strv_free
2012-10-18 21:33:52 +02:00
Zbigniew Jędrzejewski-Szmek
115646c789
libsystemd-journal: export sd_journal_restart_unique
2012-10-18 19:18:20 +00:00
Lennart Poettering
1a2be33aa5
man: add missing man page
2012-10-18 18:48:45 +02:00
Lennart Poettering
0598fd4a95
journal: suggest rotation when fields are not indexed
2012-10-18 04:12:25 +02:00
Lennart Poettering
15804cebfd
journalctl: move access check before the first access to the journal files
2012-10-18 03:35:58 +02:00
Lennart Poettering
ea117d4fde
update TODO
2012-10-18 03:35:58 +02:00
Lennart Poettering
15119c1602
journalctl: implement quering field values with new -F switch
...
Example:
journalctl -F _SYSTEMD_UNIT
will list all units that ever logged to the journal.
2012-10-18 03:35:58 +02:00
Lennart Poettering
3c1668da62
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.
2012-10-18 03:35:18 +02:00
Lennart Poettering
86b2e20a5e
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.
2012-10-18 01:20:06 +02:00
Lennart Poettering
600b704eb0
manager: connect SIGRTMIN+24 to terminating --user instances
2012-10-18 01:19:35 +02:00
Lennart Poettering
97ae63e2a9
service: when invoking service processes in --user mode set MANAGERPID to PID of systemd
2012-10-18 01:18:50 +02:00
Lennart Poettering
c978343015
timedatectl: rename --fix-system to --adjust-system-clock
...
Quite long to read but hopefully less misleading.
2012-10-17 22:52:21 +02:00
Lennart Poettering
935fb723ba
update TODO
2012-10-17 21:51:16 +02:00
Dave Reisner
f75cb30bf9
timedatectl: ensure n_zones is initialized
2012-10-17 15:44:59 -04:00
Lennart Poettering
599659860c
timedatectl: properly initialize struct before decoding bus messages
2012-10-17 21:25:43 +02:00
Lennart Poettering
01539d6ef9
hostnamed: allow UTF8 chars in pretty hostname again
2012-10-17 21:25:42 +02:00
Lennart Poettering
4fa25d62bd
journal: fix potential integer overflow
2012-10-17 21:25:42 +02:00
Lennart Poettering
dbc4fbae58
hostname: add new hostnamectl tool as text client for hostnamed
2012-10-17 21:25:42 +02:00
Lennart Poettering
0ce8860a15
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.
2012-10-17 21:25:42 +02:00
Lennart Poettering
c846716a5a
loginctl: show pager also for status command
2012-10-17 21:25:42 +02:00
Lennart Poettering
6d0274f115
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.
2012-10-17 21:25:42 +02:00
Eelco Dolstra
22349cee29
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().
2012-10-17 09:54:53 -04:00
Lennart Poettering
5e6870eab5
journalctl: properly track rotated journals in follow mode
2012-10-16 23:00:04 +02:00
Lennart Poettering
44a5fa34d9
sd-journal: fix bad memory access
2012-10-16 22:59:28 +02:00
Lennart Poettering
4b69bfdb5b
update TODO
2012-10-16 22:59:14 +02:00
Lennart Poettering
fb0951b02e
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.
2012-10-16 22:58:07 +02:00
Lennart Poettering
1f2da9ec51
journal: sort data items of entries by offset
...
This should slightly optimize disk access patterns on rotating disks for
simple readers.
2012-10-16 21:40:48 +02:00
Lennart Poettering
b87705cdd2
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.
2012-10-16 19:50:26 +02:00
Lennart Poettering
7708588119
logind: only release logind session from the PAM module if the same module instance actually created it
2012-10-16 19:21:21 +02:00
Lennart Poettering
183de6d7d9
id128: introduce new SD_ID128_CONST_STR() macro
2012-10-16 17:02:51 +02:00
Lennart Poettering
706911fba8
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.
2012-10-16 16:26:41 +02:00
Michael Stapelberg
37e2941d14
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...
2012-10-16 16:18:41 +02:00
Colin Guthrie
a2ab7ee612
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.
2012-10-16 16:14:46 +02:00
Colin Guthrie
89de694724
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.
2012-10-16 16:13:33 +02:00
Lukas Nykryn
696c245a23
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.
2012-10-16 16:07:37 +02:00
Lennart Poettering
c3f60ec54d
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.
2012-10-16 02:59:27 +02:00