]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
10 years agosystemctl: when a shutdown is scheduled, always go via logind 1408/head
Lennart Poettering [Tue, 29 Sep 2015 13:09:10 +0000 (15:09 +0200)] 
systemctl: when a shutdown is scheduled, always go via logind

10 years agosystemctl: minor modernizations
Lennart Poettering [Tue, 29 Sep 2015 13:08:33 +0000 (15:08 +0200)] 
systemctl: minor modernizations

10 years agosystemctl: port verb dispatching to generic verbs.[ch] code
Lennart Poettering [Tue, 29 Sep 2015 13:00:07 +0000 (15:00 +0200)] 
systemctl: port verb dispatching to generic verbs.[ch] code

Let's parse the command line the same way in our various tools.

10 years agosystemctl: prefer shutting down through logind even as root
Lennart Poettering [Tue, 29 Sep 2015 12:00:21 +0000 (14:00 +0200)] 
systemctl: prefer shutting down through logind even as root

Otherwise, wall messages will not be generated for root.

10 years agosystemctl: split out code invoking SetExitCode() into function of its own
Lennart Poettering [Tue, 29 Sep 2015 12:00:12 +0000 (14:00 +0200)] 
systemctl: split out code invoking SetExitCode() into function of its own

10 years agopager: minor modernizations
Lennart Poettering [Tue, 29 Sep 2015 11:59:32 +0000 (13:59 +0200)] 
pager: minor modernizations

10 years agosystemctl: don't assert on the arguments array unnecessarily
Lennart Poettering [Tue, 29 Sep 2015 11:38:36 +0000 (13:38 +0200)] 
systemctl: don't assert on the arguments array unnecessarily

In most verbs it's fine to treat the arguments array being NULL is empty
array, hence do so.

10 years agosystemctl: make use of strv_skip() where appropriate
Lennart Poettering [Tue, 29 Sep 2015 11:36:07 +0000 (13:36 +0200)] 
systemctl: make use of strv_skip() where appropriate

10 years agosystemctl: make use of log_error_errno() where we can
Lennart Poettering [Tue, 29 Sep 2015 11:35:27 +0000 (13:35 +0200)] 
systemctl: make use of log_error_errno() where we can

Also adds a couple of "return" statements, where they are missing.

10 years agosystemctl: rework how we connect to busses
Lennart Poettering [Tue, 29 Sep 2015 11:13:50 +0000 (13:13 +0200)] 
systemctl: rework how we connect to busses

Sometimes we have to connect to the system manager directly (early boot,
initrd, late boot, ...), sometimes through the system bus (unprivileged,
remote, logind, ...). Instead of guessing in advance, which kind of
connection we require (and sometimes guessing incorrectly), let's make
sure each time we need  bus connection we request the right bus
explicitly.

This way, we set up exactly the bus connections require, never guess
incorrectly, and do so only immediately when necessary.

As effect this reworks avoid_bus() into install_client_side(), since
that's all it determines now: whether to install unit files client-side
or server-side (i.e. in PID 1).

10 years agocore: add a "Requires=" dependency between units and the slices they are located in
Lennart Poettering [Tue, 29 Sep 2015 11:06:28 +0000 (13:06 +0200)] 
core: add a "Requires=" dependency between units and the slices they are located in

We place the processes we fork off in the cgroup anyway, and we probably
shouldn't be able to get that far if we couldn't set up the slice due to
resource problems or unmet conditions. Hence upgrade the dependency
between units and the slices they are located in from Wants= to
Requires=.

10 years agoupdate-utmp: flush and close the bus used for connections after use
Lennart Poettering [Thu, 24 Sep 2015 11:34:08 +0000 (13:34 +0200)] 
update-utmp: flush and close the bus used for connections after use

10 years agoupdate-utmp: minor modernizations
Lennart Poettering [Thu, 24 Sep 2015 11:33:55 +0000 (13:33 +0200)] 
update-utmp: minor modernizations

10 years agobus-util: rename bus_open_transport() to bus_connect_transport()
Lennart Poettering [Thu, 24 Sep 2015 11:30:10 +0000 (13:30 +0200)] 
bus-util: rename bus_open_transport() to bus_connect_transport()

In sd-bus, the sd_bus_open_xyz() family of calls allocates a new bus,
while sd_bus_default_xyz() family tries to reuse the thread's default
bus. bus_open_transport() sometimes internally uses the former,
sometimes the latter family, but suggests it only calls the former via
its name. Hence, let's avoid this confusion, and generically rename the
call to bus_connect_transport().

Similar for all related calls.

And while we are at it, also change cgls + cgtop to do direct systemd
connections where possible, since all they do is talk to systemd itself.

10 years agopager: minor simplification
Lennart Poettering [Thu, 24 Sep 2015 10:42:30 +0000 (12:42 +0200)] 
pager: minor simplification

10 years agosystemctl: rename parse_time_spec() to parse_shutdown_time_spec()
Lennart Poettering [Thu, 24 Sep 2015 10:35:02 +0000 (12:35 +0200)] 
systemctl: rename parse_time_spec() to parse_shutdown_time_spec()

Let's clarify that this function is specific to shutdown time
specifications, nothing else.

10 years agosystemctl: conditionalize /dev/initctl fallback on HAVE_SYSV_COMPAT
Lennart Poettering [Thu, 24 Sep 2015 10:33:07 +0000 (12:33 +0200)] 
systemctl: conditionalize /dev/initctl fallback on HAVE_SYSV_COMPAT

10 years agosystemctl: allocate arg_wall only on the heap
Lennart Poettering [Thu, 24 Sep 2015 10:30:05 +0000 (12:30 +0200)] 
systemctl: allocate arg_wall only on the heap

Previously, we'd allocate it sometimes from the heap, but otherwise let
it point directly int argv[]. Let's clean this up, so that we know
exactly how to release its resources, and do so at the end.

10 years agosystemctl: add 'const' where appropriate
Lennart Poettering [Thu, 24 Sep 2015 10:28:07 +0000 (12:28 +0200)] 
systemctl: add 'const' where appropriate

10 years agosystemctl: remove client-side wall message support
Lennart Poettering [Thu, 24 Sep 2015 10:24:35 +0000 (12:24 +0200)] 
systemctl: remove client-side wall message support

logind sends out wall messages now, let's remove this from the systemctl
client side hence. If people build systemd without logind support they
won't get wall messages now, but that's OK.

10 years agosystemctl: move strv_skip_first() out of systemctl.c
Lennart Poettering [Thu, 24 Sep 2015 10:23:21 +0000 (12:23 +0200)] 
systemctl: move strv_skip_first() out of systemctl.c

Make it generic, call it strv_skip() and move it to strv.[ch]

10 years agosystemctl: split out code that schedules shutdowsn into its own function
Lennart Poettering [Thu, 24 Sep 2015 10:08:23 +0000 (12:08 +0200)] 
systemctl: split out code that schedules shutdowsn into its own function

10 years agosystemctl: rename all logind-specific functions to logind_xyz()
Lennart Poettering [Thu, 24 Sep 2015 10:07:31 +0000 (12:07 +0200)] 
systemctl: rename all logind-specific functions to logind_xyz()

10 years agosystemctl: move shutdown cancelling code into its own function
Lennart Poettering [Thu, 24 Sep 2015 09:56:04 +0000 (11:56 +0200)] 
systemctl: move shutdown cancelling code into its own function

Let's make sure the main switch statement only invokes functions, but
doesn't do anything real on its own.

10 years agosystemctl: don't special case ACTION_RUNLEVEL anymore
Lennart Poettering [Thu, 24 Sep 2015 09:54:15 +0000 (11:54 +0200)] 
systemctl: don't special case ACTION_RUNLEVEL anymore

Let's move its dispatching to the main switch statement.

10 years agosystemctl: introduce a single function to set the wall message
Lennart Poettering [Thu, 24 Sep 2015 09:51:51 +0000 (11:51 +0200)] 
systemctl: introduce a single function to set the wall message

Let's not have the same code three times, but reduce it to one function.

10 years agocore: rework crash handling
Lennart Poettering [Wed, 23 Sep 2015 21:13:06 +0000 (23:13 +0200)] 
core: rework crash handling

This introduces a new systemd.crash_reboot=1 kernel command line option
that triggers a reboot after crashing.

This also cleans up crash VT handling. Specifically, it cleans up the
configuration setting, to be between 1..63 or a boolean. This is to
replace the previous logic where "-1" meant disabled. We continue to
accept that setting, but only document the boolean syntax instead.

This also brings the documentation of the default settings in sync with
what actually happens.

The CrashChVT= configuration file setting is renamed to CrashChangeVT=,
following our usual logic of not abbreviating unnecessarily. The old
setting stays support for compat reasons.

Fixes #1300

10 years agosocket: rename ffs_xyz to usbffs_xyz
Lennart Poettering [Wed, 23 Sep 2015 18:01:54 +0000 (20:01 +0200)] 
socket: rename ffs_xyz to usbffs_xyz

The relation to USB should really be clearer.

10 years agocore: turn a large if statement into a switch
Lennart Poettering [Wed, 23 Sep 2015 17:58:59 +0000 (19:58 +0200)] 
core: turn a large if statement into a switch

10 years agoselinux: add _cleanup_ concepts to SELinux label allocation
Lennart Poettering [Wed, 23 Sep 2015 17:55:49 +0000 (19:55 +0200)] 
selinux: add _cleanup_ concepts to SELinux label allocation

10 years agocore: simplify how we create socket fds
Lennart Poettering [Wed, 23 Sep 2015 17:52:23 +0000 (19:52 +0200)] 
core: simplify how we create socket fds

Let's always return the allocated fds as return values where possible,
and make more use of _cleanup_close_

10 years agocore: small error message wording improvements
Lennart Poettering [Wed, 23 Sep 2015 17:51:45 +0000 (19:51 +0200)] 
core: small error message wording improvements

10 years agocore: properly use the ExitCode bus property when exiting is --user instance
Lennart Poettering [Wed, 23 Sep 2015 17:50:10 +0000 (19:50 +0200)] 
core: properly use the ExitCode bus property when exiting is --user instance

10 years agocore: allow setting WorkingDirectory= to the special value ~
Lennart Poettering [Wed, 23 Sep 2015 17:46:23 +0000 (19:46 +0200)] 
core: allow setting WorkingDirectory= to the special value ~

If set to ~ the working directory is set to the home directory of the
user configured in User=.

This change also exposes the existing switch for the working directory
that allowed making missing working directories non-fatal.

This also changes "machinectl shell" to make use of this to ensure that
the invoked shell is by default in the user's home directory.

Fixes #1268.

10 years agoman: also properly indent our examples to 8ch
Lennart Poettering [Wed, 23 Sep 2015 17:40:51 +0000 (19:40 +0200)] 
man: also properly indent our examples to 8ch

10 years agodetect-virt: various modernizations
Lennart Poettering [Wed, 23 Sep 2015 17:40:13 +0000 (19:40 +0200)] 
detect-virt: various modernizations

10 years agojournal-cat: various modernizations
Lennart Poettering [Wed, 23 Sep 2015 17:39:51 +0000 (19:39 +0200)] 
journal-cat: various modernizations

10 years agojournal-cat: return a correct error, not -1
Lennart Poettering [Wed, 23 Sep 2015 17:39:30 +0000 (19:39 +0200)] 
journal-cat: return a correct error, not -1

10 years agomachine-id-commit: merge machine-id-commit functionality into machine-id-setup
Lennart Poettering [Wed, 23 Sep 2015 17:36:21 +0000 (19:36 +0200)] 
machine-id-commit: merge machine-id-commit functionality into machine-id-setup

And remove machine-id-commit as separate binary.

There's really no point in keeping this separate, as the sources are
pretty much identical, and have pretty identical interfaces. Let's unify
this in one binary.

Given that machine-id-commit was a private binary of systemd (shipped in
/usr/lib/) removing the tool is not an API break.

While we are at it, improve the documentation of the command substantially.

10 years agounits: increase watchdog timeout to 3min for all our services
Lennart Poettering [Wed, 23 Sep 2015 15:27:39 +0000 (17:27 +0200)] 
units: increase watchdog timeout to 3min for all our services

Apparently, disk IO issues are more frequent than we hope, and 1min
waiting for disk IO happens, so let's increase the watchdog timeout a
bit, for all our services.

See #1353 for an example where this triggers.

10 years agosd-daemon: Simplify sd_booted() check
Lennart Poettering [Wed, 23 Sep 2015 15:23:18 +0000 (17:23 +0200)] 
sd-daemon: Simplify sd_booted() check

We can just use access() to check whether /run/system/system/ is a
directory, no need to involve stat(). The trick is to suffix the path
name with a dash.

10 years agosystemctl: make "systemctl is-system-running" return "offline" if we are not booted...
Lennart Poettering [Wed, 23 Sep 2015 15:04:43 +0000 (17:04 +0200)] 
systemctl: make "systemctl is-system-running" return "offline" if we are not booted with systemd

This sounds like the better place to expose this than in "systemd-notify
--booted".

Also document the so far undocumented "unknown" state the command might
return. And rearrange the table of states documented to be more like the
one for "is-running".

Also, don't document the precise exit code of this function, just say
errors are reported != 0 or > 0...

10 years agotty-ask-password: minor modernizations
Lennart Poettering [Wed, 23 Sep 2015 15:04:15 +0000 (17:04 +0200)] 
tty-ask-password: minor modernizations

10 years agoutil: introduce common version() implementation and use it everywhere
Lennart Poettering [Wed, 23 Sep 2015 01:01:06 +0000 (03:01 +0200)] 
util: introduce common version() implementation and use it everywhere

This also allows us to drop build.h from a ton of files, hence do so.
Since we touched the #includes of those files, let's order them properly
according to CODING_STYLE.

10 years agoutil: unify implementation of NOP signal handler
Lennart Poettering [Tue, 22 Sep 2015 23:32:44 +0000 (01:32 +0200)] 
util: unify implementation of NOP signal handler

This is highly complex code after all, we really should make sure to
only keep one implementation of this extremely difficult function
around.

10 years agocore: remove set_default_unit()
Lennart Poettering [Tue, 22 Sep 2015 23:14:34 +0000 (01:14 +0200)] 
core: remove set_default_unit()

The new free_and_strdup() call does pretty much the same thing these
days, no need to keep a private limited purpose version around.

10 years agocore: modernize prepare_reexecute()
Lennart Poettering [Tue, 22 Sep 2015 23:11:30 +0000 (01:11 +0200)] 
core: modernize prepare_reexecute()

10 years agocore: exit early if we hit OOM
Lennart Poettering [Tue, 22 Sep 2015 23:11:08 +0000 (01:11 +0200)] 
core: exit early if we hit OOM

10 years agocore: use %m rather than strerror() where we can
Lennart Poettering [Tue, 22 Sep 2015 23:10:47 +0000 (01:10 +0200)] 
core: use %m rather than strerror() where we can

10 years agomain: minor clean-ups
Lennart Poettering [Tue, 22 Sep 2015 23:06:56 +0000 (01:06 +0200)] 
main: minor clean-ups

Add (void) casting for a couple of functions where we knowingly ignore
the returning error code.

Use EXIT_FAILURE where appropriate.

Try to initialize structures at declaration time, or at once.

10 years agotree-wide: take benefit of the fact that fdset_free() returns NULL
Lennart Poettering [Tue, 22 Sep 2015 23:05:55 +0000 (01:05 +0200)] 
tree-wide: take benefit of the fact that fdset_free() returns NULL

10 years agocore: order #includes in main.c
Lennart Poettering [Tue, 22 Sep 2015 23:04:46 +0000 (01:04 +0200)] 
core: order #includes in main.c

10 years agostrv: add strv_free_free() to strv.c and make use of it
Lennart Poettering [Tue, 22 Sep 2015 23:01:26 +0000 (01:01 +0200)] 
strv: add strv_free_free() to strv.c and make use of it

Let's teach it a new trick, and make it return NULL.

10 years agotree-wide: port more code to use send_one_fd() and receive_one_fd()
Lennart Poettering [Tue, 22 Sep 2015 23:00:04 +0000 (01:00 +0200)] 
tree-wide: port more code to use send_one_fd() and receive_one_fd()

Also, make it slightly more powerful, by accepting a flags argument, and
make it safe for handling if more than one cmsg attribute happens to be
attached.

10 years agocore: sort includes of manager.[ch] according to CODING_STYLE
Lennart Poettering [Tue, 22 Sep 2015 21:24:07 +0000 (23:24 +0200)] 
core: sort includes of manager.[ch] according to CODING_STYLE

10 years agoMerge pull request #1403 from dvdhrm/prioq-comment
Michal Schmidt [Tue, 29 Sep 2015 12:33:47 +0000 (14:33 +0200)] 
Merge pull request #1403 from dvdhrm/prioq-comment

prioq: add introduction comment

10 years agoprioq: add introduction comment 1403/head
David Herrmann [Tue, 29 Sep 2015 10:48:14 +0000 (12:48 +0200)] 
prioq: add introduction comment

Add comment to prioq.c explaining what it does. And more importantly,
mention that we implement a Heap. It's more than annoying having to
figure out what the code actually does, without ever mentioning the word
'heap'.

10 years agoMerge pull request #1396 from phomes/va-start
David Herrmann [Mon, 28 Sep 2015 08:57:07 +0000 (10:57 +0200)] 
Merge pull request #1396 from phomes/va-start

sd-bus: va_start should use the last named parameter

10 years agosd-bus: va_start should use the last named parameter 1396/head
Thomas Hindoe Paaboel Andersen [Sun, 27 Sep 2015 21:03:40 +0000 (23:03 +0200)] 
sd-bus: va_start should use the last named parameter

10 years agoMerge pull request #1392 from dvdhrm/bus-format2
Lennart Poettering [Sun, 27 Sep 2015 13:04:12 +0000 (15:04 +0200)] 
Merge pull request #1392 from dvdhrm/bus-format2

sd-bus: add sd_bus_path_{encode,decode}_many() (v2)

10 years agoMerge pull request #1373 from pfl/dhcp6_opportunistic_configuration
Martin Pitt [Sun, 27 Sep 2015 07:42:06 +0000 (09:42 +0200)] 
Merge pull request #1373 from pfl/dhcp6_opportunistic_configuration

networkd: Be opportunistic when declaring link configured

10 years agosd-bus: add sd_bus_path_{encode,decode}_many() 1392/head
David Herrmann [Fri, 25 Sep 2015 17:05:23 +0000 (19:05 +0200)] 
sd-bus: add sd_bus_path_{encode,decode}_many()

This introduces two new helpers alongside sd_bus_path_{encode,decode}(),
which work similarly to their counterparts, but accept a format-string as
input. This allows encoding and decoding multiple labels of a format
string at the same time.

10 years agoMerge pull request #1391 from evverx/nspawn-completion
Daniel Mack [Sat, 26 Sep 2015 07:50:00 +0000 (09:50 +0200)] 
Merge pull request #1391 from evverx/nspawn-completion

shell-completion: nspawn: add missing values for --link-journal

10 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Sat, 26 Sep 2015 01:30:35 +0000 (03:30 +0200)] 
hwdb: Update database of Bluetooth company identifiers

10 years agoshell-completion: nspawn: add missing values for --link-journal 1391/head
Evgeny Vereshchagin [Sat, 26 Sep 2015 00:59:56 +0000 (03:59 +0300)] 
shell-completion: nspawn: add missing values for --link-journal

10 years agoupdate NEWS
Daniel Mack [Fri, 25 Sep 2015 15:37:27 +0000 (17:37 +0200)] 
update NEWS

10 years agoMerge pull request #1388 from darkcircle/ko-translation
Daniel Mack [Fri, 25 Sep 2015 15:36:48 +0000 (17:36 +0200)] 
Merge pull request #1388 from darkcircle/ko-translation

add a new Korean translation

10 years agoadd a new Korean translation 1388/head
Seong-ho Cho [Fri, 25 Sep 2015 14:56:14 +0000 (23:56 +0900)] 
add a new Korean translation

10 years agoMerge pull request #1382 from filbranden/cpuaffinity2
Daniel Mack [Fri, 25 Sep 2015 11:27:11 +0000 (13:27 +0200)] 
Merge pull request #1382 from filbranden/cpuaffinity2

Use parse_cpu_set in CPUAffinity support (for units)

10 years agoMerge pull request #1380 from evverx/journalctl-bash-completion
Daniel Mack [Fri, 25 Sep 2015 10:39:40 +0000 (12:39 +0200)] 
Merge pull request #1380 from evverx/journalctl-bash-completion

Update journalctl bash completion

10 years agoload-fragment: Use parse_cpu_set in CPUAffinity support 1382/head
Filipe Brandenburger [Fri, 25 Sep 2015 02:25:20 +0000 (19:25 -0700)] 
load-fragment: Use parse_cpu_set in CPUAffinity support

Tested with a dummy service running 'sleep', modifying its CPUAffinity,
restarting the service and checking the ^Cpus_allowed entries in the
/proc/PID/status file.

10 years agoutil: Add test for parse_cpu_set 1381/head
Filipe Brandenburger [Fri, 25 Sep 2015 01:48:21 +0000 (18:48 -0700)] 
util: Add test for parse_cpu_set

10 years agoshell-completion: journalctl: add missing options 1380/head
Evgeny Vereshchagin [Fri, 25 Sep 2015 01:24:29 +0000 (04:24 +0300)] 
shell-completion: journalctl: add missing options

10 years agoutil: refactor cpu_set parsing into its own function
Filipe Brandenburger [Fri, 25 Sep 2015 00:58:49 +0000 (17:58 -0700)] 
util: refactor cpu_set parsing into its own function

Use the new code in config_parse_cpu_affinity2.

Tested by modifying CPUAffinity=... setting in /etc/systemd/system.conf
and reloading the daemon, then checking ^Cpus_allowed in /proc/1/status
to confirm the correct CPU mask is in place.

10 years agoshell-completion: journalctl: add missing fields
Evgeny Vereshchagin [Fri, 25 Sep 2015 00:52:07 +0000 (03:52 +0300)] 
shell-completion: journalctl: add missing fields

10 years agoMerge pull request #1377 from evverx/man-systemd-slice
Lennart Poettering [Thu, 24 Sep 2015 15:17:39 +0000 (17:17 +0200)] 
Merge pull request #1377 from evverx/man-systemd-slice

man: systemd.slice: add link to cgroups api docs

10 years agoMerge pull request #1376 from dvdhrm/hostnamed-argc
Lennart Poettering [Thu, 24 Sep 2015 15:14:57 +0000 (17:14 +0200)] 
Merge pull request #1376 from dvdhrm/hostnamed-argc

hostnamed: drop redundant code

10 years agohostnamed: drop redundant code 1376/head
David Herrmann [Thu, 24 Sep 2015 14:50:28 +0000 (16:50 +0200)] 
hostnamed: drop redundant code

Doing argc checks once is enough enough enough enough.

10 years agoman: systemd.slice: add link to cgroups api docs 1377/head
Evgeny Vereshchagin [Thu, 24 Sep 2015 14:37:17 +0000 (14:37 +0000)] 
man: systemd.slice: add link to cgroups api docs

systemd.scope and systemd.resource-control contain that link.
systemd.slice should contain it too.

10 years agoMerge pull request #1374 from olof/autoconf_gcrypt_dep
Lennart Poettering [Thu, 24 Sep 2015 14:31:49 +0000 (16:31 +0200)] 
Merge pull request #1374 from olof/autoconf_gcrypt_dep

build-sys: only use AM_PATH_LIBGCRYPT macro if it exists

10 years agoMerge pull request #1370 from systemd-mailing-devs/1443091642-5853-1-git-send-email...
Daniel Mack [Thu, 24 Sep 2015 13:04:13 +0000 (15:04 +0200)] 
Merge pull request #1370 from systemd-mailing-devs/1443091642-5853-1-git-send-email-brueckner@linux.vnet.ibm.com

s390: add personality support

10 years agobuild-sys: only use AM_PATH_LIBGCRYPT macro if it exists 1374/head
Olof Johansson [Thu, 17 Sep 2015 08:42:55 +0000 (10:42 +0200)] 
build-sys: only use AM_PATH_LIBGCRYPT macro if it exists

If gcrypt's m4 macro files aren't installed, with this change, gcrypt
will be disabled --- unless gcrypt support was explicitly requested by
passing --enable-gcrypt to configure, in which case it will fail.
Without this change, autoconf would fail either way with not being able
to resolve AM_PATH_LIBGCRYPT.

10 years agonetworkd: Be opportunistic when declaring link configured 1373/head
Patrik Flykt [Thu, 24 Sep 2015 12:04:17 +0000 (15:04 +0300)] 
networkd: Be opportunistic when declaring link configured

The DHCP variable in the [Network] section of the network configuration
file moves the link to the configured state according to the following:

DHCP=yes   Link is configured when either DHCPv4 or DHCPv6 succeed
DHCP=ipv4  Link is configured only when DHCPv4 succeeds
DHCP=ipv6  Link is configured only when DHCPv6 succeeds
DHCP=no    Neither DHCPv4 or DHCPv6 is attempted

Reported by Martin Pitt.

Fixes https://github.com/systemd/systemd/issues/1368

10 years agos390: add personality support 1370/head
Hendrik Brueckner [Thu, 24 Sep 2015 10:47:22 +0000 (12:47 +0200)] 
s390: add personality support

Introduce personality support for Linux on z Systems to run
particular services with a 64-bit or 31-bit personality.

10 years agoMerge pull request #1366 from pocek/sd-event-fixes
Lennart Poettering [Thu, 24 Sep 2015 09:27:08 +0000 (11:27 +0200)] 
Merge pull request #1366 from pocek/sd-event-fixes

sd-event: fix prepare priority queue comparison function

10 years agoMerge pull request #1332 from thom311/master 1367/head
Tom Gundersen [Wed, 23 Sep 2015 22:59:15 +0000 (00:59 +0200)] 
Merge pull request #1332 from thom311/master

sd-dhcp6: ensure canceling lease timers and refactor setting lease

10 years agoMerge pull request #1356 from pfl/dhcp6_suspend
Tom Gundersen [Wed, 23 Sep 2015 22:55:49 +0000 (00:55 +0200)] 
Merge pull request #1356 from pfl/dhcp6_suspend

DHCPv6 suspend fixes

10 years agosd-event: fix prepare priority queue comparison function 1366/head
Krzysztof Kotlenga [Wed, 23 Sep 2015 22:34:51 +0000 (00:34 +0200)] 
sd-event: fix prepare priority queue comparison function

Otherwise a disabled event source can get swapped with an enabled one
and cause a severe sd-event malfunction.

http://lists.freedesktop.org/archives/systemd-devel/2015-September/034356.html

10 years agoMerge pull request #1363 from msekletar/ldconfig
Lennart Poettering [Wed, 23 Sep 2015 19:10:15 +0000 (21:10 +0200)] 
Merge pull request #1363 from msekletar/ldconfig

units: run ldconfig also when cache is unpopulated

10 years agoMerge pull request #1365 from floppym/kcmp
Lennart Poettering [Wed, 23 Sep 2015 19:09:38 +0000 (21:09 +0200)] 
Merge pull request #1365 from floppym/kcmp

Add fallback for kcmp() in case __NR_kcmp is undefined

10 years agoAdd fallback for kcmp() in case __NR_kcmp is undefined 1365/head
Mike Gilbert [Mon, 14 Sep 2015 22:55:09 +0000 (18:55 -0400)] 
Add fallback for kcmp() in case __NR_kcmp is undefined

IA64 is missing this syscall as of linux-4.2.
This works around it until the necessary kernel patch gets merged.

10 years agounits: run ldconfig also when cache is unpopulated 1363/head
Michal Sekletar [Wed, 23 Sep 2015 17:23:21 +0000 (19:23 +0200)] 
units: run ldconfig also when cache is unpopulated

10 years agoMerge pull request #1349 from dvdhrm/sync-pam
Lennart Poettering [Wed, 23 Sep 2015 16:42:41 +0000 (18:42 +0200)] 
Merge pull request #1349 from dvdhrm/sync-pam

core: make setup_pam() synchronous

10 years agoMerge pull request #1358 from jengelh/master
Daniel Mack [Wed, 23 Sep 2015 15:21:13 +0000 (17:21 +0200)] 
Merge pull request #1358 from jengelh/master

build: remove AC_FUNC_MALLOC

10 years agoMerge pull request #1357 from again4you/devel/fix_smack_sd_pam_#2
Lennart Poettering [Wed, 23 Sep 2015 14:44:21 +0000 (16:44 +0200)] 
Merge pull request #1357 from again4you/devel/fix_smack_sd_pam_#2

exec: fix the wrong SMACK labeling of (sd-pam) daemon v3

10 years agoMerge pull request #1355 from evverx/systemd-run-man
Lennart Poettering [Wed, 23 Sep 2015 14:43:15 +0000 (16:43 +0200)] 
Merge pull request #1355 from evverx/systemd-run-man

man: systemd-run: run bash with --send-sighup

10 years agoMerge pull request #1345 from georgmu/fix_accept_ra
Lennart Poettering [Wed, 23 Sep 2015 14:42:18 +0000 (16:42 +0200)] 
Merge pull request #1345 from georgmu/fix_accept_ra

Set accept_ra to "2" if enabled in config

10 years agobuild: remove AC_FUNC_MALLOC 1358/head
Jan Engelhardt [Wed, 23 Sep 2015 14:25:37 +0000 (16:25 +0200)] 
build: remove AC_FUNC_MALLOC

What is the rationale to have AC_FUNC_MALLOC? It does not actually
abort the configure run if an "unsuitable" malloc was found, and
instead just replaces malloc by rpl_malloc, for which systemd however
has no definition, either.

Remove the call.

10 years agoman: systemd-run: run bash with --send-sighup 1355/head
Evgeny Vereshchagin [Wed, 23 Sep 2015 12:38:30 +0000 (12:38 +0000)] 
man: systemd-run: run bash with --send-sighup

When bash is interactive it ignores SIGTERM.
SIGHUP indicates to bash that the connection has been
severed. `systemctl stop` doesn't wait TimeoutStopSec secs.

10 years agomising: add __NR_memfd_create syscall number for s390
Hendrik Brueckner [Wed, 23 Sep 2015 11:42:56 +0000 (13:42 +0200)] 
mising: add __NR_memfd_create syscall number for s390