chiark / gitweb /
6 years agosystemctl: small cleanup
Zbigniew Jędrzejewski-Szmek [Thu, 24 Apr 2014 15:23:38 +0000 (17:23 +0200)]
systemctl: small cleanup

6 years agoreadahead: add test to show fs_on_ssd() result
Zbigniew Jędrzejewski-Szmek [Wed, 14 May 2014 13:44:19 +0000 (09:44 -0400)]
readahead: add test to show fs_on_ssd() result

6 years agonetworkd, build-sys: spelling fix
Zbigniew Jędrzejewski-Szmek [Sun, 11 May 2014 12:34:26 +0000 (08:34 -0400)]
networkd, build-sys: spelling fix

6 years agoMake sure that keys are properly removed from hashmap
Zbigniew Jędrzejewski-Szmek [Fri, 18 Apr 2014 02:12:25 +0000 (22:12 -0400)]
Make sure that keys are properly removed from hashmap

This is a speculative fix for
Even though I cannot find a code path that where this would be
an issue, for consistency, if we assume that cgroup_path might have
been set before we got to unit_deserialize, we should make sure that
the unit is removed from the hashmap before we free the key. This seems
to be the only place where the key could be prematurely freed, leading to
hashmap corruption.

6 years agoRemove unnecessary casts in printfs
Zbigniew Jędrzejewski-Szmek [Fri, 25 Apr 2014 11:45:15 +0000 (07:45 -0400)]
Remove unnecessary casts in printfs

No functional change expected :)

6 years agoMake systemctl --root look for files in the proper places
Zbigniew Jędrzejewski-Szmek [Thu, 24 Apr 2014 05:44:10 +0000 (01:44 -0400)]
Make systemctl --root look for files in the proper places

Running systemctl enable/disable/set-default/... with the --root
option under strace reveals that it accessed various files and
directories in the main fs, and not underneath the specified root.
This can lead to correct results only when the layout and
configuration in the container are identical, which often is not the
case. Fix this by adding the specified root to all file access

This patch does not handle some corner cases: symlinks which point
outside of the specified root might be interpreted differently than
they would be by the kernel if the specified root was the real root.
But systemctl does not create such symlinks by itself, and I think
this is enough of a corner case not to be worth the additional
complexity of reimplementing link chasing in systemd.

Also, simplify the code in a few places and remove an hypothetical
memory leak on error.

6 years agoshared/install: do not prefix created symlink with root path
Zbigniew Jędrzejewski-Szmek [Mon, 21 Apr 2014 23:17:40 +0000 (19:17 -0400)]
shared/install: do not prefix created symlink with root path

Before: /var/tmp/inst1//etc/systemd/system/ -> /var/tmp/inst1//usr/lib/systemd/system/
After: /var/tmp/inst1/etc/systemd/system/ -> /usr/lib/systemd/system/

6 years agoFix typos in systemctl manpage
Eelco Dolstra [Thu, 15 May 2014 11:11:00 +0000 (13:11 +0200)]
Fix typos in systemctl manpage

6 years agoudev: do not skip the execution of RUN when renaming a network device fails
Kay Sievers [Tue, 13 May 2014 22:34:49 +0000 (00:34 +0200)]
udev: do not skip the execution of RUN when renaming a network device fails

6 years agosd-bus: introduce sd_bus_slot objects encapsulating callbacks or vtables attached...
Lennart Poettering [Wed, 14 May 2014 23:15:30 +0000 (01:15 +0200)]
sd-bus: introduce sd_bus_slot objects encapsulating callbacks or vtables attached to a bus connection

This makes callback behaviour more like sd-event or sd-resolve, and
creates proper object for unregistering callbacks.

Taking the refernce to the slot is optional. If not taken life time of
the slot will be bound to the underlying bus object (or in the case of
an async call until the reply has been recieved).

6 years agosd-event: reorder header slightly
Lennart Poettering [Wed, 14 May 2014 22:44:29 +0000 (00:44 +0200)]
sd-event: reorder header slightly

6 years agohashmap: add hashmap_remove2() to remove item from hashtable and return both value...
Lennart Poettering [Wed, 14 May 2014 22:43:44 +0000 (00:43 +0200)]
hashmap: add hashmap_remove2() to remove item from hashtable and return both value and key

6 years agocore: no need to pass bus object to selinux access check calls anymore
Lennart Poettering [Wed, 14 May 2014 20:44:45 +0000 (22:44 +0200)]
core: no need to pass bus object to selinux access check calls anymore

6 years agobus: add userdata API for bus name tracker objects
Lennart Poettering [Tue, 6 May 2014 17:15:36 +0000 (19:15 +0200)]
bus: add userdata API for bus name tracker objects

6 years agocore: sysvcompat - avoid repeated function call
Tom Gundersen [Wed, 14 May 2014 20:03:14 +0000 (22:03 +0200)]
core: sysvcompat - avoid repeated function call

6 years agocore: sysvcompat - $network should be equivalent to network-online, rather than netwo...
Tom Gundersen [Mon, 12 May 2014 19:26:54 +0000 (21:26 +0200)]
core: sysvcompat - $network should be equivalent to network-online, rather than network target

Most likely the  facility needed is actual connectivity, rather than whether or not the
network managment daemon is running.

We also need to explicitly pull in the, as it is not active by

This means {systemd-networkd,NetworkManager}-wait-online.service, can be enabled by default
as part of, and only delay boot when some service actively pulls it in.

See: <>

Cc: Pavel Šimerda <>
Cc: Michal Sekletar <>
6 years agoshared: add ring buffer
David Herrmann [Tue, 13 May 2014 18:08:18 +0000 (20:08 +0200)]
shared: add ring buffer

New "struct ring" object that implements a basic ring buffer for arbitrary
byte-streams. A new basic runtime test is also added.

This will be needed for our pty helpers for systemd-console and friends.

6 years agoshared: add ALIGN_POWER2 macro
David Herrmann [Tue, 13 May 2014 17:47:58 +0000 (19:47 +0200)]
shared: add ALIGN_POWER2 macro

Sounds easy, turns out to be horrible to implement: ALIGN_POWER2 returns
the next higher power of 2. clz(0) is undefined, same is true for
left-shift-overflows, yey, C rocks!

6 years agoreplace more dup() by F_DUPFD_CLOEXEC
Lennart Poettering [Tue, 13 May 2014 14:40:53 +0000 (16:40 +0200)]
replace more dup() by F_DUPFD_CLOEXEC

6 years agopam_systemd: use F_DUPFD_CLOEXEC when dupping session fds
Lennart Poettering [Tue, 13 May 2014 14:35:34 +0000 (16:35 +0200)]
pam_systemd: use F_DUPFD_CLOEXEC when dupping session fds

6 years agoudev: rename netif - properly break lines in kmsg
Tom Gundersen [Tue, 13 May 2014 10:23:14 +0000 (12:23 +0200)]
udev: rename netif - properly break lines in kmsg


30,997,4553484,-;systemd-udevd[439]: renamed network interface wwan0 to wwp0s20u4i6systemd-udevd[439]: renamed network interface wlan0 to wlp3s0
30,998,1175077801,c;systemd-udevd[2345]: renamed network interface wwan0 to wwp0s20u4i6


30,834,4553484,-;systemd-udevd[439]: renamed network interface wwan0 to wwp0s20u4i6
30,835,4732949,-;systemd-udevd[439]: renamed network interface wlan0 to wlp3s0
30,988,1175077801,-;systemd-udevd[2345]: renamed network interface wwan0 to wwp0s20u4i6

6 years agotimesyncd: start after networkd
Tom Gundersen [Tue, 13 May 2014 07:39:03 +0000 (09:39 +0200)]
timesyncd: start after networkd

This is needed for the network monitor to work (as it requires networkd to set up the correct directories first).

6 years agonetworkd-ipip-tunnel: add support ttl
Susant Sahani [Fri, 2 May 2014 17:59:56 +0000 (23:29 +0530)]
networkd-ipip-tunnel: add support ttl

Add support for ipip tunnel ttl.

6 years agonetworkd: Add todo patch kernel for tunnel module alias
Susant Sahani [Thu, 1 May 2014 10:46:55 +0000 (16:16 +0530)]
networkd: Add todo patch kernel for tunnel module alias

Add to todo :

1. Patch kernel to support module alias for tunnel device
2. Remove libkmod dependency from networkd

6 years agonetworkd: manager - don't leak kmod context
Tom Gundersen [Mon, 12 May 2014 15:11:13 +0000 (17:11 +0200)]
networkd: manager - don't leak kmod context

Also, keep the kmod_new internal to networkd-manager.c

6 years agonetworkd: unit - add cap to load modules
Tom Gundersen [Mon, 12 May 2014 15:37:52 +0000 (17:37 +0200)]
networkd: unit - add cap to load modules

Remember to drop this when the kernel gains autoloading for all netdev kinds.

6 years agonetworkd: introduce ipip tunnel
Susant Sahani [Mon, 12 May 2014 05:18:24 +0000 (10:48 +0530)]
networkd: introduce ipip tunnel

This patch enables basic ipip tunnel support.
It works with kernel module ipip

example conf:

file: ipip.netdev






         - drop unused variable
         - take ref when enslaving]

6 years agojob: always add waiting jobs to run queue during coldplug
Michael Marineau [Mon, 12 May 2014 07:26:16 +0000 (09:26 +0200)]
job: always add waiting jobs to run queue during coldplug

commit 20a83d7bf was not equivalent to the original bug fix proposed by
Michal Sekletar <>. The committed version only added
the job to the run queue if the job had a timeout, which most jobs do
not have. Just re-ordering the code gets us the intended functionality

6 years agonetworkd: get preexiting addresses when a link is added
Tom Gundersen [Sun, 11 May 2014 11:58:18 +0000 (13:58 +0200)]
networkd: get preexiting addresses when a link is added

6 years agonetworkd: listen for address changes
Tom Gundersen [Sat, 10 May 2014 17:39:03 +0000 (19:39 +0200)]
networkd: listen for address changes

This is proof-of-concept only, as we only log the changes but don't do anything
with it.

6 years agortnl: message - fix check for broadcast messages
Tom Gundersen [Sat, 10 May 2014 18:16:10 +0000 (20:16 +0200)]
rtnl: message - fix check for broadcast messages

6 years agortnl: message - read group membership of incoming messages
Tom Gundersen [Sat, 10 May 2014 18:15:52 +0000 (20:15 +0200)]
rtnl: message - read group membership of incoming messages

6 years agortnl: message - verify that we read the pending message size from the kernel
Tom Gundersen [Sat, 10 May 2014 17:55:00 +0000 (19:55 +0200)]
rtnl: message - verify that we read the pending message size from the kernel

Reuse the auth-checking for both the peek and the real read.

6 years agortnl: message - move code around
Tom Gundersen [Sat, 10 May 2014 17:40:11 +0000 (19:40 +0200)]
rtnl: message - move code around

No functional change.

6 years agortnl: change from bitmask to enum for rtnl groups
Tom Gundersen [Sat, 10 May 2014 17:38:32 +0000 (19:38 +0200)]
rtnl: change from bitmask to enum for rtnl groups

The bitmask is deprecated in the kernel, so move to the new interface. At the moment
this does not make a difference for us, but it avoids having to change the API in the future.

6 years agonetworkd: link - redo flag change logging
Tom Gundersen [Sat, 10 May 2014 14:08:03 +0000 (16:08 +0200)]
networkd: link - redo flag change logging

Make the logging less verbose by only printing all the changed flags on one line,
at the same time make it more complete by supporting all flags currently supported
by the kernel.

We still fall back to printing the raw flags in case we get something we do not recognize
This may be useful when running on new kernels.

6 years agosd-rtnl: message - add support for getting prefixlen from address messages
Tom Gundersen [Sat, 10 May 2014 14:06:23 +0000 (16:06 +0200)]
sd-rtnl: message - add support for getting prefixlen from address messages

6 years agonetworkd: network - fix leak
Tom Gundersen [Fri, 9 May 2014 16:05:42 +0000 (18:05 +0200)]
networkd: network - fix leak

6 years agonetworkd: manager - initialize variables
Tom Gundersen [Fri, 9 May 2014 16:02:14 +0000 (18:02 +0200)]
networkd: manager - initialize variables

6 years agonetworkd: netdev - rephrase logging message a bit
Tom Gundersen [Fri, 9 May 2014 16:00:20 +0000 (18:00 +0200)]
networkd: netdev - rephrase logging message a bit

Make it fit with what is logged from the link.

6 years agonetworkd: manager - refactor link tracking a bit
Tom Gundersen [Fri, 9 May 2014 15:59:20 +0000 (17:59 +0200)]
networkd: manager - refactor link tracking a bit

6 years agosystemctl: return an error code is status fails
Zbigniew Jędrzejewski-Szmek [Sat, 10 May 2014 01:44:25 +0000 (03:44 +0200)]
systemctl: return an error code is status fails

This got lost in the refactoring in f74294c1dabb4.

Also make sure that the return code corresponds to the *first* failure,
not the last.

6 years agonetworkd: link - don't log errors when missing routes/addresses are dropped
Tom Gundersen [Fri, 9 May 2014 12:23:17 +0000 (14:23 +0200)]
networkd: link - don't log errors when missing routes/addresses are dropped

We were ignoring the wrong errno.

6 years agonetworkd: link - handle links coming back to life
Tom Gundersen [Fri, 9 May 2014 10:11:15 +0000 (12:11 +0200)]
networkd: link - handle links coming back to life

When enslaving devices, we may receieve DELLINK/NEWLINK for the same ifindex,
let's not be confused by this.

6 years agonetworkd: reorder bonding and bridging
Tom Gundersen [Fri, 9 May 2014 10:20:21 +0000 (12:20 +0200)]
networkd: reorder bonding and bridging

A link should only ever be part of one, but if we accidentally do both, let's do it
in the right order so the failure is more obvious in the logs.

6 years agosd-dhcp-client: improve logging when stopping client
Tom Gundersen [Thu, 8 May 2014 22:26:22 +0000 (00:26 +0200)]
sd-dhcp-client: improve logging when stopping client

'Requested by user' was confusing, just drop it.

6 years agonetworkd: manager - drop links and netdevs when we receive DELLINK
Tom Gundersen [Thu, 8 May 2014 16:55:11 +0000 (18:55 +0200)]
networkd: manager - drop links and netdevs when we receive DELLINK

6 years agonetworkd: netdev - drop if creation fails
Tom Gundersen [Thu, 8 May 2014 19:08:12 +0000 (21:08 +0200)]
networkd: netdev - drop if creation fails

This ensures that all links waiting to be enslaved are notified that the netdev does not exist.

6 years agonetworkd: link - introduce LINGER state and link_drop()
Tom Gundersen [Thu, 8 May 2014 18:50:05 +0000 (20:50 +0200)]
networkd: link - introduce LINGER state and link_drop()

We need the LINGER state in case we still have references to the link after it has been dropped.

6 years agonetworkd: netdev - introduce LINGER state and netdev_drop()
Tom Gundersen [Thu, 8 May 2014 18:42:22 +0000 (20:42 +0200)]
networkd: netdev - introduce LINGER state and netdev_drop()

We need the LINGER state in case we still have references to the netdev after it has been dropped.

6 years agonetworkd: netdev - cancel all callbacks when freeing
Tom Gundersen [Thu, 8 May 2014 18:40:56 +0000 (20:40 +0200)]
networkd: netdev - cancel all callbacks when freeing

This notifies the link that the netdev no longer exists.

6 years agonetworkd: link - take refcounts on links
Tom Gundersen [Thu, 8 May 2014 17:46:06 +0000 (19:46 +0200)]
networkd: link - take refcounts on links

We need to take a refcount on the link whenever we expect a callback. The exceptions
are the ipv4ll/dhcp clients as their lifetimes are guaranteed to be shorter than that
of the link.

6 years agonetworkd: network - do reference counting on netdevs
Tom Gundersen [Thu, 8 May 2014 17:28:17 +0000 (19:28 +0200)]
networkd: network - do reference counting on netdevs

6 years agonetworkd: network - merge all netdev parsing into one function
Tom Gundersen [Thu, 8 May 2014 17:22:53 +0000 (19:22 +0200)]
networkd: network - merge all netdev parsing into one function

6 years agonetworkd: introduce refcounting for Links and NetDevs
Tom Gundersen [Thu, 8 May 2014 16:54:26 +0000 (18:54 +0200)]
networkd: introduce refcounting for Links and NetDevs

6 years agonetworkd: link - clean up state files
Tom Gundersen [Thu, 8 May 2014 16:53:32 +0000 (18:53 +0200)]
networkd: link - clean up state files

Also keep the path to the lease file around rather than regenarating it all the time.

6 years agoman: sd_journal_send does nothing when journald is not available
Zbigniew Jędrzejewski-Szmek [Fri, 9 May 2014 12:39:25 +0000 (08:39 -0400)]
man: sd_journal_send does nothing when journald is not available

6 years agotimesyncd: read global operational state from networkd
Tom Gundersen [Thu, 8 May 2014 15:32:32 +0000 (17:32 +0200)]
timesyncd: read global operational state from networkd

6 years agosd-network: expose global operational state
Tom Gundersen [Thu, 8 May 2014 15:21:37 +0000 (17:21 +0200)]
sd-network: expose global operational state

6 years agotimesyncd: only run when the system has a carrier on a network interface
Tom Gundersen [Wed, 7 May 2014 13:26:47 +0000 (15:26 +0200)]
timesyncd: only run when the system has a carrier on a network interface

As the operational state detection in sd-network is still too primitive, timesyncd
will likely try to connect a bit early, so the first attempt will fail.

6 years agonetworkd-wait-online: flush monitor events after processing
Tom Gundersen [Thu, 8 May 2014 11:14:42 +0000 (13:14 +0200)]
networkd-wait-online: flush monitor events after processing

Otherwise the event will trigger immediately again.

6 years agonetworkd-wait-online: fix false positives when checking if a link is managed by networkd
Tom Gundersen [Thu, 8 May 2014 11:11:23 +0000 (13:11 +0200)]
networkd-wait-online: fix false positives when checking if a link is managed by networkd

6 years agonetworkd: link - operstate is an enum, not a bitmask
Tom Gundersen [Thu, 8 May 2014 10:32:11 +0000 (12:32 +0200)]
networkd: link - operstate is an enum, not a bitmask

6 years agocore: check the right variable for failed open()
Łukasz Stelmach [Thu, 8 May 2014 10:57:26 +0000 (12:57 +0200)]
core: check the right variable for failed open()

6 years agodoc: balance C indirections in function prototypes
Jan Engelhardt [Wed, 7 May 2014 23:28:46 +0000 (01:28 +0200)]
doc: balance C indirections in function prototypes

Shift the asterisks in the documentation's prototypes such that they
are consistent among each other. Use the right side to match what is
used in source code.

Addendum to commit v209~82.

6 years agodoc: write out stdin/stdout file descriptors
Jan Engelhardt [Wed, 7 May 2014 23:28:47 +0000 (01:28 +0200)]
doc: write out stdin/stdout file descriptors

"When refering to code, STDOUT/STDOUT/STDERR are replaced with
stdin/stdout/stderr, and in other places they are replaced with
normal phrases like standard output, etc."

Addendum to commit v209~127.

6 years agodoc: comma placement corrections and word order
Jan Engelhardt [Wed, 7 May 2014 23:28:45 +0000 (01:28 +0200)]
doc: comma placement corrections and word order

Set commas where there should be some.
Some improvements to word order.

6 years agodoc: corrections to words and forms
Jan Engelhardt [Wed, 7 May 2014 23:28:44 +0000 (01:28 +0200)]
doc: corrections to words and forms

This patch exchange words which are inappropriate for a situation,
deletes duplicated words, and adds particles where needed.

6 years agobacklight: handle saved brightness exceeding max brightness
Jani Nikula [Wed, 7 May 2014 09:01:01 +0000 (12:01 +0300)]
backlight: handle saved brightness exceeding max brightness

If too high a brightness value has been saved (e.g. due to kernel
mechanism changing from one kernel version to another, or booting the
userspace on another system), the brightness update fails and the
process exits.

Clamp saved brightness between the policy minimum introduced in

commit 7b909d7407965c03caaba30daae7aee113627a83
Author: Josh Triplett <>
Date:   Tue Mar 11 21:16:33 2014 -0700

    backlight: Avoid restoring brightness to an unreadably dim level

and the absolute maximum.

6 years agopo: add Greek translation
Dimitris Spingos [Wed, 7 May 2014 16:27:02 +0000 (18:27 +0200)]
po: add Greek translation

6 years agonetworkd-wait-online: rely purely on sd-network events and drop rtnl hooks
Tom Gundersen [Wed, 7 May 2014 14:35:52 +0000 (16:35 +0200)]
networkd-wait-online: rely purely on sd-network events and drop rtnl hooks

6 years agonetworkd: link - always maintain link operstate regardless of admin state
Tom Gundersen [Wed, 7 May 2014 14:42:47 +0000 (16:42 +0200)]
networkd: link - always maintain link operstate regardless of admin state

6 years agosd-network: expose both admin and operational state directly
Tom Gundersen [Wed, 7 May 2014 14:35:05 +0000 (16:35 +0200)]
sd-network: expose both admin and operational state directly

Also add a call to check if a link is loopback, as this should commonly be ignored.

6 years agotimesyncd: shorten log message
Kay Sievers [Wed, 7 May 2014 12:45:32 +0000 (14:45 +0200)]
timesyncd: shorten log message

6 years agodoc: adhere to XML syntax
Jan Engelhardt [Sat, 3 May 2014 17:15:27 +0000 (19:15 +0200)]
doc: adhere to XML syntax

6 years agodoc: typographical fine tuning
Jan Engelhardt [Sat, 3 May 2014 17:15:24 +0000 (19:15 +0200)]
doc: typographical fine tuning

6 years agodoc: use non-contracted forms in written documents
Jan Engelhardt [Sat, 3 May 2014 17:15:23 +0000 (19:15 +0200)]
doc: use non-contracted forms in written documents

6 years agosd-dhcp-client: use asynchronous_close()
Tom Gundersen [Tue, 6 May 2014 20:59:22 +0000 (22:59 +0200)]
sd-dhcp-client: use asynchronous_close()

close() is a blocking call, which may slow things down measurably when running many dhcp
clients in the same single-threaded main loop. Let's just use the asynchronous version
instead to avoid the problem.

6 years agosd-dhcp: network - don't leak sockets on failure
Tom Gundersen [Tue, 6 May 2014 20:02:32 +0000 (22:02 +0200)]
sd-dhcp: network - don't leak sockets on failure

Also some general cleanups

6 years agosd-dhcp: network - set TOS on outgoing packets
Tom Gundersen [Tue, 6 May 2014 20:02:14 +0000 (22:02 +0200)]
sd-dhcp: network - set TOS on outgoing packets

This should improve performance on busy wireless networks and the
like. Inspired by a similar change in dnsmasq.

6 years agodhcp-network: don't pass ifindex to bind_udp_socket
Tom Gundersen [Tue, 6 May 2014 19:57:09 +0000 (21:57 +0200)]
dhcp-network: don't pass ifindex to bind_udp_socket

UDP sockets can anyway not be bound to specific netdev's. The packages would have to be filtered
when received instead.

6 years agoman: document sd_event_add_time(3)
Lennart Poettering [Tue, 6 May 2014 16:51:08 +0000 (18:51 +0200)]
man: document sd_event_add_time(3)

6 years agotimesyncd: hook up systemd-timesyncd with systemd-timedated
Lennart Poettering [Tue, 6 May 2014 16:20:49 +0000 (18:20 +0200)]
timesyncd: hook up systemd-timesyncd with systemd-timedated

Later on we will probably remove support for controlling any other NTP
implementations but systemd-timesyncd, but for now, let's keep things

6 years agotimesyncd: never accept NTP time from server that is older than systemd's release...
Lennart Poettering [Tue, 6 May 2014 16:08:04 +0000 (18:08 +0200)]
timesyncd: never accept NTP time from server that is older than systemd's release time

6 years agojournald: remove some dead code
Lennart Poettering [Tue, 6 May 2014 15:03:28 +0000 (17:03 +0200)]
journald: remove some dead code

6 years agoload-fragment: minor cleanup
Lennart Poettering [Tue, 6 May 2014 15:03:09 +0000 (17:03 +0200)]
load-fragment: minor cleanup

6 years agoupdate TODO
Lennart Poettering [Tue, 6 May 2014 15:02:54 +0000 (17:02 +0200)]
update TODO

6 years agotimesyncd: read server settings from a configuration file
Lennart Poettering [Tue, 6 May 2014 15:02:11 +0000 (17:02 +0200)]
timesyncd: read server settings from a configuration file

Also, allow compiling in a default server list via a configure command
line item.

6 years agotimesyncd: when an NTP server doesn't respond, proceed with the next
Lennart Poettering [Tue, 6 May 2014 14:15:02 +0000 (16:15 +0200)]
timesyncd: when an NTP server doesn't respond, proceed with the next

6 years agolist: make LIST_FIND_TAIL work for empty lists
Lennart Poettering [Tue, 6 May 2014 11:07:15 +0000 (13:07 +0200)]
list: make LIST_FIND_TAIL work for empty lists

6 years agoupdate TODO
Lennart Poettering [Tue, 6 May 2014 11:04:29 +0000 (13:04 +0200)]
update TODO

6 years agotimesyncd: keep order of NTP servers
Lennart Poettering [Tue, 6 May 2014 10:34:03 +0000 (12:34 +0200)]
timesyncd: keep order of NTP servers

6 years agoupdate TODO
Lennart Poettering [Tue, 6 May 2014 10:33:53 +0000 (12:33 +0200)]
update TODO

6 years agotimesyncd: make sure to reread /etc/resolv.conf when we try the next NTP server
Lennart Poettering [Tue, 6 May 2014 10:33:43 +0000 (12:33 +0200)]
timesyncd: make sure to reread /etc/resolv.conf when we try the next NTP server

6 years agotimesyncd: accept NTP version 3 responses
Kay Sievers [Tue, 6 May 2014 10:29:20 +0000 (12:29 +0200)]
timesyncd: accept NTP version 3 responses

6 years agotimesyncd: add a more servers by default
Lennart Poettering [Mon, 5 May 2014 23:37:29 +0000 (01:37 +0200)]
timesyncd: add a more servers by default

6 years agotimesyncd: also try next server when sendto() fails
Lennart Poettering [Mon, 5 May 2014 23:37:13 +0000 (01:37 +0200)]
timesyncd: also try next server when sendto() fails

6 years agotimesyncd: don't busy loop when we cannot connect to any servers
Lennart Poettering [Mon, 5 May 2014 23:29:47 +0000 (01:29 +0200)]
timesyncd: don't busy loop when we cannot connect to any servers

6 years agotimesyncd: properly handle multiple configured NTP servers and multiplei IP addresses...
Lennart Poettering [Mon, 5 May 2014 23:17:35 +0000 (01:17 +0200)]
timesyncd: properly handle multiple configured NTP servers and multiplei IP addresses per server name

6 years agotimesyncd: lookup name server via sd-resolve, support IPv6, react to SIGINT/SITERM
Lennart Poettering [Mon, 5 May 2014 21:53:17 +0000 (23:53 +0200)]
timesyncd: lookup name server via sd-resolve, support IPv6, react to SIGINT/SITERM