Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v252 batch #390

Merged
merged 78 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
d44a70d
resolve: tolerate merging a zero-ttl RR and a nonzero-ttl RR if not mDNS
benjaminp Sep 25, 2023
99c6109
install: fix compiler warning about empty directive argument
bluca Feb 24, 2024
47936fe
basic: add PIDFS magic (#31709)
cpackham-atlnz Mar 11, 2024
cf03c71
test: check for /dev/loop-control when checking lodev availability
mrc0mmand Mar 27, 2024
f96f165
test: explicitly set TERM=linux for TEST-69-SHUTDOWN
mrc0mmand Mar 3, 2024
48eeb56
test/test-shutdown.py: optionally display the test I/Os in a dedicate…
fbuihuu Feb 8, 2024
8b3530b
test: set pexpect's logfile early
mrc0mmand Apr 9, 2024
c60144e
test: wait until the test container is fully booted up
mrc0mmand Apr 9, 2024
bf26a0c
test: make the output of TEST-69 less painful to read
mrc0mmand Apr 11, 2024
dbf5016
zsh/_journalctl: complete -g, --case-sensitive, 'help' (pseudo-)facility
stepnem Feb 27, 2024
10676f3
man, shell-completion: fix a few typos/language issues
stepnem Feb 27, 2024
2419c72
tmpfiles.d: avoid deprecated, undocumented syntax (s/F/f+/)
stepnem Feb 27, 2024
b9459bb
core: mark JoinControllers= as DISABLED_LEGACY rather than _CONFIGURA…
YHNdnzj Feb 22, 2024
e6282af
rpm/macros: add %_kernel_install_dir
keszybz Feb 29, 2024
1ad1dcf
busctl: don't hit an assert if we call invalid bus method names
poettering Mar 1, 2024
e36cd53
resolve: skip IP_UNICAST_IF for local sockets
rpigott Mar 1, 2024
3fe8d06
hashmap: reorder fields to pack structure better
poettering Mar 1, 2024
55af692
resolved: explicitly disconnect all left-over TCP connections when co…
poettering Mar 1, 2024
aa5ce5a
core/service: Type=notify/dbus services shouldn't be considered active
YHNdnzj Mar 2, 2024
6fc35e4
core/service: don't transition to start-post on cgroup empty event
YHNdnzj Mar 2, 2024
64a483b
resolved: decrease mdns/llmnr priority for the reverse mapping domains
rpigott Mar 6, 2024
87757cd
man: fix systemd-timedated man page wrt ntp-units.d
mbiebl Mar 6, 2024
e4ecd77
tmpfiles.d/systemd: use ACL 'X' bit where appropriate
YHNdnzj Mar 5, 2024
dc674c0
resolved: register ipv4only.arpa are private domain
bjacquin Sep 27, 2023
0cc0db2
resolved: refuse queries with no suitable scope
rpigott Mar 7, 2024
6c8ef9a
resolved: also reply NOTIMP when refusing a query based on RR type
rpigott Mar 8, 2024
50c9e2a
env-util: add new setenvf() helper
poettering Jan 8, 2024
0bd82cd
man: fix efi var vendor uuid for systemd-bless-boot.service
TeFiLeDo Mar 14, 2024
464d22b
Update _udevadm
samuelvw01 Mar 16, 2024
7f3520c
units: Accept modules_load and rd.modules_load in systemd-modules-loa…
DaanDeMeyer Mar 16, 2024
8606a2b
resolved: wait to gc transactions if they might still give an answer
rpigott Mar 15, 2024
e79a2c6
dnssd: don't advertise subtype PTRs to the browsing domain
rpigott Mar 19, 2024
fd4ac0e
resolved: don't request the SOA for every dns label
rpigott Mar 18, 2024
80c4dc6
resolved: request DS with DNSKEY
rpigott Mar 18, 2024
0e5b5ed
bpf-socket-bind: fix unexpected behavior with either 0 allow or deny …
networkException Mar 10, 2024
3a5266b
resolved: minor dnssec fixups
rpigott Mar 26, 2024
90ef0fb
man/example: fix build failure of hwdb-usb-device.c
yuwata Apr 2, 2024
adfbfae
man/examples: fix sd- header path
yuwata Apr 2, 2024
24e2c5d
sd-bus-vtable: add dummy macro to support compile without GNU extension
yuwata Apr 3, 2024
095f825
dlopen: log debug message when a library is dlopened
bluca Apr 3, 2024
cd6675c
watchdog: clarify that we set the *watchdog* timeout
poettering Apr 4, 2024
f265f3b
backlight: fix detection of multiple graphic cards
yuwata Apr 3, 2024
bec5496
base-filesystem: check for __s390x__ first
mrc0mmand Apr 5, 2024
e05f723
man: fix typo s/veno/reno/
vcaputo Apr 6, 2024
d279d8a
core: silence gcc warning about unitialized variable
keszybz Apr 7, 2024
04c2255
sd-bus: rework assert to make the gcc happy
keszybz Apr 7, 2024
c2fcdd3
userdbctl: avoid NULL pointer deref
YHNdnzj Apr 8, 2024
b3206cd
userdbctl: correct uid_range_covers check
YHNdnzj Apr 8, 2024
51fe245
meson: do not fail build with newer kernel headers
keszybz Apr 7, 2024
f8afd10
man/custom-html: update link to Arch manual
YHNdnzj Apr 14, 2024
ba1dcac
man: mention that sd_journal_test_cursor() needs a positioning call
keszybz Apr 17, 2024
3b9a651
journalctl: update help to say "priority range" (#32323)
Winterhuman Apr 18, 2024
7130d39
systemctl: allow user to suppress output when no action scheduled (#3…
MaxHearnden Apr 18, 2024
be3f643
boot: fix assignment of ret_* variables in `initrd_prepare()`
aafeijoo-suse Apr 18, 2024
63f1822
copy: ignore -EOPNOTSUPP from copy_file_range()
enr0n Apr 18, 2024
648a676
cpio: fix assert
aafeijoo-suse Apr 19, 2024
971e356
sd-journal: downgrade log message "Unused data (entry_offset==0)"
yuwata Apr 20, 2024
777f372
sd-event: fix fd leak when fd is owned by IO event source
yuwata Apr 21, 2024
489419f
man: explicitly document the various systemd.journald.max_level_*= ke…
poettering Apr 22, 2024
17f20cc
man: document explicitly that bind restrictions cannot be escaped by …
poettering Apr 22, 2024
c506b01
man: document that StateDirectory= trumps ProtectSystem=strict explic…
poettering Apr 22, 2024
8a0b924
man: document missing resolved D-Bus APIs
poettering Apr 22, 2024
41d569e
man: say explicitly that $LESS + $LESSCHARSET have no effect on less …
poettering Apr 22, 2024
0fff3f9
man: document that "systemctl set-environment" cannot be used to unse…
poettering Apr 22, 2024
b8e4890
man: document that ReadOnlyPaths= doesn't affect ability to connect t…
poettering Apr 22, 2024
b3922f7
man: be explicit that we don't proxy SO_PEER*, SCM_RIGHTS and co.
poettering Apr 22, 2024
208ad1c
man: document that IPAccounting= works for system services only
poettering Apr 22, 2024
4f44861
shared/verbs: minor modernization
YHNdnzj Apr 22, 2024
fb74bc6
sd-event,sd-journal: fix error handling of inotify_add_watch_fd()
yuwata Apr 19, 2024
8242abd
journal-remote: fix two minor memory leaks
aafeijoo-suse Apr 11, 2024
dcd5734
sd-device: introduce device_get_sysattr_unsigned_full()
yuwata Apr 8, 2024
053c77f
blockdev-util: also read 'ext_range' sysattr to check if the partscan…
yuwata Apr 8, 2024
58996f6
core/mount: if unmount retries exceeded max, record as failure
YHNdnzj Mar 28, 2024
6732198
core/mount: if umount(8) fails but mount disappeared, assume success
YHNdnzj Feb 16, 2024
4d1119d
journal-remote: allow AF_VSOCK and AF_UNIX for --listen-raw
sam-leonard-ct Jan 22, 2024
6db7be8
man: resync dbus docs
keszybz Apr 23, 2024
a5ecaae
journal-remote: Use sd_event_set_signal_exit()
DaanDeMeyer Apr 11, 2024
55d01bb
test: temporarily disable test_sysctl
mrc0mmand Dec 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion man/common-variables.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
</varlistentry>
</variablelist>

<para>Note that setting the regular <varname>$LESS</varname> environment variable has no effect
for <command>less</command> invocations by systemd tools.</para>

<para>See
<citerefentry project='man-pages'><refentrytitle>less</refentrytitle><manvolnum>1</manvolnum></citerefentry>
for more discussion.</para></listitem>
Expand All @@ -138,7 +141,10 @@
<term><varname>$SYSTEMD_LESSCHARSET</varname></term>

<listitem><para>Override the charset passed to <command>less</command> (by default <literal>utf-8</literal>, if
the invoking terminal is determined to be UTF-8 compatible).</para></listitem>
the invoking terminal is determined to be UTF-8 compatible).</para>

<para>Note that setting the regular <varname>$LESSCHARSET</varname> environment variable has no effect
for <command>less</command> invocations by systemd tools.</para></listitem>
</varlistentry>

<varlistentry id='lesssecure'>
Expand Down
6 changes: 2 additions & 4 deletions man/custom-html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,11 @@
<xsl:template match="citerefentry[@project='archlinux']">
<a>
<xsl:attribute name="href">
<xsl:text>https://www.archlinux.org/</xsl:text>
<xsl:value-of select="refentrytitle"/>
<xsl:text>/</xsl:text>
<xsl:text>https://man.archlinux.org/man/</xsl:text>
<xsl:value-of select="refentrytitle"/>
<xsl:text>.</xsl:text>
<xsl:value-of select="manvolnum"/>
<xsl:text>.html</xsl:text>
<xsl:text>.en.html</xsl:text>
</xsl:attribute>
<xsl:call-template name="inline.charseq"/>
</a>
Expand Down
2 changes: 1 addition & 1 deletion man/daemon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
create an independent session.</para></listitem>

<listitem><para>In the child, call <function>fork()</function> again, to ensure that the daemon can
never re-acquire a terminal again. (This relevant if the program — and all its dependencies — does
never re-acquire a terminal again. (This is relevant if the program — and all its dependencies — does
not carefully specify `O_NOCTTY` on each and every single `open()` call that might potentially open a
TTY device node.)</para></listitem>

Expand Down
2 changes: 1 addition & 1 deletion man/event-quick-child.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <assert.h>
#include <stdio.h>
#include <unistd.h>
#include <sd-event.h>
#include <systemd/sd-event.h>

int main(int argc, char **argv) {
pid_t pid = fork();
Expand Down
6 changes: 3 additions & 3 deletions man/hwdb-usb-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

#include <stdio.h>
#include <stdint.h>
#include <sd-hwdb.h>
#include <systemd/sd-hwdb.h>

int print_usb_properties(uint16_t vid, uint16_t pid) {
char match[STRLEN("usb:vp") + DECIMAL_STR_MAX(uint16_t) * 2];
char match[128];
sd_hwdb *hwdb;
const char *key, *value;
int r;

/* Match this USB vendor and product ID combination */
xsprintf(match, "usb:v%04Xp%04X", vid, pid);
snprintf(match, sizeof match, "usb:v%04Xp%04X", vid, pid);

r = sd_hwdb_new(&hwdb);
if (r < 0)
Expand Down
39 changes: 27 additions & 12 deletions man/org.freedesktop.resolve1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,6 @@ node /org/freedesktop/resolve1 {
};
</programlisting>

<!--method RegisterService is not documented!-->

<!--method UnregisterService is not documented!-->

<!--method FlushCaches is not documented!-->

<!--method ResetServerFeatures is not documented!-->

<!--property DNSSECNegativeTrustAnchors is not documented!-->

<!--Autogenerated cross-references for systemd.directives, do not edit-->

<variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.resolve1.Manager"/>
Expand Down Expand Up @@ -433,6 +423,30 @@ node /org/freedesktop/resolve1 {
<para>The <function>RevertLink()</function> method may be used to revert all per-link settings
described above to the defaults.</para>

<para>The <function>FlushCaches()</function> flushes all resource record caches maintained by the
resolver, and ensures that any subsequent lookups re-request their responses from their sources.</para>

<para>The <function>ResetServerFeatures()</function> flushes any feature information learned about
remote DNS servers. This ensures that subsequent lookups will be initially attempted at the highest DNS
protocol feature level again, possibly requiring a (potentially slow) downgrade cycle to recognize the
supported feature level again.</para>

<para>The <function>RegisterService()</function> method may be used to register a DNS-SD service on the
host. This functionality is closely related to the functionality provided by
<citerefentry><refentrytitle>systemd.dnssd</refentrytitle><manvolnum>5</manvolnum></citerefentry>
files. It takes a server identifier string as first parameter (this is jus a local identifier, and
should be chosen so that it neither collides with the basename of <filename>*.dnssd</filename> files
nor with names chosen by other IPC clients). It also takes a name template string for the DNS-SD
service name visible on the network. This string is subject to specifier expansation, as documented for
the <varname>Name=</varname> setting in <filename>*.dnssd</filename> files. It also takes a service
type string containing the DNS-SD service type, as well as an IP port, a priority/weight pair for the
DNS-SD SRV record. Finally, it takes an array of TXT record data. It returns an object path which may be
used as handle to the registered service.</para>

<para>The <function>UnregisterService()</function> method undoes the effect of
<function>RegisterService()</function> and deletes a DNS-SD service previously created via IPC
again.</para>

<refsect3>
<title>The Flags Parameter</title>

Expand Down Expand Up @@ -634,6 +648,9 @@ node /org/freedesktop/resolve1 {
enabled. Possible values are <literal>yes</literal> (enabled), <literal>no</literal> (disabled),
<literal>udp</literal> (only the UDP listener is enabled), and <literal>tcp</literal> (only the TCP
listener is enabled).</para>

<para>The <varname>DNSSECNegativeTrustAnchors</varname> property contains a list of recognized DNSSEC
negative trust anchors and contains a list of domains.</para>
</refsect2>
</refsect1>

Expand Down Expand Up @@ -688,8 +705,6 @@ node /org/freedesktop/resolve1/link/_1 {
};
</programlisting>

<!--property DNSSECNegativeTrustAnchors is not documented!-->

<!--Autogenerated cross-references for systemd.directives, do not edit-->

<variablelist class="dbus-interface" generated="True" extra-ref="org.freedesktop.resolve1.Link"/>
Expand Down
2 changes: 1 addition & 1 deletion man/path-documents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include <stdio.h>
#include <stdlib.h>
#include <sd-path.h>
#include <systemd/sd-path.h>

int main(void) {
int r;
Expand Down
4 changes: 2 additions & 2 deletions man/portablectl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
within the file system context of the image.</para>

<para>Portable service images are an efficient way to bundle multiple related services and other units together,
and transfer them as a whole between systems. When these images are attached the local system the contained units
and transfer them as a whole between systems. When these images are attached to the local system, the contained units
may run in most ways like regular system-provided units, either with full privileges or inside strict sandboxing,
depending on the selected configuration. For more details, see
<ulink url="https://systemd.io/PORTABLE_SERVICES">Portable Services</ulink>.</para>

<para>Specifically portable service images may be of the following kind:</para>
<para>Portable service images may be of the following kinds:</para>

<itemizedlist>
<listitem><para>Directory trees containing an OS, including the top-level directories <filename>/usr/</filename>,
Expand Down
2 changes: 1 addition & 1 deletion man/sd_bus_error-example.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sd-bus.h>
#include <systemd/sd-bus.h>

int writer_with_negative_errno_return(int fd, sd_bus_error *error) {
const char *message = "Hello, World!\n";
Expand Down
24 changes: 14 additions & 10 deletions man/sd_event_add_io.xml
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,20 @@
source object and returns the non-negative file descriptor
or a negative error number on error (see below).</para>

<para><function>sd_event_source_set_io_fd()</function>
changes the UNIX file descriptor of an I/O event source created
previously with <function>sd_event_add_io()</function>. It takes
the event source object and the new file descriptor.</para>

<para><function>sd_event_source_set_io_fd_own()</function> controls whether the file descriptor of the event source
shall be closed automatically when the event source is freed, i.e. whether it shall be considered 'owned' by the
event source object. By default it is not closed automatically, and the application has to do this on its own. The
<parameter>b</parameter> parameter is a boolean parameter: if zero, the file descriptor is not closed automatically
when the event source is freed, otherwise it is closed.</para>
<para><function>sd_event_source_set_io_fd()</function> changes the UNIX file descriptor of an I/O event
source created previously with <function>sd_event_add_io()</function>. It takes the event source object
and the new file descriptor. If the event source takes the ownership of the previous file descriptor,
that is, <function>sd_event_source_set_io_fd_own()</function> was called for the event source with a
non-zero value, then the previous file descriptor will be closed and the event source will also take the
ownership of the new file descriptor on success.</para>

<para><function>sd_event_source_set_io_fd_own()</function> controls whether the file descriptor of the
event source shall be closed automatically when the event source is freed (or when the file descriptor
assigned to the event source is replaced by <function>sd_event_source_set_io_fd()</function>), i.e.
whether it shall be considered 'owned' by the event source object. By default it is not closed
automatically, and the application has to do this on its own. The <parameter>b</parameter> parameter is a
boolean parameter: if zero, the file descriptor is not closed automatically when the event source is
freed, otherwise it is closed.</para>

<para><function>sd_event_source_get_io_fd_own()</function> may be used to query the current setting of the file
descriptor ownership boolean flag as set with <function>sd_event_source_set_io_fd_own()</function>. It returns
Expand Down
15 changes: 8 additions & 7 deletions man/sd_journal_get_cursor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@
and should be freed after use with
<citerefentry project='man-pages'><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>

<para>Note that <function>sd_journal_get_cursor()</function> will
not work before
<citerefentry><refentrytitle>sd_journal_next</refentrytitle><manvolnum>3</manvolnum></citerefentry>
(or related call) has been called at least once, in order to
position the read pointer at a valid entry.</para>

<para><function>sd_journal_test_cursor()</function>
may be used to check whether the current position in
the journal matches the specified cursor. This is
Expand All @@ -75,10 +69,17 @@
multiple different cursor strings, and hence string
comparing cursors is not possible. Use this call to
verify after an invocation of
<citerefentry><refentrytitle>sd_journal_seek_cursor</refentrytitle><manvolnum>3</manvolnum></citerefentry>
<citerefentry><refentrytitle>sd_journal_seek_cursor</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
whether the entry being sought to was actually found
in the journal or the next closest entry was used
instead.</para>

<para>Note that <function>sd_journal_get_cursor()</function>
and <function>sd_journal_test_cursor()</function>
will not work before
<citerefentry><refentrytitle>sd_journal_next</refentrytitle><manvolnum>3</manvolnum></citerefentry>
(or one of the other functions which move to an entry)
has been called at least once to position the read pointer at a valid entry.</para>
</refsect1>

<refsect1>
Expand Down
10 changes: 8 additions & 2 deletions man/sd_journal_seek_head.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@
string. For details on cursors, see
<citerefentry><refentrytitle>sd_journal_get_cursor</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
If no entry matching the specified cursor is found the call will seek to the next closest entry (in terms
of time) instead. To verify whether the newly selected entry actually matches the cursor, use
<citerefentry><refentrytitle>sd_journal_test_cursor</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para>
of time) instead.</para>

<para>Note that these calls do not actually make any entry the new current entry, this needs to be done
in a separate step with a subsequent
Expand All @@ -97,6 +96,13 @@
used, the closest following entry will be sought to, if
<citerefentry><refentrytitle>sd_journal_previous</refentrytitle><manvolnum>3</manvolnum></citerefentry>
is used the closest preceding entry is sought to.</para>

<para>After the seek is done, and
<citerefentry><refentrytitle>sd_journal_next</refentrytitle><manvolnum>3</manvolnum></citerefentry>
or a similar call has been made,
<citerefentry><refentrytitle>sd_journal_test_cursor</refentrytitle><manvolnum>3</manvolnum></citerefentry>
may be used to verify whether the newly selected entry actually matches the cursor.
</para>
</refsect1>

<refsect1>
Expand Down
68 changes: 43 additions & 25 deletions man/systemctl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1176,46 +1176,64 @@ Jan 12 10:46:45 example.com bluetoothd[8900]: gatt-time-server: Input/output err
<term><command>show-environment</command></term>

<listitem>
<para>Dump the systemd manager environment block. This is the environment
block that is passed to all processes the manager spawns. The environment
block will be dumped in straightforward form suitable for sourcing into
most shells. If no special characters or whitespace is present in the variable
values, no escaping is performed, and the assignments have the form
<literal>VARIABLE=value</literal>. If whitespace or characters which have
special meaning to the shell are present, dollar-single-quote escaping is
used, and assignments have the form <literal>VARIABLE=$'value'</literal>.
This syntax is known to be supported by
<citerefentry project='die-net'><refentrytitle>bash</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry project='die-net'><refentrytitle>zsh</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry project='die-net'><refentrytitle>ksh</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
and
<citerefentry project='die-net'><refentrytitle>busybox</refentrytitle><manvolnum>1</manvolnum></citerefentry>'s
<citerefentry project='die-net'><refentrytitle>ash</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
but not
<citerefentry project='die-net'><refentrytitle>dash</refentrytitle><manvolnum>1</manvolnum></citerefentry>
or
<citerefentry project='die-net'><refentrytitle>fish</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
<para>Dump the systemd manager environment block. This is the environment block that is passed to
all processes the manager spawns. The environment block will be dumped in straightforward form
suitable for sourcing into most shells. If no special characters or whitespace is present in the
variable values, no escaping is performed, and the assignments have the form
<literal>VARIABLE=value</literal>. If whitespace or characters which have special meaning to the
shell are present, dollar-single-quote escaping is used, and assignments have the form
<literal>VARIABLE=$'value'</literal>. This syntax is known to be supported by <citerefentry
project='die-net'><refentrytitle>bash</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry
project='die-net'><refentrytitle>zsh</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry
project='die-net'><refentrytitle>ksh</refentrytitle><manvolnum>1</manvolnum></citerefentry>, and
<citerefentry
project='die-net'><refentrytitle>busybox</refentrytitle><manvolnum>1</manvolnum></citerefentry>'s
<citerefentry
project='die-net'><refentrytitle>ash</refentrytitle><manvolnum>1</manvolnum></citerefentry>, but
not <citerefentry
project='die-net'><refentrytitle>dash</refentrytitle><manvolnum>1</manvolnum></citerefentry> or
<citerefentry
project='die-net'><refentrytitle>fish</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
</para>

<para>Note that this shows the <emphasis>effective</emphasis> block, i.e. the combination of
environment variables configured via configuration files, environment generators and via IPC
(i.e. via the <command>set-environment</command> described below). At the moment a unit process
is forked off this combined environment block will be further combined with per-unit environment
variables, which are not visible in this command.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>set-environment <replaceable>VARIABLE=VALUE</replaceable>…</command></term>

<listitem>
<para>Set one or more systemd manager environment variables, as specified on the command
<para>Set one or more service manager environment variables, as specified on the command
line. This command will fail if variable names and values do not conform to the rules listed
above.</para>

<para>Note that this operates on an environment block separate from the environment block
configured from service manager configuration and environment generators. Whenever a process is
invoked the two blocks are combined (also incorporating any per-service environment variables),
and passed to it. The <command>show-environment</command> verb will show the combination of the
blocks, see above.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><command>unset-environment <replaceable>VARIABLE</replaceable>…</command></term>

<listitem>
<para>Unset one or more systemd manager environment
variables. If only a variable name is specified, it will be
removed regardless of its value. If a variable and a value
are specified, the variable is only removed if it has the
specified value.</para>
<para>Unset one or more systemd manager environment variables. If only a variable name is
specified, it will be removed regardless of its value. If a variable and a value are specified,
the variable is only removed if it has the specified value.</para>

<para>Note that this operates on an environment block separate from the environment block
configured from service manager configuration and environment generators. Whenever a process is
invoked the two blocks are combined (also incorporating any per-service environment variables),
and passed to it. The <command>show-environment</command> verb will show the combination of the
blocks, see above. Note that this means this command cannot be used to unset environment
variables defined in the service manager configuration files or via generators.</para>
</listitem>
</varlistentry>
<varlistentry>
Expand Down
Loading
Loading