chiark / gitweb /
elogind.git
6 years agoudev: add builtin 'keyboard' to manage key mappings
Kay Sievers [Wed, 10 Jul 2013 14:02:24 +0000 (16:02 +0200)]
udev: add builtin 'keyboard' to manage key mappings

6 years agohwdb: allow list of lookup keys per given record
Kay Sievers [Wed, 10 Jul 2013 12:59:24 +0000 (14:59 +0200)]
hwdb: allow list of lookup keys per given record

This allows to specify:
  dmi:bvn*:bvr*:bd*:svnVENDOR:pn:Model 231*:pvr*
  dmi:bvn*:bvr*:bd*:svnVENDOR:pn:Series 12*:pvr*
   KEY_A=value
   KEY_B=value

Instead of:
  dmi:bvn*:bvr*:bd*:svnVENDOR:pn:Model 231*:pvr*
   KEY_A=value
   KEY_B=value

  dmi:bvn*:bvr*:bd*:svnVENDOR:pn:Series 12*:pvr*
   KEY_A=value
   KEY_B=value

6 years agoman: document systemd-run
Zbigniew Jędrzejewski-Szmek [Wed, 10 Jul 2013 05:24:46 +0000 (01:24 -0400)]
man: document systemd-run

6 years agoman: document four basic slices
Zbigniew Jędrzejewski-Szmek [Wed, 10 Jul 2013 05:33:13 +0000 (01:33 -0400)]
man: document four basic slices

6 years agohwdb: return false if no property is found
Kay Sievers [Tue, 9 Jul 2013 13:47:11 +0000 (15:47 +0200)]
hwdb: return false if no property is found

6 years agoman: improve word usage and grammar in logind.conf(5)
Jason St. John [Tue, 9 Jul 2013 11:12:05 +0000 (13:12 +0200)]
man: improve word usage and grammar in logind.conf(5)

6 years agoman: wording and grammar updates
Jan Engelhardt [Mon, 8 Jul 2013 16:19:02 +0000 (18:19 +0200)]
man: wording and grammar updates

6 years agoconfigure: fail if out-of-date kmod found and kmod not disabled
Tom Gundersen [Mon, 8 Jul 2013 22:12:35 +0000 (00:12 +0200)]
configure: fail if out-of-date kmod found and kmod not disabled

Almost everyone wants kmod support, so don't fail silently if the libs are
out-of-date.

kmod can still be explicitly disabled and if it is not found at all, we still
default to disabling it.

6 years agostatic-nodes: move creation of static nodes from udevd to tmpfiles
Tom Gundersen [Fri, 14 Jun 2013 20:56:39 +0000 (22:56 +0200)]
static-nodes: move creation of static nodes from udevd to tmpfiles

As of kmod v14, it is possible to export the static node information from
/lib/modules/`uname -r`/modules.devname in tmpfiles.d(5) format.

Use this functionality to let systemd-tmpfilesd create the static device nodes
at boot, and drop the functionality from systemd-udevd.

As an effect of this we can move from systemd-udevd to systemd-tmpfiles-setup-dev:

 * the conditional CAP_MKNOD (replaced by checking if /sys is mounted rw)
 * ordering before local-fs-pre.target (see 89d09e1b5c65a2d97840f682e0932c8bb499f166)

6 years agohwdb: import data
Kay Sievers [Mon, 8 Jul 2013 09:46:44 +0000 (11:46 +0200)]
hwdb: import data

6 years agohwdb: add --lookup-prefix= option
Kay Sievers [Mon, 8 Jul 2013 09:44:17 +0000 (11:44 +0200)]
hwdb: add --lookup-prefix= option

6 years agohwdb: remove too broad PNP* match from 20-acpi-vendor.hwdb
Kay Sievers [Sun, 7 Jul 2013 23:09:08 +0000 (01:09 +0200)]
hwdb: remove too broad PNP* match from 20-acpi-vendor.hwdb

6 years agoman: tweak the description of System/RuntimeMaxUse
Zbigniew Jędrzejewski-Szmek [Sun, 7 Jul 2013 03:33:26 +0000 (23:33 -0400)]
man: tweak the description of System/RuntimeMaxUse

https://bugs.freedesktop.org/show_bug.cgi?id=66657

6 years agoman: document machinectl and systemd-machined
Zbigniew Jędrzejewski-Szmek [Sun, 7 Jul 2013 02:22:05 +0000 (22:22 -0400)]
man: document machinectl and systemd-machined

6 years agosystemd-python: wrap sd_notify
Zbigniew Jędrzejewski-Szmek [Sat, 6 Jul 2013 02:15:54 +0000 (22:15 -0400)]
systemd-python: wrap sd_notify

_listen_fds() is modified to accept unset_environment arg as keyword,
to match new notify().

6 years agoupdate TODO
Kay Sievers [Fri, 5 Jul 2013 12:59:52 +0000 (14:59 +0200)]
update TODO

6 years agotests: add tests for string lookup tables
Zbigniew Jędrzejewski-Szmek [Fri, 5 Jul 2013 04:25:26 +0000 (00:25 -0400)]
tests: add tests for string lookup tables

The tests check if the tables have entries for all values
in the enum, and that the entries are unique.

6 years agosuppress status message output at shutdown when 'quiet' is given
Kay Sievers [Thu, 4 Jul 2013 22:32:05 +0000 (00:32 +0200)]
suppress status message output at shutdown when 'quiet' is given

6 years agocgroups-agent: remove ancient fallback code; turn connection error into warning
Kay Sievers [Thu, 4 Jul 2013 18:54:40 +0000 (20:54 +0200)]
cgroups-agent: remove ancient fallback code; turn connection error into warning

During re-execution and shutdown cgroups agents might not be able
to connect to systemd's private D-Bus socket, the printed error to
the console is misleding in that case, so turn it into a warning.

6 years agodisable the cgroups release agent when shutting down
Kay Sievers [Thu, 4 Jul 2013 18:31:18 +0000 (20:31 +0200)]
disable the cgroups release agent when shutting down

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.

6 years agopo: add dbus-scope.c to POTFILES.skip
William Giokas [Wed, 3 Jul 2013 23:00:46 +0000 (18:00 -0500)]
po: add dbus-scope.c to POTFILES.skip

6 years agocore/mount.c:mount_dump(): don't segfault, if mount is not mounted anymore
Harald Hoyer [Thu, 4 Jul 2013 09:01:47 +0000 (11:01 +0200)]
core/mount.c:mount_dump(): don't segfault, if mount is not mounted anymore

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

6 years agoupdate TODO
Lennart Poettering [Wed, 3 Jul 2013 23:09:04 +0000 (01:09 +0200)]
update TODO

6 years agoNEWS: no need to mention journalctl --user/--system twice v205
Lennart Poettering [Wed, 3 Jul 2013 15:49:43 +0000 (17:49 +0200)]
NEWS: no need to mention journalctl --user/--system twice

6 years agoupdate TODO
Lennart Poettering [Wed, 3 Jul 2013 14:49:54 +0000 (16:49 +0200)]
update TODO

6 years agoNEWS: mention set-log-level, --user, --system
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jul 2013 15:20:17 +0000 (11:20 -0400)]
NEWS: mention set-log-level, --user, --system

6 years agobuild-sys: bump/correct library versions
Lennart Poettering [Wed, 3 Jul 2013 14:37:39 +0000 (16:37 +0200)]
build-sys: bump/correct library versions

6 years agobuild-sys: prepare v205
Lennart Poettering [Wed, 3 Jul 2013 14:33:53 +0000 (16:33 +0200)]
build-sys: prepare v205

6 years agologind/machined: properly notice when units are gc'ed
Lennart Poettering [Wed, 3 Jul 2013 13:12:58 +0000 (15:12 +0200)]
logind/machined: properly notice when units are gc'ed

6 years agobuild-sys: rename LEGACY to NOLEGACY to better reflect meaning
David Coppa [Wed, 3 Jul 2013 07:38:35 +0000 (09:38 +0200)]
build-sys: rename LEGACY to NOLEGACY to better reflect meaning

https://bugs.freedesktop.org/show_bug.cgi?id=66542

6 years agoman: more grammar improvements
Jan Engelhardt [Tue, 2 Jul 2013 03:44:04 +0000 (05:44 +0200)]
man: more grammar improvements

- place commas
- expand contractions (this is written prose :)
- add some missing words

6 years agokeymap: horizontally align comments in the same column
Jason St. John [Wed, 3 Jul 2013 11:15:12 +0000 (13:15 +0200)]
keymap: horizontally align comments in the same column

6 years agokeymap: improve consistency and general formatting of comments
Jason St. John [Wed, 3 Jul 2013 11:15:11 +0000 (13:15 +0200)]
keymap: improve consistency and general formatting of comments

6 years agoman: describe OBJECT_PID=
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jul 2013 03:35:20 +0000 (23:35 -0400)]
man: describe OBJECT_PID=

6 years agobuild-sys: two files were missing in distcheck
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jul 2013 02:55:45 +0000 (22:55 -0400)]
build-sys: two files were missing in distcheck

One is a typo, the other one doesn't actually exist yet.

6 years agobuild-sys: work around automake issue with files with a leading '-'
Kay Sievers [Thu, 27 Jun 2013 19:34:24 +0000 (21:34 +0200)]
build-sys: work around automake issue with files with a leading '-'

We should probably work around it, until it is sorted out.

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728

6 years agobuild-sys: install rpm macros file to /usr/lib/rpm/macros.d
Fedora systemd team [Thu, 27 Jun 2013 14:30:12 +0000 (16:30 +0200)]
build-sys: install rpm macros file to /usr/lib/rpm/macros.d

RPM macros are moved from /etc to /usr, in the sprit of moving
in the direction of empty /etc.

RPM gained support for the new directory recently, in v. 4.10.90:
https://bugzilla.redhat.com/show_bug.cgi?id=846679.

6 years agoreplace tabs with spaces in various files
Jason St. John [Tue, 2 Jul 2013 11:24:48 +0000 (13:24 +0200)]
replace tabs with spaces in various files

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.

6 years agojournald: drop (deleted) from _EXE= fields
Zbigniew Jędrzejewski-Szmek [Sat, 29 Jun 2013 17:11:44 +0000 (13:11 -0400)]
journald: drop (deleted) from _EXE= fields

The kernel adds those when the file is deleted,
but we don't really care if the file is still there
or not. The downside is that if the filename ends
in ' (deleted)', this part of the filename will be
removed. Too bad.

6 years agoman: add more formatting markup
Zbigniew Jędrzejewski-Szmek [Sat, 29 Jun 2013 16:09:14 +0000 (12:09 -0400)]
man: add more formatting markup

6 years agoman: improve grammar and word formatting in numerous man pages
Jason St. John [Thu, 27 Jun 2013 19:51:44 +0000 (21:51 +0200)]
man: improve grammar and word formatting in numerous man pages

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'.]

6 years agohwdb: allow to query arbitrary keys
Kay Sievers [Tue, 2 Jul 2013 22:23:41 +0000 (00:23 +0200)]
hwdb: allow to query arbitrary keys

6 years agomachine: fix -Wmaybe-uninitialized warning
Dave Reisner [Tue, 2 Jul 2013 17:50:00 +0000 (13:50 -0400)]
machine: fix -Wmaybe-uninitialized warning

The return value of machine_start_scope might be undefined if m->scope
is non-NULL.

6 years agomachined: check correct return value for NULL
Dave Reisner [Tue, 2 Jul 2013 17:44:50 +0000 (13:44 -0400)]
machined: check correct return value for NULL

6 years agomachine: fix scope allocation
Lennart Poettering [Tue, 2 Jul 2013 16:38:26 +0000 (18:38 +0200)]
machine: fix scope allocation

6 years agocore: make GC more aggressive
Lennart Poettering [Tue, 2 Jul 2013 15:41:57 +0000 (17:41 +0200)]
core: make GC more aggressive

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.

6 years agologind: after deserializatio readd systemd units to unit-to-object hashmap correctly
Lennart Poettering [Tue, 2 Jul 2013 15:17:35 +0000 (17:17 +0200)]
logind: after deserializatio readd systemd units to unit-to-object hashmap correctly

6 years agologin: pass correct boolean type to libdbus
Lennart Poettering [Tue, 2 Jul 2013 15:17:25 +0000 (17:17 +0200)]
login: pass correct boolean type to libdbus

6 years agodbus-scope: initialize variable before accessing
Dave Reisner [Tue, 2 Jul 2013 14:44:02 +0000 (10:44 -0400)]
dbus-scope: initialize variable before accessing

6 years agocore: don't consider a unit's cgroup empty if only a subcgroup runs empty
Lennart Poettering [Tue, 2 Jul 2013 14:24:13 +0000 (16:24 +0200)]
core: don't consider a unit's cgroup empty if only a subcgroup runs empty

6 years agomachined: sync to /run after job completed
Lennart Poettering [Tue, 2 Jul 2013 13:49:27 +0000 (15:49 +0200)]
machined: sync to /run after job completed

6 years agomachined: relax access to GetMachine()
Lennart Poettering [Tue, 2 Jul 2013 13:03:09 +0000 (15:03 +0200)]
machined: relax access to GetMachine()

6 years agonspawn: use the corect method signature for CreateMachine()
Lennart Poettering [Tue, 2 Jul 2013 13:02:54 +0000 (15:02 +0200)]
nspawn: use the corect method signature for CreateMachine()

6 years agomachined: fix bus path unescaping
Lennart Poettering [Tue, 2 Jul 2013 01:58:28 +0000 (03:58 +0200)]
machined: fix bus path unescaping

6 years agomachined: split out machine registration stuff from logind
Lennart Poettering [Tue, 2 Jul 2013 01:47:23 +0000 (03:47 +0200)]
machined: split out machine registration stuff from logind

Embedded folks don't need the machine registration stuff, hence it's
nice to make this optional. Also, I'd expect that machinectl will grow
additional commands quickly, for example to join existing containers and
suchlike, hence it's better keeping that separate from loginctl.

6 years agolibsystemd-logind: fix detection of session/user/machine of a PID
Lennart Poettering [Tue, 2 Jul 2013 00:32:24 +0000 (02:32 +0200)]
libsystemd-logind: fix detection of session/user/machine of a PID

6 years agokeymap: Asus -- do not overwrite explicitely kernel driver defined keys
Kay Sievers [Tue, 2 Jul 2013 00:13:30 +0000 (02:13 +0200)]
keymap: Asus -- do not overwrite explicitely kernel driver defined keys

If key mappings are defined in the kernel driver, userspace must
not overwrite them. If something is wrong with the kernel-provided
values, the kernel driver shold be fixed instead.

Some of the matches are not the input device name but the kernel
driver name, which will not match anything.

6 years agologind: port over to use scopes+slices for all cgroup stuff
Lennart Poettering [Mon, 1 Jul 2013 23:46:30 +0000 (01:46 +0200)]
logind: port over to use scopes+slices for all cgroup stuff

In order to prepare things for the single-writer cgroup scheme, let's
make logind use systemd's own primitives for cgroup management.

Every login user now gets his own private slice unit, in which his sessions
live in a scope unit each. Also, add user@$UID.service to the same
slice, and implicitly start it on first login.

6 years agoscope: fix state string table
Lennart Poettering [Mon, 1 Jul 2013 23:35:58 +0000 (01:35 +0200)]
scope: fix state string table

6 years agoscope: implement reset-failed command
Lennart Poettering [Mon, 1 Jul 2013 23:35:35 +0000 (01:35 +0200)]
scope: implement reset-failed command

6 years agocore: split out unit bus path unescaping into unit_name_from_dbus_path()
Lennart Poettering [Mon, 1 Jul 2013 23:35:08 +0000 (01:35 +0200)]
core: split out unit bus path unescaping into unit_name_from_dbus_path()

6 years agoscope: make TimeoutStopUSec= settable for transient units
Lennart Poettering [Mon, 1 Jul 2013 23:34:04 +0000 (01:34 +0200)]
scope: make TimeoutStopUSec= settable for transient units

6 years agokeymap: remove non-existing driver string matches
Kay Sievers [Mon, 1 Jul 2013 21:55:34 +0000 (23:55 +0200)]
keymap: remove non-existing driver string matches

There are no such strings for input devices in the kernel.

6 years agohwdb: add --device=<device-id> and --filter=<key name glob>
Kay Sievers [Mon, 1 Jul 2013 20:34:43 +0000 (22:34 +0200)]
hwdb: add --device=<device-id> and --filter=<key name glob>

6 years agohwdb: import data
Kay Sievers [Mon, 1 Jul 2013 17:41:19 +0000 (19:41 +0200)]
hwdb: import data

6 years agohwdb: remove support for (not fully implemented) conditional properties
Kay Sievers [Mon, 1 Jul 2013 17:39:50 +0000 (19:39 +0200)]
hwdb: remove support for (not fully implemented) conditional properties

6 years agocore: add support to run transient units in arbitrary slices
Lennart Poettering [Mon, 1 Jul 2013 01:02:42 +0000 (03:02 +0200)]
core: add support to run transient units in arbitrary slices

6 years agocore: parse Slice= from the unit type specific unit file section
Lennart Poettering [Mon, 1 Jul 2013 00:52:17 +0000 (02:52 +0200)]
core: parse Slice= from the unit type specific unit file section

Since not all unit types know Slice= it belongs in the unit type
specific unit file section.

6 years agoscope: properly implement passive validity checking of PIDs field when creating trans...
Lennart Poettering [Mon, 1 Jul 2013 00:47:11 +0000 (02:47 +0200)]
scope: properly implement passive validity checking of PIDs field when creating transient scopes

6 years agocore: move ControlGroup and Slice properties out of the dbus "Unit" interface
Lennart Poettering [Mon, 1 Jul 2013 00:45:02 +0000 (02:45 +0200)]
core: move ControlGroup and Slice properties out of the dbus "Unit" interface

Slice/ControlGroup only really makes sense for unit types which actually
have cgroups attached to them, hence move them out of the generic Unit
interface and into the specific unit type interfaces.

These fields will continue to be part of Unit though, simply because
things are a log easier that way. However, regardless how this looks
internally we should keep things clean and independent of the specific
implementation of the inside.

6 years agocore: allow setting of the description string for transient units
Lennart Poettering [Sun, 30 Jun 2013 22:40:56 +0000 (00:40 +0200)]
core: allow setting of the description string for transient units

6 years agocore: add new "scope" unit type for making a unit of pre-existing processes
Lennart Poettering [Sun, 30 Jun 2013 22:03:57 +0000 (00:03 +0200)]
core: add new "scope" unit type for making a unit of pre-existing processes

"Scope" units are very much like service units, however with the
difference that they are created from pre-existing processes, rather
than processes that systemd itself forks off. This means they are
generated programmatically via the bus API as transient units rather
than from static configuration read from disk. Also, they do not provide
execution-time parameters, as at the time systemd adds the processes to
the scope unit they already exist and the parameters cannot be applied
anymore.

The primary benefit of this new unit type is to create arbitrary cgroups
for worker-processes forked off an existing service.

This commit also adds a a new mode to "systemd-run" to run the specified
processes in a scope rather then a transient service.

6 years agosystemctl: show per-unit cgroup tree correctly following the new property
Lennart Poettering [Sun, 30 Jun 2013 22:02:41 +0000 (00:02 +0200)]
systemctl: show per-unit cgroup tree correctly following the new property

6 years agosnapshot: snapshots are just a special kind of transient units now
Lennart Poettering [Sun, 30 Jun 2013 22:02:03 +0000 (00:02 +0200)]
snapshot: snapshots are just a special kind of transient units now

6 years agodbus: expose cgroup properties in introspection everywhere
Lennart Poettering [Sun, 30 Jun 2013 22:01:29 +0000 (00:01 +0200)]
dbus: expose cgroup properties in introspection everywhere

6 years agoservice: correct service bus introspection for timeouts
Lennart Poettering [Sun, 30 Jun 2013 21:56:59 +0000 (23:56 +0200)]
service: correct service bus introspection for timeouts

6 years agocgroup: implicitly add units to GC queue when their cgroups run empty
Lennart Poettering [Sun, 30 Jun 2013 21:56:11 +0000 (23:56 +0200)]
cgroup: implicitly add units to GC queue when their cgroups run empty

6 years agocgroup: readd proper cgroup empty tracking
Lennart Poettering [Sun, 30 Jun 2013 21:55:36 +0000 (23:55 +0200)]
cgroup: readd proper cgroup empty tracking

6 years agoman: fix spacing issue in various man pages
Jason St. John [Thu, 27 Jun 2013 16:38:15 +0000 (18:38 +0200)]
man: fix spacing issue in various man pages

Before: libsystemd-daemonpkg-config(1)
After: libsystemd-daemon pkg-config(1)

This fix is more complicated than it should be due to the consecutive
XML elements separated by collapsible whitespace.

Merging the lines and separating the XML elements with an en space or a
non-breaking space is the only solution that results in one, and only
one, space being inserted between them when testing. An em space results
in two spaces being inserted.

6 years agobuild-sys: "link" libsystemd-id128.so with libsystemd-label
Zbigniew Jędrzejewski-Szmek [Sat, 29 Jun 2013 02:29:21 +0000 (22:29 -0400)]
build-sys: "link" libsystemd-id128.so with libsystemd-label

Fixed build on debian wheezy:
./.libs/libudev.so: undefined reference to `cg_create'

Appears to have no influence on the resulting binaries and
libraries. Cf. b5fafdf63f.

6 years agomain: fix loading of default target
Lennart Poettering [Fri, 28 Jun 2013 16:37:15 +0000 (18:37 +0200)]
main: fix loading of default target

6 years agokeymap: Add Samsung Series 3
장동준 [Fri, 28 Jun 2013 08:51:28 +0000 (10:51 +0200)]
keymap: Add Samsung Series 3

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
6 years agocore: add transient units
Lennart Poettering [Fri, 28 Jun 2013 02:12:58 +0000 (04:12 +0200)]
core: add transient units

Transient units can be created via the bus API. They are configured via
the method call parameters rather than on-disk files. They are subject
to normal GC. Transient units currently may only be created for
services (however, we will extend this), and currently only ExecStart=
and the cgroup parameters can be configured (also to be extended).

Transient units require a unique name, that previously had no
configuration file on disk.

A tool systemd-run is added that makes use of this functionality to run
arbitrary command lines as transient services:

$ systemd-run /bin/ping www.heise.de

Will cause systemd to create a new transient service and run ping in it.

6 years agodbus: fix minor memory leak when sending job change signals
Lennart Poettering [Fri, 28 Jun 2013 01:47:40 +0000 (03:47 +0200)]
dbus: fix minor memory leak when sending job change signals

6 years agounit: make sure the dropins we write are high-priority
Lennart Poettering [Thu, 27 Jun 2013 22:41:24 +0000 (00:41 +0200)]
unit: make sure the dropins we write are high-priority

6 years agodbus: hookup runtime property changes for mouns, services, sockets, swaps too
Lennart Poettering [Thu, 27 Jun 2013 21:21:21 +0000 (23:21 +0200)]
dbus: hookup runtime property changes for mouns, services, sockets, swaps too

6 years agodbus: make DeviceAllow=/DevicePolicy= writable
Lennart Poettering [Thu, 27 Jun 2013 21:13:17 +0000 (23:13 +0200)]
dbus: make DeviceAllow=/DevicePolicy= writable

6 years agodbus: make more cgroup attributes runtime settable
Lennart Poettering [Thu, 27 Jun 2013 19:50:35 +0000 (21:50 +0200)]
dbus: make more cgroup attributes runtime settable

6 years agodbus: add infrastructure for changing multiple properties at once on units and hook...
Lennart Poettering [Thu, 27 Jun 2013 19:14:56 +0000 (21:14 +0200)]
dbus: add infrastructure for changing multiple properties at once on units and hook some cgroup attributes up to it

This introduces two bus calls to make runtime changes to selected bus
properties, optionally with persistence.

This currently hooks this up only for three cgroup atributes, but this
brings the infrastructure to add more changable attributes.

This allows setting multiple attributes at once, and takes an array
rather than a dictionary of properties, in order to implement simple
resetting of lists using the same approach as when they are sourced from
unit files. This means, that list properties are appended to by this
call, unless they are first reset via assigning the empty list.

6 years agojournal-verify: Use proper printf placeholder
Jan Janssen [Thu, 27 Jun 2013 14:24:02 +0000 (16:24 +0200)]
journal-verify: Use proper printf placeholder

6 years agotest: Add list testcase
Jan Janssen [Wed, 26 Jun 2013 11:43:16 +0000 (13:43 +0200)]
test: Add list testcase

6 years agocore: general cgroup rework
Lennart Poettering [Thu, 27 Jun 2013 02:14:27 +0000 (04:14 +0200)]
core: general cgroup rework

Replace the very generic cgroup hookup with a much simpler one. With
this change only the high-level cgroup settings remain, the ability to
set arbitrary cgroup attributes is removed, so is support for adding
units to arbitrary cgroup controllers or setting arbitrary paths for
them (especially paths that are different for the various controllers).

This also introduces a new -.slice root slice, that is the parent of
system.slice and friends. This enables easy admin configuration of
root-level cgrouo properties.

This replaces DeviceDeny= by DevicePolicy=, and implicitly adds in
/dev/null, /dev/zero and friends if DeviceAllow= is used (unless this is
turned off by DevicePolicy=).

6 years agocore: don't do runaway fork()s if we hit a segfault from our segfault handler
Lennart Poettering [Thu, 27 Jun 2013 00:28:12 +0000 (02:28 +0200)]
core: don't do runaway fork()s if we hit a segfault from our segfault handler

6 years agokillall: do not use alloca() in argument list
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2013 23:48:32 +0000 (19:48 -0400)]
killall: do not use alloca() in argument list

It is not allowed.

6 years agojournalctl: highlight MESSAGE= in verbose output
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2013 23:48:24 +0000 (19:48 -0400)]
journalctl: highlight MESSAGE= in verbose output

When looking at verbose output, additional "work" is required to
pick out the interesting MESSAGE= lines from all the fields.

Also, show long fields in full in verbose output mode when
OUTPUT_FULL_WIDTH is specified.

6 years agoman: add CONSTANTS section to systemd.directives(7)
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2013 23:48:19 +0000 (19:48 -0400)]
man: add CONSTANTS section to systemd.directives(7)

6 years agoman: use <constant> for various constants which look ugly with quotes
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2013 23:47:34 +0000 (19:47 -0400)]
man: use <constant> for various constants which look ugly with quotes

6 years agoman: always supply quotes around literals
Zbigniew Jędrzejewski-Szmek [Wed, 26 Jun 2013 12:03:53 +0000 (08:03 -0400)]
man: always supply quotes around literals

When manpages are displayed on a terminal, <literal>s are indistinguishable
from surrounding text. Add quotes everywhere, remove duplicate quotes,
and tweak a few lists for consistent formatting.

https://bugzilla.redhat.com/show_bug.cgi?id=874631

6 years agosystemctl: conform to LSB with the "status" return code
Harald Hoyer [Tue, 25 Jun 2013 14:25:38 +0000 (16:25 +0200)]
systemctl: conform to LSB with the "status" return code

check for pid file existance before returning 1

6 years agoman: Small language improvements to sd_journal_open
David King [Tue, 25 Jun 2013 10:48:17 +0000 (11:48 +0100)]
man: Small language improvements to sd_journal_open