Re: [systemd-devel] [PATCH 2/3] timer: timer can be a transient unit

2014-10-24 Thread WaLyong Cho
On 10/23/2014 12:42 AM, Lennart Poettering wrote: > On Tue, 07.10.14 14:20, WaLyong Cho (walyong@samsung.com) wrote: > >> +assert(message); >> + >> +if (streq(name, "OnActiveSec") || >> +streq(name, "OnBootSec") || >> +streq(name, "OnStartupSec") || >> +

Re: [systemd-devel] Problem with modprobe in lm_sensors.service

2014-10-24 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Oct 06, 2014 at 02:41:29PM -0400, Dale R. Worley wrote: > I am running Fedora 16 with kernel 3.14.19-100.fc19.x86_64 and > systemd-204-21.fc19.x86_64. That's ... old. > [Unit] > Description=Initialize hardware monitoring sensors > After=syslog.target > > [Service] > En

Re: [systemd-devel] [PATCH] tmpfiles: only change device permissions if mknod succeeded

2014-10-24 Thread Tom Gundersen
On Mon, Oct 20, 2014 at 9:32 PM, Lennart Poettering wrote: > On Tue, 14.10.14 16:19, Jan Synacek (jsyna...@redhat.com) wrote: > >> https://bugzilla.redhat.com/show_bug.cgi?id=1147248 > > Hmm, so far tmpfiles always adjust access modes, for all types of > lines, if that's possible. I think this mak

Re: [systemd-devel] stunnel now supports socket activation

2014-10-24 Thread Tom Gundersen
On Tue, Oct 14, 2014 at 10:22 AM, David Timothy Strauss wrote: > Mark Theunissen, part of the team here at Pantheon, got our changes > upstream in version 5.05: > > https://www.stunnel.org/sdf_ChangeLog.html > > Progress! Nice! -t ___ systemd-devel ma

Re: [systemd-devel] rpcbind static, want enabled

2014-10-24 Thread Ivan Shapovalov
On Thursday 23 October 2014 at 16:19:28, Felix Miata wrote: > [cut] > > Those are not things I know how or wish to pursue. I found a workaround, no > thanks > to the systemctl 216-10.fc22 man page, which says: > > "enable NAME... > > Enable one or more unit files or unit file ins

[systemd-devel] [PATCH 17/26] unit: place reservations before merging other's dependencies

2014-10-24 Thread Michal Schmidt
With the hashmap implementation that uses chaining the reservations merely ensure that the merging won't result in long bucket chains. With a future alternative implementation it will additionally reserve memory to make sure the merging won't fail. --- src/core/unit.c | 33 +++

Re: [systemd-devel] [RFC] runtime configurable timer

2014-10-24 Thread Lennart Poettering
On Fri, 24.10.14 16:12, WaLyong Cho (walyong@gmail.com) wrote: > On 10/23/2014 12:28 AM, Lennart Poettering wrote: > > On Thu, 11.09.14 17:45, WaLyong Cho (walyong@samsung.com) wrote: > > > >> (I will happy there is already similar method already exist.) > >> > >> systemd already has simi

Re: [systemd-devel] [systemd-commits] 2 commits - man/pam_systemd.xml src/shared

2014-10-24 Thread Lennart Poettering
On Fri, 24.10.14 03:19, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > On Thu, Oct 23, 2014 at 04:15:59PM -0700, Lennart Poettering wrote: > > man: in pam_systemd, it must be "his" (or "her"), not their > > Why? "Their" is gramatically correct, and sidesteps specyfing the gender. >

Re: [systemd-devel] [215] bridge with static network does not work

2014-10-24 Thread Gerardo Exequiel Pozzi
On 10/23/2014 02:06 PM, Tom Gundersen wrote: > Hi Gerardo, Hola Tom! > > Sorry to dig up this old thread. Are you incidentally able to > reproduce this with current systemd/kernel? I am not able to on this > end. I just upgrade from 3.10.58 to 3.14.22 and with later the problem seems fixed. Usi

Re: [systemd-devel] rpcbind static, want enabled

2014-10-24 Thread Felix Miata
Andrei Borzenkov composed on 2014-10-21 12:12 (UTC+0400): > Felix Miata wrote: >> Andrei Borzenkov composed on 2014-10-21 11:29 (UTC+0400): >>> Felix Miata wrote: I have 27 Fedora 21 & 22 installations to real hardware, all originating via HTTP process. Half work as expected. Th

Re: [systemd-devel] How soon after login can I rely on systemd --user having reached sockets.target?

2014-10-24 Thread Lennart Poettering
On Wed, 22.10.14 12:57, Damien Robert (damien.olivier.robert+gm...@gmail.com) wrote: > Lennart Poettering wrote in message <20141020173828.GA4509@gardel-login>: > > They should probably adopt socket activation anyway, otherwise they'd > > be quite annoying on multi-user systems if lingering is u

Re: [systemd-devel] [PATCH 26/26] shared: drop mempool, now unused

2014-10-24 Thread Michal Schmidt
On 10/20/2014 08:43 PM, Lennart Poettering wrote: > On Thu, 16.10.14 09:51, Michal Schmidt (mschm...@redhat.com) wrote: > > All other patches look great to me. Please go ahead and commit. I pushed the first 19 patches, with LinkedHashmap renamed to OrderedHashmap. In my tree I have already renam

Re: [systemd-devel] [PATCH 2/3] timer: timer can be a transient unit

2014-10-24 Thread Lennart Poettering
On Tue, 07.10.14 14:20, WaLyong Cho (walyong@samsung.com) wrote: > +assert(message); > + > +if (streq(name, "OnActiveSec") || > +streq(name, "OnBootSec") || > +streq(name, "OnStartupSec") || > +streq(name, "OnUnitActiveSec") || > +

Re: [systemd-devel] [PATCH v3] systemctl: add edit verb

2014-10-24 Thread Ronny Chevalier
2014-10-22 11:15 GMT+02:00 Lennart Poettering : > On Wed, 22.10.14 01:48, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > >> On Sat, Oct 18, 2014 at 06:30:02PM +0200, Ronny Chevalier wrote: >> > It helps editing units by either creating a drop-in file, like >> > /etc/systemd/system/my.serv

Re: [systemd-devel] Systemd-networkd -- Cannot acquire DHCP lease on bridge interface

2014-10-24 Thread Tom Gundersen
On Thu, Oct 23, 2014 at 1:55 PM, Lennart Poettering wrote: > On Thu, 23.10.14 13:24, Tom Gundersen (t...@jklm.no) wrote: > >> > Trying unicast, waiting some time and then trying broadcast, if a DHCP >> > offer >> > is not sent within that time limit, seems like a fair thing to do. My 2 >> > cents

Re: [systemd-devel] [ANNOUNCE] systemd 216

2014-10-24 Thread Lennart Poettering
On Thu, 21.08.14 09:13, Colin Guthrie (gm...@colin.guthr.ie) wrote: > > Lennart Poettering wrote on 20/08/14 23:17: > > On Wed, 20.08.14 20:43, Colin Guthrie (gm...@colin.guthr.ie) wrote: > > > >> > >> Lennart Poettering wrote on 20/08/14 01:59: > >>> Heya! > >>> > >>> This is a major new releas

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-24 Thread Lennart Poettering
On Wed, 22.10.14 15:54, Dale R. Worley (wor...@alum.mit.edu) wrote: > > From: Lennart Poettering > > > We are always interested in technical feedback. > > > > We are not very interested in FUD mails that tell us how we'd "force" > > people, how we'd behave like microsoft and so on. That's not

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-24 Thread dennis.murata
That is fine and your choice. It doesn't seem like there is anything similar to an RFC process for systemd, so say that the "General Development and Discussion Mailing List" is changed to a new ML. The name of this list is changed to "Developer and Technical question" but remains the same list

Re: [systemd-devel] Stop Job for User Manager

2014-10-24 Thread Reindl Harald
Am 22.10.2014 um 18:31 schrieb Andrei Borzenkov: В Wed, 22 Oct 2014 16:54:45 +0200 Reindl Harald пишет: [root@sftp:~]$ kill 29657 [root@sftp:~]$ cat messages Oct 22 16:51:48 sftp systemd: Failed at step CHDIR spawning /usr/bin/kill: No such file or directory This sounds like exactly the sa

Re: [systemd-devel] [RFC][PATCH 1/2] resolve: resolved-manager: Avoid null dereference

2014-10-24 Thread Tom Gundersen
On Wed, Oct 22, 2014 at 12:19 PM, Lennart Poettering wrote: > On Sat, 13.09.14 20:40, Tom Gundersen (t...@jklm.no) wrote: > >> Yeah, this could happen. It so happens that the loopback link will >> always have ifindex 1, so I guess we could just fall back to checking >> for that if we don't have th

Re: [systemd-devel] Systemd-networkd -- Cannot acquire DHCP lease on bridge interface

2014-10-24 Thread Lennart Poettering
On Thu, 23.10.14 07:15, Marcel Holtmann (mar...@holtmann.org) wrote: > Hi Tom, > > Trying unicast, waiting some time and then trying broadcast, if a DHCP > offer > is not sent within that time limit, seems like a fair thing to do. My 2 > cents. > >>> > >>> Yeah, it seems thi

Re: [systemd-devel] Stop Job for User Manager

2014-10-24 Thread Andrei Borzenkov
В Wed, 22 Oct 2014 16:54:45 +0200 Reindl Harald пишет: > > Am 22.10.2014 um 16:49 schrieb Chris Bell: > > I'm running into an annoying issue. I use systemd 216 on an Arch box, > > and systemd 208 on a Fedora box; the issue exists on both. Logins are > > handled through getty; there is no desktop

Re: [systemd-devel] User systemd unit files

2014-10-24 Thread Lennart Poettering
On Thu, 11.09.14 07:07, Chris Morgan (chmor...@gmail.com) wrote: > Hmm. I figured that the environment was used when the systemd user > instance was started. > > I tried systemctl --user set-environment and it shows up if I use > show-environment but even if I use SYSTEMD_UNIT_PATH (I was typing

Re: [systemd-devel] udev database backwards compatibility guarantees

2014-10-24 Thread Lennart Poettering
On Wed, 22.10.14 13:36, David Herrmann (dh.herrm...@gmail.com) wrote: > Hi > > On Wed, Oct 22, 2014 at 1:33 PM, Lennart Poettering > wrote: > > On Thu, 11.09.14 10:49, Alexander Larsson (al...@redhat.com) wrote: > > > >> Hi, I'm looking at creating a runtime/app thing for Gnome in the style > >>

Re: [systemd-devel] [PATCH] swap: introduce Discard property

2014-10-24 Thread Karel Zak
On Fri, Oct 03, 2014 at 07:16:55AM +0200, Jan Synacek wrote: > Karel Zak writes: > >> Karel, any chance you can add a "-o" option to swapon? > > > > No problem, added to TODO. I'll implement it next week. Implemented, it's in util-linux git tree, will be in v2.26. > Would you please let me know

Re: [systemd-devel] [PATCH 1/2] man: fix localectl set-x11-keymap syntax description

2014-10-24 Thread Jan Synacek
Ran Benita writes: > On Fri, Oct 17, 2014 at 02:02:12PM +0200, Jan Synacek wrote: >> --- >> man/localectl.xml | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/man/localectl.xml b/man/localectl.xml >> index 38e73c7..c332027 100644 >> --- a/man/localectl.xml >> +++ b/man

Re: [systemd-devel] udev database backwards compatibility guarantees

2014-10-24 Thread David Herrmann
Hi On Wed, Oct 22, 2014 at 1:33 PM, Lennart Poettering wrote: > On Thu, 11.09.14 10:49, Alexander Larsson (al...@redhat.com) wrote: > >> Hi, I'm looking at creating a runtime/app thing for Gnome in the style >> of: >> http://0pointer.net/blog/revisiting-how-we-put-together-linux-systems.html >> >

Re: [systemd-devel] transforming Iptables bash script to systemd service file -help

2014-10-24 Thread Lennart Poettering
On Fri, 12.09.14 13:04, lux-integ (lux-in...@btconnect.com) wrote: > I will stick with the tried and tested bash scripts for iptables > then try something like > > ExecStart=/bin/sh -c " path/to/IptablesScript" > > inside a servce file > > will this suffce ? Yes. However, the "/bin/sh -

Re: [systemd-devel] [PATCH v3] systemctl: add edit verb

2014-10-24 Thread Lennart Poettering
On Sat, 18.10.14 18:30, Ronny Chevalier (chevalier.ro...@gmail.com) wrote: Looks pretty good. A few comments. > + > +static int unit_file_copy_if_needed(const char *unit_name, const char > *fragment_path, char **new_path) { > +char *tmp_path; > +int r; > + > +assert(fragm

Re: [systemd-devel] [PATCH] resolve: suppress warning

2014-10-24 Thread Lennart Poettering
On Wed, 15.10.14 23:30, WaLyong Cho (walyong@samsung.com) wrote: An equivalent patch from Lukasz has been merged for this a while back. Thanks! > --- > src/resolve/resolved.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/resolve/resolved.c b/src/resolve/resolved.c > index e

Re: [systemd-devel] I wonder… why systemd provokes this amount of polarity and resistance

2014-10-24 Thread Lennart Poettering
On Tue, 21.10.14 11:25, Martin Steigerwald (mar...@lichtvoll.de) wrote: > > The "scopes" and "slices" concept does not exist elsewhere, and > > there's nothing comparable around, so even if we wanted we couldn't > > make logind work on anything else. > > Then why in the first hand are the "scopes

Re: [systemd-devel] [PATCH] shared: remove unused functions

2014-10-24 Thread Lennart Poettering
On Sat, 11.10.14 18:43, Ronny Chevalier (chevalier.ro...@gmail.com) wrote: Applied! Thanks! > - mkdir_p_prefix: It has never been used > - mkdir_parents_prefix_label: Unused since > 1434ae6fd49f8377b0ddbd4c675736e0d3226ea6 > --- > src/shared/mkdir-label.c | 4 > src/shared/mkdir.c |

Re: [systemd-devel] How to use cgroups within containers?

2014-10-24 Thread Richard Weinberger
Am 20.10.2014 um 19:27 schrieb Lennart Poettering: > On Mon, 20.10.14 19:16, Richard Weinberger (rich...@nod.at) wrote: > >>> Have you read the link I posted? >> >> Sure, I've also been in the room in Düsseldorf while you've read it >> in front of us. > > Not that I changed it since then... ;-) >

Re: [systemd-devel] Reusing systemd utils in a non-systemd application?

2014-10-24 Thread Simon McVittie
On 20/10/14 08:19, Chaiken, Alison wrote: > ../systemd/src/shared/util.h:51:4: error: #error Unknown pid_t size > # error Unknown pid_t size > ^ > In file included from ../systemd/src/shared/util.h:87:0, > from ../systemd/src/shared/log.c:33: > ../systemd/src/shared/missing.h

Re: [systemd-devel] [PATCH] systemctl: add edit verb

2014-10-24 Thread David Timothy Strauss
On Fri, Oct 17, 2014 at 1:24 PM, Lennart Poettering wrote: > Does this make sense? Speaking as a nano user and someone who barely knows how to quit vim, I still think the decision of the default editor should be "vi" or the distribution's choice. ___ sy

Re: [systemd-devel] [PATCH] resolve: add missing header

2014-10-24 Thread Tom Gundersen
Applied. Thanks! -t On Thu, Oct 16, 2014 at 6:50 PM, Lukasz Skalski wrote: > Change-Id: I64f7c6b446f6d92057c35cc3d4e29bd2bad8f75b > --- > src/resolve/resolved.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/resolve/resolved.c b/src/resolve/resolved.c > index ef416e5..abd6314 1006

[systemd-devel] [PATCH 2/5] libsystemd:terminal :fix uninitialized warning

2014-10-24 Thread philippedeswert
From: Philippe De Swert Remove the following warning during the compilation: src/libsystemd-terminal/grdev-drm.c: In function 'grdrm_card_hotplug': src/libsystemd-terminal/grdev-drm.c:1087:45: warning: 'fb' may be used uninitialized in this function [-Wmaybe-uninitialized] src/libsystemd-termina

Re: [systemd-devel] odd seek_tail behaviour

2014-10-24 Thread Sascha Kattelmann
Hi, here is a related "bug" report: https://bugs.freedesktop.org/show_bug.cgi?id=64614 Doing a "next" after "seek_tail" ends up in some unexpected behaviour. Just do a "previous" after seeking the tail and everything works fine. The problem is symmetrical: Same goes for "previous" after "seek_h

Re: [systemd-devel] [PATCH 1/2] selinux: fix potential double free crash in child process

2014-10-24 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Oct 13, 2014 at 04:57:12PM +0200, Michal Sekletar wrote: > Before returning from function we should reset ret to NULL, thus cleanup > function is nop. > > Also context_str() returns pointer to a string containing context but not a > copy, hence we must make copy it explicitly. > --- > src

Re: [systemd-devel] Should user mode linux register with machined?

2014-10-24 Thread Jan Synacek
Lennart Poettering writes: > On Fri, 10.10.14 18:48, Richard Weinberger (rich...@nod.at) wrote: > >> Lennart, >> >> Am 10.10.2014 um 18:44 schrieb Lennart Poettering: >> > It's a bit more complex. While UML, qemu, kvm, currently don't, LXC, >> > systemd-nspawn and libvirt-lxc all do talk directly

Re: [systemd-devel] [PATCH] systemctl: add edit verb

2014-10-24 Thread Ronny Chevalier
2014-10-13 13:40 GMT+02:00 David Herrmann : > Hi Hi, > > On Sat, Oct 11, 2014 at 8:17 PM, Daniel Buch wrote: >> Nice, I was in the process of implementing this. Looks good to me. But I >> think it would be better to use "vi" instead of "vim" if no &editor is set. >> Vim is not installed on every

Re: [systemd-devel] Unicode support in console after boot

2014-10-24 Thread Jan Synacek
Michal Sekletar writes: > On Mon, Oct 13, 2014 at 09:36:16AM +0200, Jan Synacek wrote: >> Hello, >> >> currently, unicode characters are not correctly displayed in the >> console. After login, when I run /usr/bin/unicode_start, unicode works >> fine. I tried to create a service file that runs thi

Re: [systemd-devel] [PATCH, REVIEW] Added unit enabled-context cache to improve performance w/ many units.

2014-10-24 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 07, 2014 at 11:08:13PM -0700, Ken Sedgwick wrote: > Resubmitting using git format-patch, git imap-send ... no code changes. Hi, thank you for working on systemd, it is appreciated. Nevertheless, this patch is hard to apply for a couple of reasons. First, it does not apply: it is line

Re: [systemd-devel] Cannot get Shutdown Script to Run (Libvirt Virtual Machine Shutdown)

2014-10-24 Thread Jóhann B. Guðmundsson
On 10/10/2014 09:20 AM, Lennart Poettering wrote: rule that if two units are ordered against each other, and one is started and one is stopped the stop will always be executed first, the start second, regardless if the actual ordering is After= or Before= Yeah sure but there is a different b

[systemd-devel] [PATCH] Move apparmor code before the namespace setup

2014-10-24 Thread misc
From: Michael Scherer Since apparmor need to access /proc to communicate with the kernel, any unit setting / as readonly will be unable to also use the AppArmorProfile setting, as found on debian bug 760526. --- src/core/execute.c | 19 ++- 1 file changed, 10 insertions(+), 9 del

Re: [systemd-devel] [PATCH] clarify what microsoft and oracle stands for

2014-10-24 Thread Lennart Poettering
On Fri, 10.10.14 05:35, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > On Thu, Oct 09, 2014 at 10:14:36PM -0400, Rahul Sundaram wrote: > > --- > > man/systemd-detect-virt.xml | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/man/systemd-detect-virt.xml

Re: [systemd-devel] [PATCH] fstab-generator: Honor mount.usr*= on kernel command line

2014-10-24 Thread Lennart Poettering
On Thu, 09.10.14 21:37, Tobias Hunger (tobias.hun...@gmail.com) wrote: > This allows to configure boot loader entries for systems where the > root and usr filesystems are in different subvolumes (or even on > different drives). Thanks! Applied! Lennart -- Lennart Poettering, Red Hat __

Re: [systemd-devel] booting A/B rootfs

2014-10-24 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Oct 09, 2014 at 06:13:01AM +0200, Darko Luketic wrote: > Hi, > > I have limited knowledge of the boot process. > I'm wondering if the following is possible with systemd. > > Imagine you have 2 rootfs partitions. > You build a new rootfs on a security update or when a new version of a > li

Re: [systemd-devel] [RFC 22/25] support POSIX strerror_r returning int

2014-10-24 Thread Lennart Poettering
On Thu, 18.09.14 15:24, Emil Renner Berthing (syst...@esmil.dk) wrote: > --- > configure.ac | 2 ++ > src/journal/journal-send.c| 36 +++- > src/libsystemd/sd-bus/bus-error.c | 14 +- > 3 files changed, 42 insertions(+), 10

Re: [systemd-devel] [question] networkd: Any support for hooks?

2014-10-24 Thread Lennart Poettering
On Thu, 09.10.14 18:38, Cameron Norman (camerontnor...@gmail.com) wrote: > >actually not using avahi-autoipd is the way you really want to go. > >Especially since networkd will do IPv4LL setup for you anyway. Same > >applies to ethtool hooks since they should be done by link files and > >configure

[systemd-devel] Fast User Switching does not seem to work

2014-10-24 Thread constantine
Hello all! I am not sure this is the appropriate mailing list, and I have also posted to intel-...@lists.freedesktop.org (without any solution) and arch-gene...@archlinux.org Please indicate if you recommend me posting the problem to another list. I am encountering a peculiar problem with Fast U

Re: [systemd-devel] [PATCH] socket-proxyd: Unchecked return value from library

2014-10-24 Thread David Herrmann
Hi On Thu, Oct 9, 2014 at 3:31 PM, Susant Sahani wrote: > CID 1237543 (#1 of 1): Unchecked return value from library > (CHECKED_RETURN) > --- > src/socket-proxy/socket-proxyd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/socket-proxy/socket-proxyd.c > b/src/sock

Re: [systemd-devel] [PATCH] Report aa_change_onexec error code

2014-10-24 Thread Tom Gundersen
Applied. Thanks! Tom On Sat, Oct 11, 2014 at 10:13 AM, wrote: > From: Michael Scherer > > Since aa_change_onexec return the error code in errno, and return > -1, the current code do not give any useful information when > something fail. This make apparmor easier to debug, as seen on > https://

[systemd-devel] [PATCH] core: improve error message when machine id is missing

2014-10-24 Thread Jan Synacek
--- src/core/machine-id-setup.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/machine-id-setup.c b/src/core/machine-id-setup.c index efb074f..eba35be 100644 --- a/src/core/machine-id-setup.c +++ b/src/core/machine-id-setup.c @@ -191,7 +191,11 @@ int machine_id_s

[systemd-devel] [PATCH] bash-completion: fix systemctl isolate

2014-10-24 Thread Jan Synacek
--- shell-completion/bash/systemctl.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index 0150018..e47c028 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@

Re: [systemd-devel] [PATCH] journalctl: allow customizable output formats

2014-10-24 Thread Daniel P. Berrange
On Wed, Oct 08, 2014 at 11:53:38PM +0200, Lennart Poettering wrote: > On Mon, 22.09.14 16:33, Daniel P. Berrange (berra...@redhat.com) wrote: > > > The current '--output FORMAT' argument defines a number of > > common output formats, but there are some useful cases it > > does cover. In particular

Re: [systemd-devel] [PATCH 2/2] sd-event: update signal mask when disconnecting sources

2014-10-24 Thread Lennart Poettering
On Sun, 05.10.14 20:42, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > --- > Looks like This sentence is incomplete? Otherwise looks great! Please commit! > > src/libsystemd/sd-event/sd-event.c | 68 > +- > 1 file changed, 38 insertions(+), 30 d

Re: [systemd-devel] booting A/B rootfs

2014-10-24 Thread Greg KH
On Thu, Oct 09, 2014 at 06:13:01AM +0200, Darko Luketic wrote: > Hi, > > I have limited knowledge of the boot process. > I'm wondering if the following is possible with systemd. > > Imagine you have 2 rootfs partitions. > You build a new rootfs on a security update or when a new version of a > li

Re: [systemd-devel] consoled vs vlock -a

2014-10-24 Thread David Herrmann
Hi On Wed, Oct 8, 2014 at 2:02 PM, wrote: > Hi, > > will a transition to consoled affect `vlock -a` which uses > ioctl(...VT_SETMODE...) to prevent switching to another terminal? > Will this functionality still work? No. You can use "loginctl lock-sessions" as replacement, though. Thanks Dav

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-24 Thread Damien Robert
>From Lennart Poettering, Wed 08 Oct 2014 at 20:48:55 (+0200) : > SyslogIdentifier= should do it. It works, thanks! > See systemd.exec(5) for details. When I was looking for something like that in the doc, I was confused by this passage: "This option is only useful when StandardOutput= or Standa

Re: [systemd-devel] Systemd-nspawn: cannot add interfaces with --network-interface flag

2014-10-24 Thread Lennart Poettering
On Fri, 03.10.14 10:58, James Lott (ja...@lottspot.com) wrote: > Hello, > > A little bit back I wrote in about having some difficulties adding network > devices to containers. With some help from the list, I figured out how to add > my network devices to an already running container using 'iw p

Re: [systemd-devel] [PATCH] fstab-generator: Honor usr=, usrfstype= and usrflags=

2014-10-24 Thread Harald Hoyer
On 24.09.2014 22:08, Tobias Hunger wrote: > From f3a193de94959875cd1d83f941ed8fc8275c82eb Mon Sep 17 00:00:00 2001 > From: Tobias Hunger > Date: Wed, 24 Sep 2014 21:57:00 +0200 > Subject: [PATCH] fstab-generator: Honor usr=, usrfstype= and usrflags= on > kernel command line > > This allows to co

Re: [systemd-devel] consoled vs vlock -a

2014-10-24 Thread Marcin Szewczyk
On Wed, Oct 08, 2014 at 03:05:24PM +0200, David Herrmann wrote: > Hi > > On Wed, Oct 8, 2014 at 2:02 PM, wrote: > > Hi, > > > > will a transition to consoled affect `vlock -a` which uses > > ioctl(...VT_SETMODE...) to prevent switching to another terminal? > > > Will this functionality still wo

Re: [systemd-devel] LUKS passphrase asked twice when using plain device names

2014-10-24 Thread Lennart Poettering
On Tue, 23.09.14 08:06, Paul Menzel (paulepan...@users.sourceforge.net) wrote: > Dear systemd and dracut folks, > > > with Debian Sid/unstable, using plain device names like `/dev/sda1` in > `/etc/fstab` and `/etc/crypttab` the LUKS passphrase has to be entered > twice. Once it asked by dracut a

[systemd-devel] Problem with modprobe in lm_sensors.service

2014-10-24 Thread Dale R. Worley
I am running Fedora 16 with kernel 3.14.19-100.fc19.x86_64 and systemd-204-21.fc19.x86_64. On startup (and sometimes shutdown), I see a message like this in /var/log/messages: Oct 6 13:53:37 hobgoblin modprobe[623]: modprobe: ERROR: missing parameters. See -h. This message appears to be du

Re: [systemd-devel] A way to better integrate rsyslog into systemd?

2014-10-24 Thread Lennart Poettering
On Sat, 04.10.14 00:32, Aleksei Besogonov (alex.besogo...@gmail.com) wrote: > However, one of our clients raised an a question about forwarding > overhead. It turns out that it’s definitely non-trivial and can in > some cases cause significant slowdowns during log-heavy > events. Think about 400Mb

Re: [systemd-devel] A way to better integrate rsyslog into systemd?

2014-10-24 Thread Lennart Poettering
On Fri, 03.10.14 22:55, Aleksei Besogonov (alex.besogo...@gmail.com) wrote: > With all the recent noise about systemd abusing its position with > the way it takes over logging I’ve been thinking about a way to > solve it. > > As far as I understand the following holds: > > - Systemd takes over /d

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-24 Thread Mantas Mikulėnas
On Tue, Oct 7, 2014 at 8:12 PM, Jon Stanley wrote: > Since EnvironmentFile in a service isn't sourced by any shell, shell > expressions in it will obviously not work the way that they did in a > SysV style script. > > Nor does it seems that the environment gets preserved between > ExecStartPre (wh

Re: [systemd-devel] [PATCH] Add timesync-wait tool

2014-10-24 Thread Lukasz Stelmach
On 24.10.2014 00:28, Lennart Poettering wrote: > On Thu, 23.10.14 21:24, Łukasz Stelmach (stl...@poczta.fm) wrote: > >> +int main(int argc, char *argv[]) { >> +struct timex tbuf; >> +int r; >> + >> +memset(&tbuf, 0, sizeof(tbuf)); > > Please initialize this with "= {}" whi

[systemd-devel] systemd in initramfs: /etc/passwd, /etc/group, emergency.service and sulogin

2014-10-24 Thread Ivan Shapovalov
Hi, A few questions regarding usage of systemd+udev in initramfs. Before all, this is what I want to achieve (to prevent XY-problems): working emergency.service in initramfs. The questions are a bit Arch-specific and possibly lame, but well... - is /etc/passwd still[1] needed in initramfs due to

[systemd-devel] [PATCH v4] udev hwdb: Support shipping pre-compiled database in system images

2014-10-24 Thread Martin Pitt
Hey Zbyszek, Zbigniew Jędrzejewski-Szmek [2014-10-24 19:45 +0200]: > This enumeration is also used below... The definition should be shared. > You might want to also consider using NULSTR_FOREACH for iteration. Ah, thanks for pointing that out. > This function should have the prototype of 'int o

Re: [systemd-devel] [215] bridge with static network does not work

2014-10-24 Thread Tom Gundersen
On Fri, Oct 24, 2014 at 6:17 PM, Gerardo Exequiel Pozzi wrote: >> Sorry to dig up this old thread. Are you incidentally able to >> reproduce this with current systemd/kernel? I am not able to on this >> end. > > I just upgrade from 3.10.58 to 3.14.22 and with later the problem seems > fixed. Using

Re: [systemd-devel] [PATCH v3] udev hwdb: Support shipping pre-compiled database in system images

2014-10-24 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Oct 24, 2014 at 11:52:39AM -0400, Martin Pitt wrote: > Hello all, > > thanks Lennart for the detailled review! Took me a while to respond as > I'm on a company sprint this week. I think I addressed all your > points, plus fixing the unit condition. open_hwdb_bin() isn't the > prettiest thi

[systemd-devel] [PATCH v3] udev hwdb: Support shipping pre-compiled database in system images

2014-10-24 Thread Martin Pitt
Hello all, thanks Lennart for the detailled review! Took me a while to respond as I'm on a company sprint this week. I think I addressed all your points, plus fixing the unit condition. open_hwdb_bin() isn't the prettiest thing in the world after the change of immediately fopen()ing instead of jus

Re: [systemd-devel] systemd-journald watchdog timeout

2014-10-24 Thread Lennart Poettering
On Fri, 24.10.14 16:04, Umut Tezduyar Lindskog (u...@tezduyar.com) wrote: > On Wed, Oct 22, 2014 at 6:41 PM, Lennart Poettering > wrote: > > On Wed, 22.10.14 18:35, Umut Tezduyar Lindskog (u...@tezduyar.com) wrote: > > > >> > That's difficult to say just from these logs. Can you reliably > >> > r

Re: [systemd-devel] systemd-journald watchdog timeout

2014-10-24 Thread Umut Tezduyar Lindskog
On Wed, Oct 22, 2014 at 6:41 PM, Lennart Poettering wrote: > On Wed, 22.10.14 18:35, Umut Tezduyar Lindskog (u...@tezduyar.com) wrote: > >> > That's difficult to say just from these logs. Can you reliably >> > reproduce this? If so, can you attach strace to journald before this >> > happens and se

Re: [systemd-devel] Race condition on systemd-run --scope

2014-10-24 Thread Umut Tezduyar Lindskog
Hi, Since you said you have covered my theories when you implemented, I have stopped looking in to this. Following: [root@axis-00408cc563e5 /mnt/flash/root]27929# cat stress #!/bin/sh systemd-run --scope /bin/true & systemd-run --scope /bin/true & systemd-run --scope /bin/true & systemd-run --s

Re: [systemd-devel] [PATCH v2] journalctl: Unify boot id lookup into common function get_boots

2014-10-24 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Oct 23, 2014 at 07:37:29PM +0200, Jan Janssen wrote: > --- > Changes in v2: > - Properly initialize count to zero Thanks, applied. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/l

[systemd-devel] [PATCH] mac: add mac_ prefix to distinguish origin security apis

2014-10-24 Thread WaLyong Cho
--- src/core/dbus-job.c | 2 +- src/core/dbus-manager.c | 68 +++ src/core/dbus-snapshot.c | 2 +- src/core/dbus-unit.c | 8 +++--- src/core/dbus.c | 8 +++--- src/core/main.c | 4 +-- src/core/selinux-access.c | 46

Re: [systemd-devel] [PATCH 2/2] udev: do NOT re-label smack

2014-10-24 Thread Lennart Poettering
On Fri, 24.10.14 13:51, WaLyong Cho (walyong@gmail.com) wrote: > From: WaLyong Cho > > If selinux is disabled and smack is only enabled, smack label is > relable-ed by label_fix. To avoid, make only be labeled for selinux. Thanks! Applied! Lennart -- Lennart Poettering, Red Hat

Re: [systemd-devel] [PATCH 1/2] selinux: make sure selinux is using on mac_selinux_fix()

2014-10-24 Thread WaLyong Cho
On 10/24/2014 07:16 PM, Lennart Poettering wrote: > On Fri, 24.10.14 13:51, WaLyong Cho (walyong@gmail.com) wrote: > >> --- >> src/shared/selinux-util.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c >> index 1eddd17..bb273

Re: [systemd-devel] Pronoun confusion

2014-10-24 Thread Lennart Poettering
On Fri, 24.10.14 11:27, Sam Phippen (samphip...@googlemail.com) wrote: > Ah, my bad. Just saw some stuff floating around twitter. It would be fantastic if you could point the folks who use twitter to this commit, in the hope to get them off our backs, thank you: http://cgit.freedesktop.org/syste

Re: [systemd-devel] Pronoun confusion

2014-10-24 Thread Sam Phippen
Ah, my bad. Just saw some stuff floating around twitter. Thanks for dealing with this more quickly and efficiently than I was expecting. Thanks — Sam Phippen On 24 Oct 2014, at 11:25, Lennart Poettering wrote: > B1;3409;0cOn Fri, 24.10.14 11:20, Sam Phippen (samphip...@googlemail.com) > wrote

Re: [systemd-devel] Pronoun confusion

2014-10-24 Thread Lennart Poettering
B1;3409;0cOn Fri, 24.10.14 11:20, Sam Phippen (samphip...@googlemail.com) wrote: > Hello Friends, > > I’m slightly confused by this commit: > http://cgit.freedesktop.org/systemd/systemd/commit/?id=989fc2c61cb3c5376bd8bff6b2cfba9e4d740ffc. > The use of their/they/them is correct as a singular >

[systemd-devel] Pronoun confusion

2014-10-24 Thread Sam Phippen
Hello Friends, I’m slightly confused by this commit: http://cgit.freedesktop.org/systemd/systemd/commit/?id=989fc2c61cb3c5376bd8bff6b2cfba9e4d740ffc. The use of their/they/them is correct as a singular gender neutral pronoun in English[1]. I think this change so that the language to reads “his”

Re: [systemd-devel] [PATCH 1/2] selinux: make sure selinux is using on mac_selinux_fix()

2014-10-24 Thread Lennart Poettering
On Fri, 24.10.14 13:51, WaLyong Cho (walyong@gmail.com) wrote: > --- > src/shared/selinux-util.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/shared/selinux-util.c b/src/shared/selinux-util.c > index 1eddd17..bb27328 100644 > --- a/src/shared/selinux-util.c > +++ b/src/sha

Re: [systemd-devel] [systemd-commits] man/pam_systemd.xml

2014-10-24 Thread Lennart Poettering
On Fri, 24.10.14 05:32, Chris Bell (cwb...@mail.usf.edu) wrote: > 5, > all processes of the session are terminated. If > -the last concurrent session of a user ends, his > -user systemd instance will

Re: [systemd-devel] [systemd-commits] man/pam_systemd.xml

2014-10-24 Thread Chris Bell
On Fri, Oct 24, 2014 at 4:17 AM, Daniel Mack wrote: > Could you please send a patch that does that change? Here you go! >From 517599692ed194156e8277e310270f4407d0d124 Mon Sep 17 00:00:00 2001 From: Chris Bell Date: Fri, 24 Oct 2014 05:22:36 -0400 Subject: [PATCH] sidestepped gender-neutral deba

Re: [systemd-devel] [RFC][PATCH 1/2] resolve: resolved-manager: Avoid null dereference

2014-10-24 Thread Tom Gundersen
On Wed, Oct 22, 2014 at 10:39 PM, Lennart Poettering wrote: > On Wed, 22.10.14 22:12, Tom Gundersen (t...@jklm.no) wrote: > >> On Wed, Oct 22, 2014 at 12:19 PM, Lennart Poettering >> wrote: >> > On Sat, 13.09.14 20:40, Tom Gundersen (t...@jklm.no) wrote: >> > >> >> Yeah, this could happen. It so

Re: [systemd-devel] [systemd-commits] man/pam_systemd.xml

2014-10-24 Thread Daniel Mack
On 10/24/2014 03:40 AM, Chris Bell wrote: > On Thu, Oct 23, 2014 at 8:53 PM, Lennart Poettering >> -all processes of the session are terminated. If >> -the last concurrent session of a user ends, his >> -user systemd instance w

Re: [systemd-devel] [properly] man/pam_systemd.xml: remove heinous use of exclusionary gendered pronoun

2014-10-24 Thread Tom Gundersen
On Fri, Oct 24, 2014 at 4:29 AM, Johnathan Zefran wrote: > The use of a gendered pronoun like 'his' constitutes a rather baffling piece > of sexism and misogyny on Lennart's part, Let's not get carried away, we are just discussing grammar here. > considering he overwrote a valid gender-neutral

Re: [systemd-devel] Regression in v209: SIGKILL sent immediately after SIGTERM

2014-10-24 Thread Stef Walter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24.10.2014 01:51, Lennart Poettering wrote: > On Fri, 12.09.14 11:57, Stef Walter (st...@redhat.com) wrote: > >> This commit breaks cockpit orderly shutdown: >> >>> commit 743970d2ea6d08aa7c7bff8220f6b7702f2b1db7 Author: Lennart >>> Poettering Da

Re: [systemd-devel] [RFC] runtime configurable timer

2014-10-24 Thread WaLyong Cho
On 10/23/2014 12:28 AM, Lennart Poettering wrote: > On Thu, 11.09.14 17:45, WaLyong Cho (walyong@samsung.com) wrote: > >> (I will happy there is already similar method already exist.) >> >> systemd already has similar functionality "systemd-run" but that is only >> for scope or service unit. I