Lennart Poettering
81d2fe53fc
nspawn: some minor modernizations
2020-04-23 07:59:26 +02:00
Niklas Hambüchen
69123c218c
man: Fix typo "multiplied with" -> "multiplied by"
2020-04-23 07:56:28 +02:00
Daan De Meyer
e8c47f7370
sd-bus: Add sd_bus_message_at_end docs
2020-04-22 23:42:03 +02:00
Zbigniew Jędrzejewski-Szmek
bbdeb2b5e9
Merge pull request #15517 from DaanDeMeyer/sd-bus-monitor-docs
...
sd-bus: Add sd_bus_set/is_monitor docs
2020-04-22 23:38:37 +02:00
Zbigniew Jędrzejewski-Szmek
1943d50e4e
Merge pull request #15507 from poettering/bus-log-api
...
add generic bus interface for setting log level that can be implemented by any daemon
2020-04-22 23:30:09 +02:00
Lennart Poettering
e8cf09b2a2
core: make sure we don't get confused when setting TERM for a tty fd
...
Fixes : #15344
2020-04-22 22:59:41 +02:00
Lennart Poettering
60e16d20a3
man: document that VirtualEthernetExtra= has nothing to do with Bridge=
...
Fixes : #15402
2020-04-22 22:34:52 +02:00
Zbigniew Jędrzejewski-Szmek
eecf4f7e04
Merge pull request #15526 from bluca/start_stop_wait_debug
...
Add debug log when a job in the activation queue is not runnable
2020-04-22 14:24:07 +02:00
Luca Boccassi
c03fbd37d6
core: add debug log when a job in the activation queue is not runnable
...
When a job is skipped due its dependencies not being ready, log
a debug message saying what is holding it back.
This was very useful with transient units timing out to figure
out where the problem was.
2020-04-22 09:58:12 +01:00
Zbigniew Jędrzejewski-Szmek
9df91db5e0
Merge pull request #15519 from DaanDeMeyer/sd-bus-message-read-strv-docs
2020-04-22 09:44:27 +02:00
Frantisek Sumsal
80b44b38b5
test: correctly clean up test artifacts
...
Remove the artifact files indicating test result (testok, failed, and
skipped) just before running the test so we always get the latest and
most relevant result instead of incorrectly consuming previous results.
Discovered in https://github.com/systemd/systemd/pull/15378#issuecomment-616801873
2020-04-22 08:57:38 +02:00
Balaji Punnuru
f6f4f5fe53
util: return the correct correct wd from inotify helpers
...
We need to propagate the acquired watch descriptors because our callers
are counting on them.
[Lennart: this is split out of #15381 and simplified]
2020-04-22 08:57:17 +02:00
Lennart Poettering
df3d3bdfe8
core: minor error code handling fixes
2020-04-22 08:56:05 +02:00
Daan De Meyer
42f5c9a335
sd-bus: Clarify sd_bus_list_names results ownership
2020-04-22 08:42:50 +02:00
Daan De Meyer
e5f1a3faab
sd-bus: Add sd_bus_message_read_strv docs
2020-04-22 08:42:29 +02:00
Zbigniew Jędrzejewski-Szmek
2807b68019
Merge pull request #15520 from mrc0mmand/various-codebase-improvements
...
tree-wide: various codebase improvements
2020-04-22 08:41:38 +02:00
Zbigniew Jędrzejewski-Szmek
a00f28c554
Merge pull request #15443 from ddstreet/use_gateway_backwards_compatible
...
Make UseGateway= default backwards compatible, and fix UseGateway/RoutesToDNS
2020-04-22 08:39:46 +02:00
Dan Streetman
06c2b0c76b
test: verify RoutesToDNS= is independent of UseGateway=
2020-04-21 17:21:37 -04:00
Frantisek Sumsal
86b52a3958
tree-wide: fix spelling errors
...
Based on a report from Fossies.org using Codespell.
Followup to #15436
2020-04-21 23:21:08 +02:00
Frantisek Sumsal
e4ff03935c
tree-wide: formatting tweaks reported by Coccinelle
2020-04-21 23:21:04 +02:00
Dan Streetman
244490f5e0
network: honor SetDNSRoutes= even if UseGateway=False
2020-04-21 17:15:07 -04:00
Dan Streetman
7c0d36ff5f
test: modify/add tests for UseRoutes= and UseGateway= configuration
...
The last commit changed the UseGateway= default to the value of UseRoutes=
so the tests need to check for all combinations of the two parameters.
2020-04-21 17:15:02 -04:00
Dan Streetman
589397a277
network: change UseGateway= default to UseRoutes= setting
...
Anyone previously using the UseRoutes=false parameter expected their
dhcp4-provided gateway route to be ignored, as well. However, with
the introduction of the UseGateway= parameter, this is no longer true.
In order to keep backwards compatibility, this sets the UseGateway=
default value to whatever UseRoutes= has been set to.
2020-04-21 16:56:48 -04:00
Daan De Meyer
f74067dfbd
sd-bus: Add sd_bus_list_names docs
2020-04-21 22:20:54 +02:00
Frantisek Sumsal
ff3518f1f4
test: drop Disk (Size|Free|Floor|Ceiling) fields prior comparing
...
The disk attributes can take some time to update on certain filesystems,
so let's strip them from inputs of both `homectl` and `userdbctl` before
comparing them to avoid unexpected fails.
Also, switch from `cmp` to `diff` to make a potential test fail a bit more
debuggable.
Fixes : #14755
2020-04-21 22:09:35 +02:00
Lennart Poettering
c5ca6d9076
update TODO
2020-04-21 21:23:01 +02:00
Daan De Meyer
0eb5b641c5
sd-bus: Add sd_bus_set/is_monitor docs
2020-04-21 19:33:25 +02:00
Daan De Meyer
7fffaafaf2
sd-bus: Rewrap sd_bus_set_server docs at 109 columns
2020-04-21 19:08:25 +02:00
Luca Boccassi
c5bc2c01ee
core: add log_get_max_level check optimization in log_unit_full
...
Just as log_full already does, check if the log level would result in
logging immediately in the macro in order to avoid doing
unnecessary work that adds up in hot spots.
2020-04-21 18:05:24 +01:00
Lennart Poettering
893f801d67
core: implement generic log control API in PID1 too
...
It has slightly different setters in place, so it needs some special
love, which is easy enough though.
2020-04-21 17:08:23 +02:00
Lennart Poettering
25141692e9
core: use generic implementations of log level/target bus propertier getters
...
The setters are slightly different, hence keep them as they are for now.
2020-04-21 17:08:23 +02:00
Lennart Poettering
ac9f55ed40
tree-wide: implement new log control API dbus interface in all our daemons
2020-04-21 17:08:16 +02:00
Lennart Poettering
4c4520789d
resolved: replace private log level control API with generic one
...
The property was just added, let's replace it again. Given that it was
never released this should not be an API breakage.
2020-04-21 17:08:02 +02:00
Lennart Poettering
052740e2e3
log-control-api: add generic D-Bus interface for querying/setting log level/target
...
Let's define a new, generic bus interface that any daemon can implement
for querying/setting the log level.
We can turn this into something more powerful later on, but for now,
only expose three properties: the log level, log target and the syslog
identifier (with the former two being writable).
This is supposed to be generic, so that it can be implemented by 3rd
party daemons too, eventually.
2020-04-21 17:07:43 +02:00
Lennart Poettering
33b58dfb41
core: automatically add udev dependency for units using RootImage=
...
We use udev to wait for /dev/loopX devices to be fully proped hence we
need an implicit ordering dependency on it, for RootImage= to work
reliably in early boot, too.
Fixes : #14972
2020-04-21 16:31:06 +02:00
Zbigniew Jędrzejewski-Szmek
91b75f1f2f
Merge pull request #15508 from keszybz/add-dbus-entities-to-index
...
Add dbus entities to index
2020-04-21 13:58:01 +02:00
Lennart Poettering
ede32a7cff
Merge pull request #15505 from keszybz/man-sd-hwdb-sd-journal
...
Document remaining sd-journal and sd-hwdb functions
2020-04-21 13:37:55 +02:00
Lennart Poettering
e14a0c21e9
man: document how to get the boot menu with zero time-out
...
Fixes : #15125
2020-04-21 12:21:38 +02:00
Zbigniew Jędrzejewski-Szmek
32c4d2ba62
man: add SD_HWDB_FOREACH_PROPERTY with an example
2020-04-21 11:44:49 +02:00
Zbigniew Jędrzejewski-Szmek
ec7ea47dae
man: add description of all the sd-hwdb funtions
2020-04-21 11:37:30 +02:00
Zbigniew Jędrzejewski-Szmek
00bb75d7ce
man: add markers to put all dbus entities in the directives index
...
Follow-up for f92c8d1c67 .
directives.index:
- This index contains 3398 entries in 19 sections, referring to 333 individual
+ This index contains 4316 entries in 19 sections, referring to 333 individual
2020-04-21 10:59:24 +02:00
Zbigniew Jędrzejewski-Szmek
47fb7fd6b0
man: run systemd1(5) through the updater
...
For some reason I must've forgotten this page in 4fb222c4b2 .
2020-04-21 10:56:51 +02:00
Zbigniew Jędrzejewski-Szmek
4a582e73b9
Merge pull request #15476 from boucman/directive_dbus
...
Generate systemd.directive entries from dbus documentation
2020-04-21 10:09:46 +02:00
Lennart Poettering
f9411d5d5f
Merge pull request #15495 from keszybz/resolve-debugging-and-stub-handling
...
Resolve debugging and stub handling
2020-04-21 09:34:21 +02:00
Lennart Poettering
543d1e7854
Merge pull request #15314 from keszybz/network-server-access-functions
...
Define network server access functions
2020-04-21 09:24:48 +02:00
Zbigniew Jędrzejewski-Szmek
55c0fbde8f
Merge pull request #15502 from DaanDeMeyer/sd-bus-exit-on-disconnect-docs
...
sd-bus: Add sd_bus_get/set_exit_on_disconnect docs
2020-04-21 09:23:16 +02:00
Zbigniew Jędrzejewski-Szmek
309b7d41f2
Merge pull request #15503 from DaanDeMeyer/sd-bus-get-docs
...
sd-bus: Add sd_bus_get_scope/tid/unique_name docs
2020-04-21 09:16:29 +02:00
Zbigniew Jędrzejewski-Szmek
21dc5e82ad
man: add sd_j_open_namespace as refname
...
This was forgotten in 241c8f67f6 .
2020-04-21 09:08:14 +02:00
Zbigniew Jędrzejewski-Szmek
622018c5b4
check-api-docs: sd_journal_open_container is deprecated
2020-04-21 09:08:14 +02:00
Zbigniew Jędrzejewski-Szmek
c11edfee98
man: document sd_journal_*_with_location
2020-04-21 09:08:14 +02:00