David Herrmann
8a9d23e446
prioq: never shuffle identical entries
...
Skip shuffling identical entries in shuffle_up(), just like we already do
in shuffle_down().
2015-09-29 20:55:24 +02:00
Branislav Blaskovic
f823da67a6
journal-remote: typo in log_error when no sources are specified
2015-09-29 14:43:40 +02:00
Michal Schmidt
9d66db1d03
Merge pull request #1403 from dvdhrm/prioq-comment
...
prioq: add introduction comment
2015-09-29 14:33:47 +02:00
David Herrmann
f36f8f7891
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'.
2015-09-29 12:49:25 +02:00
Zbigniew Jędrzejewski-Szmek
4ed2f1b1f1
bash-completion: remove one more sort and sub-shell
...
{} is preferred to (), because the first is just grouping, while the
second invokes a separate shell.
2015-09-28 17:23:53 -04:00
Zbigniew Jędrzejewski-Szmek
db79008804
bash-completion: use builtins when generating list
2015-09-28 15:42:27 -04:00
Zbigniew Jędrzejewski-Szmek
b00c1cf9d6
bash-completion: use builtins when generating list
...
awk is an external program, and it is better to stick to shell built-ins.
Also, even with external awk, sort -u is redundant, because the shell does
this on its own.
2015-09-28 15:23:04 -04:00
Zbigniew Jędrzejewski-Szmek
840b2c0e77
shell-completion: use systemctl --state=help
...
This way completion lists should stay up to date.
Also use systemctl -t help to list types in zsh, as was already
done in bash.
2015-09-28 15:10:03 -04:00
Zbigniew Jędrzejewski-Szmek
7e55de3b96
Move all unit states to basic/ and extend systemctl --state=help
2015-09-28 15:09:34 -04:00
Zbigniew Jędrzejewski-Szmek
e16972e626
systemctl: add --state=help
...
This mirrors --type=help and simplifies completion scripts.
The array of states is dense, so the is no need to check if the string is null.
2015-09-28 15:09:34 -04:00
Zbigniew Jędrzejewski-Szmek
978c8b6347
Move UnitActiveState to basic/
...
Preparation to allow systemctl to query the list of unit states.
2015-09-28 15:09:34 -04:00
David Herrmann
9dc5db34ad
Merge pull request #1396 from phomes/va-start
...
sd-bus: va_start should use the last named parameter
2015-09-28 10:57:07 +02:00
Evgeny Vereshchagin
c214ee6f15
man: journald: add commands for /var/log/journal creating
...
See https://github.com/systemd/systemd/issues/1397
2015-09-28 01:12:13 +00:00
Thomas Hindoe Paaboel Andersen
19932084d0
sd-bus: va_start should use the last named parameter
2015-09-27 23:11:31 +02:00
Łukasz Stelmach
48db40b323
fsck: start reboot.target irreversibly
...
In some situations rebooting after fixing rootfs fails because
the job for reboot.target gets canceled. To avoid this
the "mode" parameter of the StartUnitReplace() call needs to be
set to "replace-irreversibly".
2015-09-27 22:17:27 +02:00
Lennart Poettering
8e82b3a271
Merge pull request #1392 from dvdhrm/bus-format2
...
sd-bus: add sd_bus_path_{encode,decode}_many() (v2)
2015-09-27 15:04:12 +02:00
Martin Pitt
ad1dc5ca46
Merge pull request #1373 from pfl/dhcp6_opportunistic_configuration
...
networkd: Be opportunistic when declaring link configured
2015-09-27 09:42:06 +02:00
David Herrmann
dfb815c36d
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.
2015-09-26 16:57:23 +02:00
Daniel Mack
049077a789
Merge pull request #1391 from evverx/nspawn-completion
...
shell-completion: nspawn: add missing values for --link-journal
2015-09-26 09:50:00 +02:00
Marcel Holtmann
60f6f2f92f
hwdb: Update database of Bluetooth company identifiers
2015-09-26 03:30:35 +02:00
Evgeny Vereshchagin
043a090d7d
shell-completion: nspawn: add missing values for --link-journal
2015-09-26 04:10:08 +03:00
Daniel Mack
0879a8d316
update NEWS
2015-09-25 17:37:27 +02:00
Daniel Mack
374e55b727
Merge pull request #1388 from darkcircle/ko-translation
...
add a new Korean translation
2015-09-25 17:36:48 +02:00
Seong-ho Cho
789cbe8fb8
add a new Korean translation
2015-09-25 23:56:14 +09:00
Daniel Mack
2c995032e8
Merge pull request #1382 from filbranden/cpuaffinity2
...
Use parse_cpu_set in CPUAffinity support (for units)
2015-09-25 13:27:11 +02:00
Daniel Mack
54e56acafe
Merge pull request #1380 from evverx/journalctl-bash-completion
...
Update journalctl bash completion
2015-09-25 12:39:40 +02:00
Filipe Brandenburger
9d5ca7f882
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.
2015-09-24 19:31:28 -07:00
Filipe Brandenburger
5f05235f13
util: Add test for parse_cpu_set
2015-09-24 18:48:21 -07:00
Evgeny Vereshchagin
6409d3af08
shell-completion: journalctl: add missing options
2015-09-25 04:24:29 +03:00
Filipe Brandenburger
f5c72b739e
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.
2015-09-24 18:01:36 -07:00
Evgeny Vereshchagin
023dd03a42
shell-completion: journalctl: add missing fields
2015-09-25 03:52:07 +03:00
Lennart Poettering
eb1d47c06d
Merge pull request #1377 from evverx/man-systemd-slice
...
man: systemd.slice: add link to cgroups api docs
2015-09-24 17:17:39 +02:00
Lennart Poettering
681de8128d
Merge pull request #1376 from dvdhrm/hostnamed-argc
...
hostnamed: drop redundant code
2015-09-24 17:14:57 +02:00
David Herrmann
76c73487d0
hostnamed: drop redundant code
...
Doing argc checks once is enough enough enough enough.
2015-09-24 16:50:28 +02:00
Evgeny Vereshchagin
b6f011c10d
man: systemd.slice: add link to cgroups api docs
...
systemd.scope and systemd.resource-control contain that link.
systemd.slice should contain it too.
2015-09-24 14:37:17 +00:00
Lennart Poettering
ae4566a67f
Merge pull request #1374 from olof/autoconf_gcrypt_dep
...
build-sys: only use AM_PATH_LIBGCRYPT macro if it exists
2015-09-24 16:31:49 +02:00
Daniel Mack
f0c576748e
Merge pull request #1370 from systemd-mailing-devs/1443091642-5853-1-git-send-email-brueckner@linux.vnet.ibm.com
...
s390: add personality support
2015-09-24 15:04:13 +02:00
Olof Johansson
79e8bde40d
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.
2015-09-24 14:30:30 +02:00
Patrik Flykt
3ada37a21e
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
2015-09-24 15:20:41 +03:00
Jens Kuske
0d07e595cc
networkd: add support to configure preferred source of static routes
2015-09-24 14:04:51 +02:00
Hendrik Brueckner
7517f51ef9
s390: add personality support
...
Introduce personality support for Linux on z Systems to run
particular services with a 64-bit or 31-bit personality.
2015-09-24 13:03:18 +02:00
Lennart Poettering
2e396de8b2
Merge pull request #1366 from pocek/sd-event-fixes
...
sd-event: fix prepare priority queue comparison function
2015-09-24 11:27:08 +02:00
Tom Gundersen
56c5815983
Merge pull request #1332 from thom311/master
...
sd-dhcp6: ensure canceling lease timers and refactor setting lease
2015-09-24 00:59:15 +02:00
Tom Gundersen
5fecc33e32
Merge pull request #1356 from pfl/dhcp6_suspend
...
DHCPv6 suspend fixes
2015-09-24 00:55:49 +02:00
Krzysztof Kotlenga
8046c4576a
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
2015-09-24 00:48:30 +02:00
Lennart Poettering
167e451c37
Merge pull request #1363 from msekletar/ldconfig
...
units: run ldconfig also when cache is unpopulated
2015-09-23 21:10:15 +02:00
Lennart Poettering
97f709186b
Merge pull request #1365 from floppym/kcmp
...
Add fallback for kcmp() in case __NR_kcmp is undefined
2015-09-23 21:09:38 +02:00
Mike Gilbert
75b554579b
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.
2015-09-23 14:41:28 -04:00
Michal Sekletar
92eab5dea4
units: run ldconfig also when cache is unpopulated
2015-09-23 19:27:45 +02:00
Lennart Poettering
1ed11ff659
Merge pull request #1349 from dvdhrm/sync-pam
...
core: make setup_pam() synchronous
2015-09-23 18:42:41 +02:00