Re: [systemd-devel] systemd219 and Realtime priority

2019-11-08 Thread Lukas Nykryn
Hi! I think you should contact the Red Hat support with this question. Most of the distribution have CONFIG_RT_GROUP_SCHED disabled since in the general use cases people don't use it at all. RHEL is an exception here, since we keep that feature on, despite the recommendation of upstream, to cover

Re: [systemd-devel] chkconfig on preferred to --add?

2019-05-29 Thread Lukas Nykryn
I think the behaviour is correct, chkconfig --add is kinda sysv equivalent of systemctl preset. systemctl enable should be the same as chkconfig on. Lukas čt 23. 5. 2019 v 20:40 odesílatel Lennart Poettering napsal: > On Do, 23.05.19 10:29, Roger Pack (rogerdpa...@gmail.com) wrote: > > > As a no

Re: [systemd-devel] systemctl --user roadmap question

2017-11-20 Thread Lukas Nykryn
That comment explains why --user was removed when centos7 was released. Although now we know that it will remain as it is in upstream, we don't plan to revert the removal in el7, since we are afraid of potential regressions that it might cause. I personally saw couple of logs where users had some a

[systemd-devel] [PATCH] man: mention that tools like imjournal will not work with Storage=none

2015-05-12 Thread Lukas Nykryn
Manpage for journald.conf mentions that syslog will still work if you set Storage=none, but this is not true for some specific setups. For example rhel7 and combination of journal, rsyslog and imjournal plugin. --- man/journald.conf.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) dif

[systemd-devel] [PATCH] systemctl: list-units -r should not fail with older systemd in container

2015-03-31 Thread Lukas Nykryn
Older version of systemd does not have d-bus method "ListUnitsFiltered", so systemctl -r will fail just with: Failed to list units: Method "ListUnitsFiltered" with signature "as" on interface "org.freedesktop.systemd1.Manager" doesn't exist So lets skip such machines. --- src/systemctl/systemctl

[systemd-devel] [PATCH] mount: don't run quotaon only for network filesystems

2015-03-30 Thread Lukas Nykryn
If you havei for example ext4 on iscsi devices it is possible to setup qoutas there. Unfortunatelly because such fstab entry contains _netdev, systemd will not add dependency to quotaon.service. --- src/core/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mount

[systemd-devel] [PATCH] console-getty.service: don't start when /dev/console is missing

2015-03-13 Thread Lukas Nykryn
From: Jan Pazdziora Create minimal image which runs systemd FROM rhel7.1 RUN yum install -y /usr/bin/ps ENV container docker CMD [ "/usr/sbin/init" ] When you run the container without -t, the process /sbin/agetty --noclear --keep-baud console 115200 38400 9600 is not happy and

[systemd-devel] [PATCH] selinux-access: fix broken ternary operator

2014-11-21 Thread Lukas Nykryn
it seems to be a typo introduced by ebcf1f97de4f6b1580ae55eb56b1a3939fe6b602 -_r = selinux_access_check(_b, _m, _u->source_path ?:_u->fragment_path, (permission), &_error); \ +({ Unit *_unit = (unit); selinux_generic_access_check(bus,message, _unit->fragment_path ?: _unit-

[systemd-devel] [PATCH] dbus: return non-zero return value in the case that prefix won't match

2014-11-20 Thread Lukas Nykryn
strv_extend returns 0 in the case of success which means that else if (bus_track_deserialize_item(&m->deserialized_subscribed, l) == 0) log_warning("Unknown serialization item '%s'", l); will be printed when value is added correctly. --- src/core/dbus.c| 2 +- src/core/manager.c | 2 +-

[systemd-devel] [PATCH] sd-pppoe: include ppp_defs.h

2014-11-03 Thread Lukas Nykryn
On older kernels before this patch: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=e8b671460410c8fd996c8a1c228b718c547cc236 ppp-ioctl.h did not pull in ppp_defs.h which results in build errors --- src/libsystemd-network/sd-pppoe.c | 1 + 1 file changed, 1 insertion(+)

[systemd-devel] [PATCH v2] environment: append unit_id to error messages regarding EnvironmentFile

2014-10-17 Thread Lukas Nykryn
--- I have swapped parameters in test-fileio in previous version src/core/execute.c | 6 +++--- src/core/execute.h | 2 +- src/shared/env-util.c | 7 --- src/shared/env-util.h | 2 +- src/test/test-fileio.c | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/

[systemd-devel] [PATCH] environment: append unit_id to error messages regarding EnvironmentFile

2014-10-17 Thread Lukas Nykryn
--- src/core/execute.c | 6 +++--- src/core/execute.h | 2 +- src/shared/env-util.c | 7 --- src/shared/env-util.h | 2 +- src/test/test-fileio.c | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/core/execute.c b/src/core/execute.c index b165b33..f515934 100

[systemd-devel] [PATCH] shell-completion/bash: add add-wants and add-requires

2014-10-16 Thread Lukas Nykryn
--- shell-completion/bash/systemctl.in | 12 1 file changed, 12 insertions(+) diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index afa80da..30ba668 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@ -74,6

[systemd-devel] [PATCH v4] systemctl: add add-wants and add-requires verbs

2014-10-07 Thread Lukas Nykryn
--- Changes in v4 - renamed install_dependency -> dependency - removed the enum with dependencies and used the general one instead - add an error meesage in the case that --root is used and it fails - changes in manpage TODO | 1 - man/systemctl.xml

[systemd-devel] [PATCH v3] systemctl: add add-wants and add-requires verbs

2014-09-25 Thread Lukas Nykryn
--- Changes in v3 - move "don't load logic" to unit_file_load - --help message should be finally fine TODO | 1 - man/systemctl.xml | 21 src/core/dbus-manager.c| 84 ++--- src/core/org.freede

[systemd-devel] [PATCHi v2] systemctl: add add-wants and add-requires verbs

2014-09-24 Thread Lukas Nykryn
--- Changes in v2 - new selinux_unit_access_check_strv - only one dbus call AddInstallDependencyUnitFiles - small change in manpage TODO | 1 - man/systemctl.xml | 21 src/core/dbus-manager.c| 84 ++

[systemd-devel] [PATCH] systemctl: add add-wants and add-requires verbs

2014-09-19 Thread Lukas Nykryn
--- TODO | 1 - man/systemctl.xml | 27 ++ src/core/dbus-manager.c| 85 + src/core/org.freedesktop.systemd1.conf | 8 +++ src/shared/install.c | 87 +++

[systemd-devel] [PATCH] systemctl: fix broken list-unit-files with --root

2014-08-26 Thread Lukas Nykryn
--- src/shared/install.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/shared/install.c b/src/shared/install.c index 4b09a69..3ef995a 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@ -2072,6 +2072,7 @@ int unit_file_get_list( for (;;)

[systemd-devel] [PATCH] sysv: order initscripts which provide $network before network.target

2014-07-23 Thread Lukas Nykryn
Due to recent changes where $network "maps" to network-online.target it is not guaranteed that initscript which provides networking will be terminated after network.target during shutdown which is against LSB. --- src/sysv-generator/sysv-generator.c | 5 + 1 file changed, 5 insertions(+) diff

[systemd-devel] [PATCH] conf-files: really work under different root

2014-06-12 Thread Lukas Nykryn
search_and_fopen_* and conf_files_list function accept root parameter, but they are not using it. This leads to an issue with systemd-tmpfiles --root. The files and dirs are created in the correct location, but on the base of configuration from the normal root. --- src/shared/conf-files.c | 14 ++

[systemd-devel] [PATCH 1/2] EnvironmentFile: don't drop backslashes inside single quotes

2014-04-10 Thread Lukas Nykryn
--- src/shared/fileio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/fileio.c b/src/shared/fileio.c index f101269..0eb131d 100644 --- a/src/shared/fileio.c +++ b/src/shared/fileio.c @@ -446,11 +446,12 @@ static int parse_env_file_internal(

[systemd-devel] [PATCH 2/2] machine: quote a scope name in machine_save

2014-04-10 Thread Lukas Nykryn
Currently serialization in machined does not work for some names because parse_env_file is dropping backslashes from values. Than gc deletes the machine because it is unable to find the scope. --- src/machine/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine

[systemd-devel] [PATCH] util: always consider glusterfs as a network filesystem

2014-03-24 Thread Lukas Nykryn
--- src/shared/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/util.c b/src/shared/util.c index dd67c22..6f73387 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -1500,7 +1500,8 @@ bool fstype_is_network(const char *fstype) { "nfs\0

[systemd-devel] [PATCH] service: don't create extra cgroup for control process when reloading SysV service

2014-03-10 Thread Lukas Nykryn
Unfortunately common practice in initscripts is to have reload as an alias for restart (https://fedoraproject.org/wiki/Packaging:SysVInitScript). In that case the newly started process will be killed immediately after the reload process ends and its cgroup is destroyed. --- src/core/service.c | 13

[systemd-devel] [PATCH] udev: properly detect reference to unexisting part of PROGRAM's result

2014-02-24 Thread Lukas Nykryn
--- src/udev/udev-event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index 0b3ade0..de31fee 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -254,6 +254,8 @@ subst: cpos++;

[systemd-devel] [PATCH] udev: properly detect reference to unexisting part of PROGRAM's result

2014-02-24 Thread Lukas Nykryn
--- src/udev/udev-event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index 0b3ade0..5998be2 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -254,6 +254,8 @@ subst: cpos++;

[systemd-devel] [PATCH] util: don't consider trailing whitespaces as an empty string in split_quoted

2013-11-27 Thread Lukas Nykryn
--- src/shared/util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/util.c b/src/shared/util.c index 3a4d196..c68ab09 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -383,7 +383,9 @@ char *split_quoted(const char *c, size_t *l, char **state) {

[systemd-devel] [PATCH] core/cgroup: first print then free

2013-09-13 Thread Lukas Nykryn
--- src/core/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 3eeb475..513450a 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -395,8 +395,8 @@ static int unit_create_cgroups(Unit *u, CGroupControllerMask mask) {

[systemd-devel] [PATCH 2/2] random-seed: we should return errno of failed loop_write

2013-09-13 Thread Lukas Nykryn
--- src/random-seed/random-seed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c index 4776c07..afbd500 100644 --- a/src/random-seed/random-seed.c +++ b/src/random-seed/random-seed.c @@ -157,7 +157,7 @@ int main(int

[systemd-devel] [PATCH 1/2] libudev: fix move_later comparison

2013-09-13 Thread Lukas Nykryn
At the beginning move_later is set to -1, but it is set to different value only if expression !move_later is true. --- src/libudev/libudev-enumerate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libudev/libudev-enumerate.c b/src/libudev/libudev-enumerate.c index bc1e37d

[systemd-devel] [PATCH] service: remove pidfile after exit of a service

2013-08-28 Thread Lukas Nykryn
--- TODO | 2 -- src/core/service.c | 4 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index fe305ec..3527970 100644 --- a/TODO +++ b/TODO @@ -60,8 +60,6 @@ Features: * better error message if you run systemctl without systemd running -* unlink

[systemd-devel] [PATCH] man: one more example in tmpfiles.d

2013-08-22 Thread Lukas Nykryn
--- man/tmpfiles.d.xml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index 6a2193d..30e1314 100644 --- a/man/tmpfiles.d.xml +++ b/man/tmpfiles.d.xml @@ -322,6 +322,13 @@ L/tmp/foobar ---- /dev/null d /

[systemd-devel] [PATCH 3/3] systemctl: remove unused variable

2013-07-09 Thread Lukas Nykryn
--- src/systemctl/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 04464de..db7effa 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -1186,7 +1186,7 @@ static int list_dependencies(D

[systemd-devel] [PATCH 2/3] journald-server: r should be checked after journal_file_open_reliably

2013-07-09 Thread Lukas Nykryn
--- src/journal/journald-server.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index 44ba916..6beaa8a 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -910,11 +910,12 @@ s

[systemd-devel] [PATCH 1/3] unit: check correct variable after strdup

2013-07-09 Thread Lukas Nykryn
--- src/core/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/unit.c b/src/core/unit.c index 447f201..b3f9832 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -2302,7 +2302,7 @@ int unit_deserialize(Unit *u, FILE *f, FDSet *fds) { ch

[systemd-devel] [PATCH] core: read "debug" from kernel commandline and set log level and target

2013-05-29 Thread Lukas Nykryn
--- TODO| 3 --- man/kernel-command-line.xml | 12 man/systemd.xml | 16 src/core/main.c | 4 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index f8a1b1b..7883b7e 100644 --- a/TODO ++

[systemd-devel] [PATCH] systemd-delta: add support for drop-in snippets

2013-05-16 Thread Lukas Nykryn
--- TODO | 3 - man/systemd-delta.xml | 7 ++ src/delta/delta.c | 184 -- 3 files changed, 170 insertions(+), 24 deletions(-) diff --git a/TODO b/TODO index 62016e1..3af9c33 100644 --- a/TODO +++ b/TODO @@ -89,9 +89,6 @@ Fea

[systemd-devel] [PATCH] systemd-delta: add support for drop-in snippets

2013-05-14 Thread Lukas Nykryn
--- TODO | 3 - man/systemd-delta.xml | 7 ++ src/delta/delta.c | 182 -- 3 files changed, 170 insertions(+), 22 deletions(-) diff --git a/TODO b/TODO index 62016e1..3af9c33 100644 --- a/TODO +++ b/TODO @@ -89,9 +89,6 @@ Fea

[systemd-devel] [PATCH] systemd-delta: add support for drop-in snippets

2013-05-06 Thread Lukas Nykryn
--- TODO | 3 - man/systemd-delta.xml | 7 +++ src/delta/delta.c | 170 ++ 3 files changed, 164 insertions(+), 16 deletions(-) diff --git a/TODO b/TODO index 84ede8c..eab5f87 100644 --- a/TODO +++ b/TODO @@ -74,9 +74,6 @@ Fe

[systemd-devel] [PATCH] systemctl: add --plain option to list-dependencies

2013-05-03 Thread Lukas Nykryn
This patch adds more script-friendly output for list-dependencies. --- man/systemctl.xml | 9 + src/systemctl/systemctl.c | 50 +++ 2 files changed, 42 insertions(+), 17 deletions(-) diff --git a/man/systemctl.xml b/man/systemctl.xml in

[systemd-devel] [PATCH] systemd-delta: add support for drop-in snippets

2013-04-30 Thread Lukas Nykryn
--- TODO | 3 - src/delta/delta.c | 179 ++ 2 files changed, 166 insertions(+), 16 deletions(-) diff --git a/TODO b/TODO index 9adec5e..96d90d8 100644 --- a/TODO +++ b/TODO @@ -95,9 +95,6 @@ Features: kmod static-nodes call

[systemd-devel] [PATCH 2/2] logind-dbus: initialize result variable

2013-04-19 Thread Lukas Nykryn
--- src/login/logind-dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 4176902..05cc1fd 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -1137,7 +1137,7 @@ static int bus_manager_can_shutdown_or_s

[systemd-devel] [PATCH 1/2] crypt-setup-generator: correctly check return of strdup

2013-04-19 Thread Lukas Nykryn
--- src/cryptsetup/cryptsetup-generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c index ac0ed58..b31329d 100644 --- a/src/cryptsetup/cryptsetup-generator.c +++ b/src/cryptsetup/cryptsetup

[systemd-devel] [PATCH 5/5] libsystemd-bus: initalize handle_cmsg to false

2013-04-10 Thread Lukas Nykryn
--- src/libsystemd-bus/bus-socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-bus/bus-socket.c b/src/libsystemd-bus/bus-socket.c index 145f454..1a0d926 100644 --- a/src/libsystemd-bus/bus-socket.c +++ b/src/libsystemd-bus/bus-socket.c @@ -877,7 +877,7 @@ in

[systemd-devel] [PATCH 4/5] journal: close fd in sd_journal_send

2013-04-10 Thread Lukas Nykryn
--- src/journal/journal-send.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c index 4b9109a..ae7f5e8 100644 --- a/src/journal/journal-send.c +++ b/src/journal/journal-send.c @@ -200,7 +200,9 @@ finish: _public_ int

[systemd-devel] [PATCH 3/5] tty-ask-password-agent: free passwords

2013-04-10 Thread Lukas Nykryn
--- src/tty-ask-password-agent/tty-ask-password-agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tty-ask-password-agent/tty-ask-password-agent.c b/src/tty-ask-password-agent/tty-ask-password-agent.c index 3f5706e..1f55e32 100644 --- a/src/tty-ask-password-agent/tty-

[systemd-devel] [PATCH 2/5] sd-id128: properly check position in buffer

2013-04-10 Thread Lukas Nykryn
--- src/libsystemd-id128/sd-id128.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libsystemd-id128/sd-id128.c b/src/libsystemd-id128/sd-id128.c index 68c4987..a6345c8 100644 --- a/src/libsystemd-id128/sd-id128.c +++ b/src/libsystemd-id128/sd-id128.c @@ -176,6 +176,9 @@ _public_ int sd

[systemd-devel] [PATCH 1/5] journalctl: check return of strjoin

2013-04-10 Thread Lukas Nykryn
--- src/journal/journalctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 86895b8..002ff7c 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1035,7 +1035,7 @@ int main(int argc, char *argv[]) {

[systemd-devel] [PATCH] catalog: fix error codes handling in catalog_list_items

2013-03-27 Thread Lukas Nykryn
Previously r was set to zero and so if(r<0) was never true. --- src/journal/catalog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/journal/catalog.c b/src/journal/catalog.c index 6b195f6..7ae7b3e 100644 --- a/src/journal/catalog.c +++ b/src/journal/catalog.c @@ -617,

[systemd-devel] [PATCH 2/2] log: fix error codes handling in catalog_list_items

2013-03-27 Thread Lukas Nykryn
Previously r was set to zero and so if(r<0) was never true. Also it does not make sense to print error code from previous loop. --- src/journal/catalog.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/journal/catalog.c b/src/journal/catalog.c index dacf5c5..968

[systemd-devel] [PATCH 1/2] sd-bus: check c->path for null instead of path

2013-03-27 Thread Lukas Nykryn
--- src/libsystemd-bus/sd-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c index 5f2ede0..6acc59e 100644 --- a/src/libsystemd-bus/sd-bus.c +++ b/src/libsystemd-bus/sd-bus.c @@ -1944,7 +1944,7 @@ static int bus_add_o

[systemd-devel] [PATCH] condition: add option ConditionArchitecture

2013-03-26 Thread Lukas Nykryn
--- TODO | 2 -- man/systemd.unit.xml.in | 8 src/core/condition.c | 16 src/core/condition.h | 1 + src/core/load-fragment-gperf.gperf.m4 | 1 + 5 files changed, 26 insertions(+), 2 dele

[systemd-devel] [PATCH] systemctl: mangle unit name in is-enabled

2013-03-07 Thread Lukas Nykryn
--- src/systemctl/systemctl.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 99286cf..72e9c55 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -3982,6 +3982,7 @@ static in

[systemd-devel] [PATCH 2/5] systemctl: check if iterator was initialized succesfully

2013-03-01 Thread Lukas Nykryn
--- src/systemctl/systemctl.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index c67c6c9..99286cf 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -2084,7 +2084,11 @@ static int get_cgroup_at

[systemd-devel] [PATCH 5/5] manager: print p and then free it

2013-03-01 Thread Lukas Nykryn
--- src/core/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/manager.c b/src/core/manager.c index ec12a75..5d1959e 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -2473,9 +2473,9 @@ static int create_generator_dir(Manager *m, char **generator, co

[systemd-devel] [PATCH 3/5] tpmfiles: add missing parenthesis

2013-03-01 Thread Lukas Nykryn
--- src/tmpfiles/tmpfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 6b3f70e..ba22073 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -321,7 +321,7 @@ static int dir_cleanup(

[systemd-devel] [PATCH 1/5] systemd-python: add missing check for return of PyDict_SetItem in _reader.c

2013-03-01 Thread Lukas Nykryn
--- src/python-systemd/_reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python-systemd/_reader.c b/src/python-systemd/_reader.c index 7f200d5..d3d45cc 100644 --- a/src/python-systemd/_reader.c +++ b/src/python-systemd/_reader.c @@ -208,7 +208,7 @@ static PyObject*

[systemd-devel] [PATCH 4/5] systemd-analyze: free unit_times only if it is not NULL

2013-03-01 Thread Lukas Nykryn
--- src/analyze/systemd-analyze.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/analyze/systemd-analyze.c b/src/analyze/systemd-analyze.c index b7e1670..7603cc0 100644 --- a/src/analyze/systemd-analyze.c +++ b/src/analyze/systemd-analyze.c @@ -237,9 +237,11 @@ sta

[systemd-devel] [PATCH] journalctl: add --reverse option to show the newest lines first

2013-03-01 Thread Lukas Nykryn
--- man/journalctl.xml | 8 +++ src/journal/journalctl.c | 58 +++- 2 files changed, 60 insertions(+), 6 deletions(-) diff --git a/man/journalctl.xml b/man/journalctl.xml index 5ed0e1f..ca940fe 100644 --- a/man/journalctl.xml +++ b/man/journa

[systemd-devel] [PATCH] journalctl: add --revert option to show the newest lines first

2013-02-28 Thread Lukas Nykryn
--- man/journalctl.xml | 7 ++ src/journal/journalctl.c | 59 +++- 2 files changed, 60 insertions(+), 6 deletions(-) diff --git a/man/journalctl.xml b/man/journalctl.xml index 5ed0e1f..768c588 100644 --- a/man/journalctl.xml +++ b/man/journal

[systemd-devel] [PATCH] pager: add K to less environment

2013-02-27 Thread Lukas Nykryn
Using less as a pager sometimes breaks terminal when output is interrupted by ctrl-c. Reproducer: run 'sudo journalctl' ctrl-c. Thanks mbr...@redhat.com for the solution. --- src/shared/pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/pager.c b/src/shared/page

[systemd-devel] [PATCH] systemctl: add command list-dependencies

2013-01-17 Thread Lukas Nykryn
systemctl list-dependencies lists all unit's dependecies and recursively expands all subsidiary target units into a tree. Primary purpose for this command is to show all units which are enabled in specified target. --- man/systemctl.xml | 11 +++ src/shared/util.c | 2 + src/sh

[systemd-devel] [PATCH 2/2] bootchart: check return of fopen before setvbuf in log.c

2013-01-09 Thread Lukas Nykryn
--- src/bootchart/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootchart/log.c b/src/bootchart/log.c index 89c7b35..6c40913 100644 --- a/src/bootchart/log.c +++ b/src/bootchart/log.c @@ -364,9 +364,9 @@ schedstat_next: if (!ps->smaps) {

[systemd-devel] [PATCH 1/2] udev: don't call fclose on NULL in is_pci_multifunction

2013-01-09 Thread Lukas Nykryn
--- src/udev/udev-builtin-net_id.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c index d5db762..7033d05 100644 --- a/src/udev/udev-builtin-net_id.c +++ b/src/udev/udev-builtin-net_id.c @@ -136,7 +136,7 @@ st

[systemd-devel] [PATCH] coredumpctl: check return of strndup

2012-12-19 Thread Lukas Nykryn
--- src/journal/coredumpctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c index f9cebb7..4f0ed58 100644 --- a/src/journal/coredumpctl.c +++ b/src/journal/coredumpctl.c @@ -262,7 +262,7 @@ static int retrieve(const void *

[systemd-devel] [PATCH] udevd: add missing : to getopt_long 'e'

2012-12-19 Thread Lukas Nykryn
Parameter -e is set without additional argument in getopt and this leads to segfault when calling 'systemd-udevd -e'. --- src/udev/udevd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/udevd.c b/src/udev/udevd.c index ebd601e..ffc48a0 100644 --- a/src/udev/udevd.c ++

[systemd-devel] [PATCH] systemctl: append .service when unit does not have valid suffix

2012-10-16 Thread Lukas Nykryn
systemctl status a and systemctl status a.service lead to same output but systemctl status a.b and systemctl status a.b.service do not. --- src/shared/unit-name.c |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/src/shared/unit-name.c b/src/shared/unit-name.c index cfe

[systemd-devel] [PATCH] systemctl: don't mangle name when it is a path

2012-10-15 Thread Lukas Nykryn
systemctl enable, disable, ... can also accept full path and in this case we don't need to alter it (rhbz#866346). --- src/systemctl/systemctl.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index d1fbb78..4576bbf

[systemd-devel] [PATCH] dbus-manager: check return of unit_dbus_path

2012-10-04 Thread Lukas Nykryn
Reply of dbus_message_new_method_return was check twice and path from unit_dbus_path was not. --- src/core/dbus-manager.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index 9cdecfc..003825a 100644 --- a/src/core/dbus-ma

[systemd-devel] [PATCH] journald: assert target instead of page

2012-10-01 Thread Lukas Nykryn
--- src/journal/journal-gatewayd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/journal/journal-gatewayd.c b/src/journal/journal-gatewayd.c index b7acfba..0957dcb 100644 --- a/src/journal/journal-gatewayd.c +++ b/src/journal/journal-gatewayd.c @@ -399,7 +399,7 @@ s

[systemd-devel] [PATCH] service: allow service to inhibit respawn with special return code

2012-07-24 Thread Lukas Nykryn
In some cases, like wrong configuration, restarting after error exit code does not help, so administrator can specify RestartIgnoreCodes which will not cause restart of a service. --- man/systemd.service.xml |7 src/core/load-fragment-gperf.gperf.m4 |1 + src/core/load-f