]>
err.no Git - systemd/log
Lennart Poettering [Wed, 18 Jan 2012 14:40:58 +0000 (15:40 +0100)]
journal: when sending journal data via file, place it in /dev/shm, to allow early boot operation, even if it sucks
Lennart Poettering [Wed, 18 Jan 2012 14:40:21 +0000 (15:40 +0100)]
exec: introduce ControlGroupPersistant= to make cgroups persistant
Lennart Poettering [Tue, 17 Jan 2012 14:21:40 +0000 (15:21 +0100)]
journalctl: properly honour -n when -f is passed, too
Lennart Poettering [Tue, 17 Jan 2012 14:04:12 +0000 (15:04 +0100)]
tmpfiles: add support for creating symlinks, char/block device nodes
Lennart Poettering [Tue, 17 Jan 2012 13:03:00 +0000 (14:03 +0100)]
logind: move X11 socket
Lennart Poettering [Tue, 17 Jan 2012 13:02:47 +0000 (14:02 +0100)]
logind: simplify session_activate() a bit
Lennart Poettering [Tue, 17 Jan 2012 13:02:09 +0000 (14:02 +0100)]
logind: allow to create multiple sessions on non-multi-session seats to deal with left-over sessions
Lennart Poettering [Tue, 17 Jan 2012 12:30:58 +0000 (13:30 +0100)]
update TODO
Michal Schmidt [Tue, 17 Jan 2012 11:50:42 +0000 (12:50 +0100)]
util: fix ANSI sequence for red color
Red turned green by mistake in commit
c1072ea0 .
Michal Schmidt [Tue, 17 Jan 2012 11:05:33 +0000 (12:05 +0100)]
log: make asserts cheaper
On my x86_64 this shrinks the size of .text by 53 KB (7 %).
Michal Schmidt [Tue, 17 Jan 2012 09:21:30 +0000 (10:21 +0100)]
log: remove useless variable
abort() never returns. Not even if the signal handler catches SIGABRT.
Michal Schmidt [Tue, 17 Jan 2012 08:20:32 +0000 (09:20 +0100)]
dbus-unit: make functions static
The dbus_unit_append_*() functions are not referenced from outside anymore.
Kay Sievers [Mon, 16 Jan 2012 12:49:08 +0000 (13:49 +0100)]
build-sys: cleanup sysctl.d/coredump.conf
Michal Schmidt [Sun, 15 Jan 2012 23:23:59 +0000 (00:23 +0100)]
dbus: more efficient implementation of properties
The way the various properties[] arrays are initialized is inefficient:
- only the .data members change at runtime, yet the whole arrays of
properties with all the fields are constructed on the stack one by
one by the code.
- there's duplication, eg. the properties of "org.freedesktop.systemd1.Unit"
are repeated in several unit types.
Fix it by moving the information about properties into static const
sections. Instead of storing the .data directly in the property, store
a constant offset from a run-time base.
The small arrays of struct BusBoundProperties bind together the constant
information with the right runtime information (the base pointer).
On my system the code shrinks by 60 KB, data increases by 10 KB.
Michal Schmidt [Sun, 15 Jan 2012 11:37:16 +0000 (12:37 +0100)]
unit: use safe downcasts, remove pointless casts
Always use the macros for downcasting.
Remove a few obviously pointless casts.
Michal Schmidt [Sun, 15 Jan 2012 11:25:20 +0000 (12:25 +0100)]
unit: use the UNIT() macro consistently
The UNIT() macro upcasts from specific unit types to the base Unit.
Use it everywhere, rather than accessing the 'meta' member directly.
Michal Schmidt [Sun, 15 Jan 2012 11:04:08 +0000 (12:04 +0100)]
unit: remove union Unit
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.
Michal Schmidt [Sun, 15 Jan 2012 09:53:49 +0000 (10:53 +0100)]
unit: reduce heap usage for unit objects
The storage of the unit objects on the heap is currently not very
efficient. For every unit object we allocate a chunk of memory as large
as the biggest unit type, although there are significant differences in
the units' real requirements.
pahole shows the following sizes of structs:
488 Target
496 Snapshot
512 Device
528 Path
560 Timer
576 Automount
1080 Socket
1160 Swap
1168 Service
1280 Mount
Usually there aren't many targets or snapshots in the system, but Device
is one of the most common unit types and for every one we waste
1280 - 512 = 768 bytes.
Fix it by allocating only the right amount for the given unit type.
On my machine (x86_64, with 39 LVM volumes) this decreases systemd's
USS (unique set size) by more than 300 KB.
Michal Schmidt [Mon, 16 Jan 2012 12:18:17 +0000 (13:18 +0100)]
logind: downgrade login message to debug
The messages make people nervous.
https://bugzilla.redhat.com/show_bug.cgi?id=727315
Lennart Poettering [Sat, 14 Jan 2012 02:37:32 +0000 (03:37 +0100)]
journal: drop privileges when storing coredump
Lennart Poettering [Sat, 14 Jan 2012 02:07:47 +0000 (03:07 +0100)]
journal: when show blob data show length
Lennart Poettering [Sat, 14 Jan 2012 02:07:29 +0000 (03:07 +0100)]
util: support formatting eta and peta bytes with format_bytes()
Lennart Poettering [Sat, 14 Jan 2012 02:06:57 +0000 (03:06 +0100)]
util: introduce FORMAT_BYTES_MAX
Lennart Poettering [Sat, 14 Jan 2012 02:05:34 +0000 (03:05 +0100)]
journal: collect coredump up to 24M in size
Lennart Poettering [Sat, 14 Jan 2012 00:54:02 +0000 (01:54 +0100)]
journal: handle empty syslog identifier properly
Lennart Poettering [Sat, 14 Jan 2012 00:53:47 +0000 (01:53 +0100)]
journal: fix bad memory access
Lennart Poettering [Sat, 14 Jan 2012 00:53:20 +0000 (01:53 +0100)]
journal: if the data to be sent is larger than the maximum datagram size resort to passing a temporary fd over native protocol
Lennart Poettering [Fri, 13 Jan 2012 23:37:35 +0000 (00:37 +0100)]
journal: hook up coredumping with journal
Lennart Poettering [Fri, 13 Jan 2012 22:17:54 +0000 (23:17 +0100)]
journal: add new system-cat tool as kind of a more powerfull BSD logger
Lennart Poettering [Fri, 13 Jan 2012 20:56:28 +0000 (21:56 +0100)]
util: split out tty_is_vc_resolve() from default_term_for_tty()
Lennart Poettering [Fri, 13 Jan 2012 20:56:09 +0000 (21:56 +0100)]
util: rework ANSI escape code macros
Michal Schmidt [Fri, 13 Jan 2012 22:55:28 +0000 (23:55 +0100)]
mount: fix quota
quotacheck.service and quotaon.service were not pulled in for fstab mounts.
Fix it by not clearing the default_dependencies flag.
The root filesystem may have quotas too, so don't check for "/" there.
No need to have duplicate code for adding dependencies on umount.target.
https://bugzilla.redhat.com/show_bug.cgi?id=773431
Lennart Poettering [Fri, 13 Jan 2012 19:52:45 +0000 (20:52 +0100)]
pam: fix build
Lennart Poettering [Fri, 13 Jan 2012 19:51:58 +0000 (20:51 +0100)]
pam: work correctly if a seat is specified but not vtnr
Lennart Poettering [Fri, 13 Jan 2012 01:58:45 +0000 (02:58 +0100)]
journal: add output mode that just prints simple messages without any decorations
Lennart Poettering [Thu, 12 Jan 2012 23:49:21 +0000 (00:49 +0100)]
api: add C++ guards to all headers
Lennart Poettering [Thu, 12 Jan 2012 23:49:02 +0000 (00:49 +0100)]
sd-login: teach sd_pid_get_unit() proper handling of instantiated services
Lennart Poettering [Thu, 12 Jan 2012 04:09:24 +0000 (05:09 +0100)]
journal: if the syslog forwarder socket is full, then don't block
Lennart Poettering [Thu, 12 Jan 2012 04:09:06 +0000 (05:09 +0100)]
core: switch all log targets to go directly to the journal, instead via syslog
Lennart Poettering [Thu, 12 Jan 2012 03:34:50 +0000 (04:34 +0100)]
units: make sure syslog socket goes away early during shutdown
Lennart Poettering [Thu, 12 Jan 2012 03:34:31 +0000 (04:34 +0100)]
log: make internal log api log directly to the journal
Lennart Poettering [Wed, 11 Jan 2012 21:45:05 +0000 (22:45 +0100)]
journal: add SELinux context to all logged messages
Lennart Poettering [Wed, 11 Jan 2012 21:44:43 +0000 (22:44 +0100)]
journal: fix more 32/64 bit issues
Lennart Poettering [Wed, 11 Jan 2012 21:07:35 +0000 (22:07 +0100)]
tmpfiles: fix parsing of /proc/net/unix on 32Bit machines
Tracked down by Michael Meeks
Michal Schmidt [Tue, 10 Jan 2012 21:03:49 +0000 (22:03 +0100)]
logs-show: fix missing newline in short output
Ellipsized messages were printed without a newline.
Lennart Poettering [Wed, 11 Jan 2012 20:24:02 +0000 (21:24 +0100)]
journald: don't assume size_t and uint64_t are the same
Lennart Poettering [Wed, 11 Jan 2012 20:11:58 +0000 (21:11 +0100)]
journald: set group ownership of journal files to 'adm' by default
Lennart Poettering [Wed, 11 Jan 2012 19:40:01 +0000 (20:40 +0100)]
journal: make requirement for ACLs optional
Lennart Poettering [Wed, 11 Jan 2012 15:03:42 +0000 (16:03 +0100)]
journalctl: fix --help text
Lennart Poettering [Wed, 11 Jan 2012 03:01:50 +0000 (04:01 +0100)]
build-sys: fix upload rule for xz
Lennart Poettering [Wed, 11 Jan 2012 02:56:35 +0000 (03:56 +0100)]
build-sys: bump version
Lennart Poettering [Wed, 11 Jan 2012 02:55:24 +0000 (03:55 +0100)]
journal: don't realign window twice
Lennart Poettering [Wed, 11 Jan 2012 02:23:04 +0000 (03:23 +0100)]
sd-journal: implement a number of non-implemented calls from the API for now
Lennart Poettering [Wed, 11 Jan 2012 02:16:24 +0000 (03:16 +0100)]
systemd: reconnect to syslog as soon as the journal is fully up
Lennart Poettering [Wed, 11 Jan 2012 02:02:10 +0000 (03:02 +0100)]
journalctl: always show monotonic timestamp even if it's from an old boot
Lennart Poettering [Wed, 11 Jan 2012 01:58:14 +0000 (02:58 +0100)]
Update TODO
Lennart Poettering [Wed, 11 Jan 2012 01:47:14 +0000 (02:47 +0100)]
unit: implement new PropagateReloadTo=/PropagateReloadFrom= operations
Lennart Poettering [Wed, 11 Jan 2012 00:51:52 +0000 (01:51 +0100)]
shutdown: add link to root storage daemon text
Lennart Poettering [Wed, 11 Jan 2012 00:51:32 +0000 (01:51 +0100)]
service: brutally slaughter processes that are running in the cgroup when we enter START_PRE and START
Lennart Poettering [Wed, 11 Jan 2012 01:51:40 +0000 (02:51 +0100)]
update TODO
Michael Biebl [Tue, 10 Jan 2012 06:26:30 +0000 (07:26 +0100)]
build-sys: link systemctl and systemd-journalctl against libsystemd-id128
Both use logs-show.c which requires libsystemd-id128 for
sd_id128_to_string ().
Lennart Poettering [Tue, 10 Jan 2012 03:20:55 +0000 (04:20 +0100)]
shutdown: exclude processes with argv[0][0] from killing
Kay Sievers [Mon, 9 Jan 2012 22:14:03 +0000 (23:14 +0100)]
autogen.sh: diet and sync with udev and kmod
Lennart Poettering [Sat, 7 Jan 2012 04:00:28 +0000 (05:00 +0100)]
journalctl: display source timestamp, not journald timestamp, if known
Lennart Poettering [Sat, 7 Jan 2012 03:41:30 +0000 (04:41 +0100)]
journalctl: add new short-monotonic output mode
Lennart Poettering [Sat, 7 Jan 2012 03:09:59 +0000 (04:09 +0100)]
journald: add kmsg source
Lennart Poettering [Sat, 7 Jan 2012 00:42:13 +0000 (01:42 +0100)]
journald: remove inner loop debug message
Kay Sievers [Sat, 7 Jan 2012 01:12:43 +0000 (02:12 +0100)]
fix compiler warning
Lennart Poettering [Sat, 7 Jan 2012 00:37:39 +0000 (01:37 +0100)]
sd-id128: let's make our API a bit smaller, since sd_id128_make_v4_uuid() is dispensable
Lennart Poettering [Sat, 7 Jan 2012 00:37:15 +0000 (01:37 +0100)]
journalctl: rename --new-id to --new-id128 in order not to introduce yet another new name
Lennart Poettering [Sat, 7 Jan 2012 00:36:36 +0000 (01:36 +0100)]
build-sys: move .pc files next to the matching sources
Lennart Poettering [Sat, 7 Jan 2012 00:21:40 +0000 (01:21 +0100)]
load-fragment: fix parsing of Socket= setting
Lennart Poettering [Fri, 6 Jan 2012 23:59:15 +0000 (00:59 +0100)]
main: fix spelling
Lennart Poettering [Fri, 6 Jan 2012 23:59:00 +0000 (00:59 +0100)]
journald: introduce systemd_journald.forward_to_kmsg=1 (and friends) to enable kmsg forwarding globally via kernel cmdline
Lennart Poettering [Fri, 6 Jan 2012 23:22:37 +0000 (00:22 +0100)]
journald: start journald right away, don't wait until activation
Michael Biebl [Fri, 6 Jan 2012 23:36:35 +0000 (00:36 +0100)]
build-sys: fix typo in help string
Lennart Poettering [Fri, 6 Jan 2012 22:11:28 +0000 (23:11 +0100)]
journald: shorten the time we wait for a forwarding syslog
Lennart Poettering [Fri, 6 Jan 2012 22:08:54 +0000 (23:08 +0100)]
unit: properly update references to units which are merged
When we merge units that some kind of object points to, those pointers
might become invalidated, and needs to be updated. Introduce a UnitRef
struct which links up all the unit references, to ensure corrected
references.
At the same time, drop configured_sockets in the Service object, and
replace it by proper UNIT_TRIGGERS resp. UNIT_TRIGGERED_BY dependencies,
which allow us to simplify a lot of code.
Lennart Poettering [Fri, 6 Jan 2012 18:23:03 +0000 (19:23 +0100)]
service: add dependencies on configured sockets
Lennart Poettering [Fri, 6 Jan 2012 02:20:22 +0000 (03:20 +0100)]
units: remove left-over unit file
Lennart Poettering [Fri, 6 Jan 2012 02:11:56 +0000 (03:11 +0100)]
journald: start the journal after the syslog socket, so that the syslog socket queues syslog messages from early boot on
Lennart Poettering [Fri, 6 Jan 2012 02:11:17 +0000 (03:11 +0100)]
kmsg-syslogd: remove kmsg-syslogd, since it's entirely obsoleted and replaced by journald
Lennart Poettering [Thu, 5 Jan 2012 22:55:01 +0000 (23:55 +0100)]
special: fix name of journal socket unit
Lennart Poettering [Thu, 5 Jan 2012 22:54:45 +0000 (23:54 +0100)]
journal: introduce log target 'journal' for executed processes
Lennart Poettering [Thu, 5 Jan 2012 22:54:11 +0000 (23:54 +0100)]
stdout: remove stdout-syslog-bridge since it is now obsoleted by journald
Michal Schmidt [Fri, 6 Jan 2012 00:32:34 +0000 (01:32 +0100)]
util: switch the console to text mode on reset
In case we're taking over the console after a killed X server.
https://bugzilla.redhat.com/show_bug.cgi?id=771563
Michal Schmidt [Fri, 6 Jan 2012 00:28:30 +0000 (01:28 +0100)]
util: fix switching to console unicode mode
The KDSKBMODE ioctl wants a value directly, not its address.
Lennart Poettering [Thu, 5 Jan 2012 22:14:22 +0000 (23:14 +0100)]
login: implement sd_session_get_service()
Lennart Poettering [Thu, 5 Jan 2012 20:43:49 +0000 (21:43 +0100)]
journal: rename syslog tag to identifier since that's what we call it on the server side.
Lennart Poettering [Thu, 5 Jan 2012 20:39:59 +0000 (21:39 +0100)]
journal: rename priority_prefix to level_prefix, since that's how we call it in PID 1
Lennart Poettering [Thu, 5 Jan 2012 20:39:31 +0000 (21:39 +0100)]
sd-journal: close reading side of sd_journal_stream_fd() file descriptors
Lennart Poettering [Thu, 5 Jan 2012 20:39:08 +0000 (21:39 +0100)]
execute: talk directly to the journald, instead to the stdout-syslog-bridge
Lennart Poettering [Thu, 5 Jan 2012 19:24:34 +0000 (20:24 +0100)]
journal: store used transport in journal
Lennart Poettering [Thu, 5 Jan 2012 19:24:16 +0000 (20:24 +0100)]
journal: move sockets into their own subdir
Lennart Poettering [Thu, 5 Jan 2012 19:11:47 +0000 (20:11 +0100)]
journalctl: rework short output mode to rebuild full syslog message
Lennart Poettering [Thu, 5 Jan 2012 17:24:18 +0000 (18:24 +0100)]
README: correct license claims
Lennart Poettering [Thu, 5 Jan 2012 17:21:26 +0000 (18:21 +0100)]
headers: fix git URLs for source files
Kay Sievers [Thu, 5 Jan 2012 16:57:02 +0000 (17:57 +0100)]
autogen: add --with-rootlibdir= and switch /usr/local to /usr
Kay Sievers [Thu, 5 Jan 2012 16:00:46 +0000 (17:00 +0100)]
build-sys: add headers to EXTRA_DIST to fix 'make distcheck'
Vala autotools, it's all your fault!
Lennart Poettering [Thu, 5 Jan 2012 15:40:14 +0000 (16:40 +0100)]
build-sys: drop colorgcc