[systemd-devel] [PATCH] man/systemctl: document enable on masked units

2014-10-08 Thread Jan Synacek
--- man/systemctl.xml | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man/systemctl.xml b/man/systemctl.xml index b28a3b7..d2fa3b3 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -924,6 +924,9 @@ kobject-uevent 1 systemd-udevd-kernel.socket

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

2014-10-08 Thread Ken Sedgwick
Resubmitting using git format-patch, git imap-send ... no code changes. --- .gitignore | 1 + Makefile.am| 44 +++- src/core/dbus-manager.c| 4 +- src/core/manager.c

Re: [systemd-devel] [PATCH] journal: Fix sd_journal_enumerate_unique skipping values

2014-10-08 Thread Jan Janssen
Gesendet: Mittwoch, 08. Oktober 2014 um 01:40 Uhr Von: Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl An: Jan Janssen medhe...@web.de Cc: systemd-devel@lists.freedesktop.org Betreff: Re: [systemd-devel] [PATCH] journal: Fix sd_journal_enumerate_unique skipping values On Mon, Oct 06, 2014

[systemd-devel] [systemd.link] How to use NamePolicy=mac?

2014-10-08 Thread Moviuro
Hi all! In order to fix in an easily predictable manner the interfaces' names, I went and wrote the following .link file: /etc/systemd/network/00-default.link [Link] NamePolicy=mac MACAddressPolicy=persistent I daemon-reload, reboot: $ ip a [...] 4: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu

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

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 23:40, Uoti Urpala (uoti.urp...@pp1.inet.fi) wrote: On Tue, 2014-10-07 at 14:15 -0400, Rob Owens wrote: My question really isn't why are the Debian dependencies the way they are. I understand that. I was trying to highlight the strange situation of a desktop

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 13:12, Jon Stanley (jonstan...@gmail.com) 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

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 19:18, Simon Peeters (peeters.si...@gmail.com) wrote: 2014-10-07 19:12 GMT+02:00 Jon Stanley jonstan...@gmail.com: 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.

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 13:35, Jan Synacek (jsyna...@redhat.com) wrote: --- src/shared/install.c | 13 + 1 file changed, 13 insertions(+) diff --git a/src/shared/install.c b/src/shared/install.c index fa064c2..945bb27 100644 --- a/src/shared/install.c +++ b/src/shared/install.c @@

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

2014-10-08 Thread Lukáš Nykrýn
Zbigniew Jędrzejewski-Szmek píše v Út 07. 10. 2014 v 23:11 +0200: On Tue, Oct 07, 2014 at 05:46:48PM +0200, Zbigniew Jędrzejewski-Szmek wrote: On Tue, Oct 07, 2014 at 02:09:37PM +0200, Lukas Nykryn wrote: --- Changes in v4 - renamed install_dependency - dependency - removed the enum

Re: [systemd-devel] [PATCH 2/4] mount-setup: introduce mount_setup_run_dirs()

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 14:14, Michal Sekletar (msekl...@redhat.com) wrote: Hence, if a container manager mounts everything properly, then mount_setup() should be a NOP anyway... In theory yes, but in fact not having /run mounted as tmpfs is default in the docker container. I have no strong

Re: [systemd-devel] [PATCH 3/4] shutdown: don't do final unmounting when inside the container and running without CAP_SYS_ADMIN

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 14:17, Michal Sekletar (msekl...@redhat.com) wrote: On Thu, Oct 02, 2014 at 12:04:02PM +0200, Lennart Poettering wrote: On Thu, 02.10.14 09:57, Michal Sekletar (msekl...@redhat.com) wrote: #define FINALIZE_ATTEMPTS 50 @@ -207,7 +208,11 @@ int main(int argc, char

Re: [systemd-devel] [PATCH 2/2] sysusers.d: split files to cope with split packages.

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 04:54, Barbieri, Gustavo (gustavo.barbi...@intel.com) wrote: -Original Message- From: Lennart Poettering [mailto:lenn...@poettering.net] Sent: Thursday, October 02, 2014 4:19 AM To: Barbieri, Gustavo Cc: Zbigniew Jędrzejewski-Szmek;

Re: [systemd-devel] [PATCH 1/2] tmpfiles.d: split files to cope with split packages.

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 04:59, Barbieri, Gustavo (gustavo.barbi...@intel.com) wrote: -Original Message- From: Lennart Poettering [mailto:lenn...@poettering.net] Sent: Thursday, October 02, 2014 4:16 AM To: Barbieri, Gustavo Cc: systemd-devel@lists.freedesktop.org Subject: Re:

Re: [systemd-devel] [PATCH] dbus-manager: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 08:23, Jan Synacek (jsyna...@redhat.com) wrote: Lennart Poettering lenn...@poettering.net writes: On Mon, 06.10.14 13:21, Jan Synacek (jsyna...@redhat.com) wrote: Hmm with this change in place we'd have different behaviour for the cases where systemctl executes the

Re: [systemd-devel] [PATCH 2/4] mount-setup: introduce mount_setup_run_dirs()

2014-10-08 Thread Daniel J Walsh
On 10/08/2014 07:40 AM, Lennart Poettering wrote: On Tue, 07.10.14 14:14, Michal Sekletar (msekl...@redhat.com) wrote: Hence, if a container manager mounts everything properly, then mount_setup() should be a NOP anyway... In theory yes, but in fact not having /run mounted as tmpfs is

Re: [systemd-devel] Systemd-nspawn: Cannot create tun device in container

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 10:46, James Lott (ja...@lottspot.com) wrote: Hello, list! In some work I've been doing with systemd-nspawn containers, I've been trying to connect one of my containers to an openvpn network. This conteiner is being run with the --network-bridge flag to setup its

Re: [systemd-devel] [PATCH] man/systemctl: document enable on masked units

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 08:04:52AM +0200, Jan Synacek wrote: --- man/systemctl.xml | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man/systemctl.xml b/man/systemctl.xml index b28a3b7..d2fa3b3 100644 --- a/man/systemctl.xml +++ b/man/systemctl.xml @@ -924,6

[systemd-devel] [RFC] Mounting $XGD_RUNTIME_DIR with units instead of logind code.

2014-10-08 Thread Maciej Wereski
Hello, Lately I've been working on updating systemd (currently 208) in Tizen. One of problems we've stumbled upon was with user@.service failing. Problem was on SMACK-enabled system, caused by 1c231f5 (logind: make $XDG_RUNTIME_DIR a per-user tmpfs). When $XDG_RUNTIME_DIR is mounted it inherits

Re: [systemd-devel] [PATCH] journal: Fix sd_journal_enumerate_unique skipping values

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 08:24:49AM +0200, Jan Janssen wrote: Gesendet: Mittwoch, 08. Oktober 2014 um 01:40 Uhr Von: Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl An: Jan Janssen medhe...@web.de Cc: systemd-devel@lists.freedesktop.org Betreff: Re: [systemd-devel] [PATCH] journal: Fix

[systemd-devel] consoled vs vlock -a

2014-10-08 Thread systemd
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? -- Marcin Szewczyk http://wodny.org mailto:marcin.szewc...@wodny.borg - remove b / usuń b

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 11:54:19AM +0200, Lennart Poettering wrote: On Tue, 07.10.14 13:35, Jan Synacek (jsyna...@redhat.com) wrote: --- src/shared/install.c | 13 + 1 file changed, 13 insertions(+) diff --git a/src/shared/install.c b/src/shared/install.c index

[systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Rahul Sundaram
Hi Bringing up here for discussion as suggested in https://bugzilla.redhat.com/show_bug.cgi?id=1150477 Just for the background, I was checking to see if systemd-detect-virt supported virtualbox and grepped the man page and concluded it didn't since I didn't find the term. I was going to write

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 06:30:51AM -0700, terrygalant.li...@fastest.cc wrote: Hi I have 2 installed instances of a single daemon. 1 is from distro-installed packages, installed into standard default OS locations with unit files in /usr/lib/systemd/system/. The other is installed under

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 09:38, Rahul Sundaram (methe...@gmail.com) wrote: Hi Bringing up here for discussion as suggested in https://bugzilla.redhat.com/show_bug.cgi?id=1150477 Just for the background, I was checking to see if systemd-detect-virt supported virtualbox and grepped the man page

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread terrygalant . lists
Hi Zbigniew On Wed, Oct 8, 2014, at 06:39 AM, Zbigniew Jędrzejewski-Szmek wrote: You can also make a symlink from /etc/systemd/system/xxx.service to either of the two files and manage it by hand, calling systemctl daemon-reload afterwards. I think this should work. If other systemd units

Re: [systemd-devel] Systemd-nspawn: Cannot create tun device in container

2014-10-08 Thread Tom Gundersen
On Fri, Oct 3, 2014 at 7:46 PM, James Lott ja...@lottspot.com wrote: Hello, list! In some work I've been doing with systemd-nspawn containers, I've been trying to connect one of my containers to an openvpn network. This conteiner is being run with the --network-bridge flag to setup its

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 06:45:48AM -0700, terrygalant.li...@fastest.cc wrote: Hi Zbigniew On Wed, Oct 8, 2014, at 06:39 AM, Zbigniew Jędrzejewski-Szmek wrote: You can also make a symlink from /etc/systemd/system/xxx.service to either of the two files and manage it by hand, calling

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Rahul Sundaram
Hi On Wed, Oct 8, 2014 at 9:46 AM, Lennart Poettering lenn...@poettering.net wrote: I think what would make a lot of sense though is to add a section to the man page somewhere, that explains which ID refers to which software from which vendor. Also, it might make sense to add a new switch

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 10:35:25AM -0400, Rahul Sundaram wrote: Hi On Wed, Oct 8, 2014 at 9:46 AM, Lennart Poettering lenn...@poettering.net wrote: I think what would make a lot of sense though is to add a section to the man page somewhere, that explains which ID refers to which

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Rahul Sundaram
Hi On Wed, Oct 8, 2014 at 10:37 AM, Zbigniew Jędrzejewski-Szmek wrote: This would break compatibility, because systemd-detect-virt would have to start returning different strings. Ah, I was thinking more about ConditionVirtualization but I guess we are kinda struck with what we already have

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 10:42:21AM -0400, Rahul Sundaram wrote: Hi On Wed, Oct 8, 2014 at 10:37 AM, Zbigniew Jędrzejewski-Szmek wrote: This would break compatibility, because systemd-detect-virt would have to start returning different strings. Ah, I was thinking more about

Re: [systemd-devel] [PATCH 3/4] shutdown: don't do final unmounting when inside the container and running without CAP_SYS_ADMIN

2014-10-08 Thread Michal Sekletar
On Wed, Oct 08, 2014 at 01:41:16PM +0200, Lennart Poettering wrote: On Tue, 07.10.14 14:17, Michal Sekletar (msekl...@redhat.com) wrote: On Thu, Oct 02, 2014 at 12:04:02PM +0200, Lennart Poettering wrote: On Thu, 02.10.14 09:57, Michal Sekletar (msekl...@redhat.com) wrote: #define

Re: [systemd-devel] [PATCH 3/4] shutdown: don't do final unmounting when inside the container and running without CAP_SYS_ADMIN

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 16:49, Michal Sekletar (msekl...@redhat.com) wrote: Hmm, I think we should just do need_umount = !in_container, like we do for the other things like loopback detaching, dm detaching or swapoff. After all, if we run in a container we run in a mount namespace

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 09:57, Rahul Sundaram (methe...@gmail.com) wrote: Hi On Wed, Oct 8, 2014 at 9:46 AM, Lennart Poettering wrote: I think what would make a lot of sense though is to add a section to the man page somewhere, that explains which ID refers to which software from which

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 15:29, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Wed, Oct 08, 2014 at 11:54:19AM +0200, Lennart Poettering wrote: On Tue, 07.10.14 13:35, Jan Synacek (jsyna...@redhat.com) wrote: --- src/shared/install.c | 13 + 1 file changed, 13

Re: [systemd-devel] [RFC] Mounting $XGD_RUNTIME_DIR with units instead of logind code.

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 14:44, Maciej Wereski (m.were...@partner.samsung.com) wrote: Hello, Lately I've been working on updating systemd (currently 208) in Tizen. One of problems we've stumbled upon was with user@.service failing. Problem was on SMACK-enabled system, caused by 1c231f5 (logind:

Re: [systemd-devel] [Question/bug] Timeout after bus_event_loop_with_idle() change.

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 22:00, Daniel Buch (boogiewasth...@gmail.com) wrote: Hi, With current git and since 430e21c2f7e77d600257ead56419f51 i keep on getting timeout on these units dbuch@dbuch-laptop ~/dev/systemd (git)-[master] % systemctl --failed UNIT LOAD ACTIVE SUB

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 05:02:31PM +0200, Lennart Poettering wrote: On Wed, 08.10.14 15:29, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Wed, Oct 08, 2014 at 11:54:19AM +0200, Lennart Poettering wrote: On Tue, 07.10.14 13:35, Jan Synacek (jsyna...@redhat.com) wrote:

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-08 Thread Damien Robert
Lennart Poettering wrote in message 20141008094838.GB26284@gardel-login: On Tue, 07.10.14 19:18, Simon Peeters (peeters.si...@gmail.com) wrote: ExecStart=/bin/sh -c . /something/that/sets/var; /some/file $var THis would certainly work, but I'd strongly advise to use exec for executing

Re: [systemd-devel] Shell expressions in EnvironmentFile

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 18:07, Damien Robert (damien.olivier.robert+gm...@gmail.com) wrote: Lennart Poettering wrote in message 20141008094838.GB26284@gardel-login: On Tue, 07.10.14 19:18, Simon Peeters (peeters.si...@gmail.com) wrote: ExecStart=/bin/sh -c . /something/that/sets/var; /some/file

Re: [systemd-devel] [PATCH] journal: Fix sd_journal_enumerate_unique skipping values

2014-10-08 Thread Jan Janssen
On 2014-10-08 14:59, Zbigniew Jędrzejewski-Szmek wrote: On Wed, Oct 08, 2014 at 08:24:49AM +0200, Jan Janssen wrote: Gesendet: Mittwoch, 08. Oktober 2014 um 01:40 Uhr Von: Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl An: Jan Janssen medhe...@web.de Cc: systemd-devel@lists.freedesktop.org

[systemd-devel] [PATCH v3] sd-dhcp-client: support non-Ethernet hardware addresses

2014-10-08 Thread Dan Williams
Like Infiniband. See RFC 4390 section 2.1 for details on DHCP and Infiniband; chaddr is zeroed, hlen is set to 0, and htype is set to ARPHRD_INFINIBAND because IB hardware addresses are 20 bytes in length. --- v3: use arp_type for identifying client MAC address types, and fix non-Ethernet

Re: [systemd-devel] [systemd-commits] src/libsystemd

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 08:30, Daniel Mack (zon...@kemper.freedesktop.org) wrote: -/* The higher 32bit of the flags field are considered - * 'incompatible flags'. Refuse them all for now. */ -if (make-flags 0xULL) { +/* The features field are considered

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 17:24, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: I think that the best way to handle this would be to use a temporary structure like { char *unit_name; char *error_message; int code} and use this to pass the information about the error from the lower

Re: [systemd-devel] [PATCH] core: map the 'rescue' argument to rescue.target

2014-10-08 Thread Lennart Poettering
On Tue, 07.10.14 14:55, Mantas Mikulėnas (graw...@gmail.com) wrote: Even though the 'emergency' and 'single' aliases come from sysvinit, the lack of 'rescue' is still quite confusing (caught me by surprise for the 9th time yet) and inconsistent with `systemctl rescue` as well. Hmm, so I am

Re: [systemd-devel] [PATCH 1/2] sd-event: be more careful when enabling/disabling signals

2014-10-08 Thread Lennart Poettering
On Sun, 05.10.14 20:42, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: @@ -626,11 +634,13 @@ static void source_disconnect(sd_event_source *s) { case SOURCE_SIGNAL: if (s-signal.sig 0) { -if (s-signal.sig != SIGCHLD ||

Re: [systemd-devel] Incorrect logic when /etc/machine-id is missing

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 07:07, Jan Synacek (jsyna...@redhat.com) wrote: Now I was determined to fix this bug, however I'm left clueless as to how this is actually supposed to work. Is the entire logic in this piece of code wrong, or am I missing something? How is the (re)generating/mounting of

Re: [systemd-devel] [PATCH] journalctl: make --utc work everywhere

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 09:51, Jan Synacek (jsyna...@redhat.com) wrote: The --utc option was introduced by commit 9fd290443f5f99fca0dcd4216b1de70f7d3b8db1. Howerver, the implementation was incomplete. --- src/journal/journalctl.c | 14 +++--- src/shared/logs-show.c | 2 +-

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 09:28:39PM +0200, Lennart Poettering wrote: On Wed, 08.10.14 17:24, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: I think that the best way to handle this would be to use a temporary structure like { char *unit_name; char *error_message; int code}

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Lennart Poettering
On Wed, 08.10.14 23:07, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: A related thing: there's a mapping bus-error - errno implemented, but it only works for the errors defined in the library itself. It would be nice to extend this mapping to the user defined errors,

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

2014-10-08 Thread Lennart Poettering
On Thu, 02.10.14 19:48, Cameron Norman (camerontnor...@gmail.com) wrote: On Wed, Oct 1, 2014 at 10:36 PM, Tom Gundersen t...@jklm.no wrote: Hi Cameron, On Thu, Oct 2, 2014 at 6:36 AM, Cameron Norman camerontnor...@gmail.com wrote: ifupdown [1], NetworkManager, and WICD all support

Re: [systemd-devel] [feature request] allow instances in file.preset

2014-10-08 Thread Lennart Poettering
On Fri, 03.10.14 19:18, Damien Robert (damien.olivier.rob...@gmail.com) wrote: From Lennart Poettering, Thu 02 Oct 2014 at 16:48:19 (+0200) : Well, but from somewhere systemctl preset-all needs to be able to discover the bar string... How is that supposed to work? preset-all just

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

2014-10-08 Thread Lennart Poettering
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 when reading application logs it is often desirable to display the code file

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

2014-10-08 Thread Cameron Norman
On Wed, Oct 8, 2014 at 2:26 PM, Lennart Poettering lenn...@poettering.net wrote: On Thu, 02.10.14 19:48, Cameron Norman (camerontnor...@gmail.com) wrote: On Wed, Oct 1, 2014 at 10:36 PM, Tom Gundersen t...@jklm.no wrote: Hi Cameron, On Thu, Oct 2, 2014 at 6:36 AM, Cameron Norman

Re: [systemd-devel] systemd-detect-virt and vendors

2014-10-08 Thread Dale R. Worley
From: Rahul Sundaram methe...@gmail.com We really should be more specific and call it virtualbox and hyper-v instead, similar to say virt-what and other similar tools. I will be happy write the patches if this makes sense. At the least, we need documentation that tells the user what name

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 11:23:51PM +0200, Lennart Poettering wrote: On Wed, 08.10.14 23:07, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: A related thing: there's a mapping bus-error - errno implemented, but it only works for the errors defined in the library itself. It

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

2014-10-08 Thread Lennart Poettering
On Sun, 21.09.14 23:40, Alexander Groleau (awg...@xbetanet.com) wrote: Hello systemd users, I have been trying desperately for weeks to get my simple shutdown script for a Libvirt guest to run before libvirtd is shut down, without success. Essentially, I need the libvirt-windows.sh script

Re: [systemd-devel] journal repair

2014-10-08 Thread Lennart Poettering
On Fri, 19.09.14 10:00, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: Is the plan to introduce an repair switch or is the plan to inform the users how they should proceed if that is not the case since users are getting confused when they encounter journal errors like these Data object

Re: [systemd-devel] [PATCH 1/2] sd-event: be more careful when enabling/disabling signals

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Oct 08, 2014 at 09:44:33PM +0200, Lennart Poettering wrote: On Sun, 05.10.14 20:42, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: @@ -626,11 +634,13 @@ static void source_disconnect(sd_event_source *s) { case SOURCE_SIGNAL: if

[systemd-devel] booting A/B rootfs

2014-10-08 Thread Darko Luketic
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 listed package that has dependencies is released and extract this on either A or

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread Mantas Mikulėnas
On Wed, Oct 8, 2014 at 4:39 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Wed, Oct 08, 2014 at 06:30:51AM -0700, terrygalant.li...@fastest.cc wrote: Hi I have 2 installed instances of a single daemon. 1 is from distro-installed packages, installed into standard default

Re: [systemd-devel] How to exclusively toggle between two systemd instances of a single daemon?

2014-10-08 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Oct 09, 2014 at 07:51:32AM +0300, Mantas Mikulėnas wrote: On Wed, Oct 8, 2014 at 4:39 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Wed, Oct 08, 2014 at 06:30:51AM -0700, terrygalant.li...@fastest.cc wrote: Hi I have 2 installed instances of a single daemon.

Re: [systemd-devel] [PATCH] core: don't allow enabling if unit is masked

2014-10-08 Thread Jan Synacek
Lennart Poettering lenn...@poettering.net writes: On Wed, 08.10.14 17:24, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: I think that the best way to handle this would be to use a temporary structure like { char *unit_name; char *error_message; int code} and use this to

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

2014-10-08 Thread Marcel Holtmann
Hi Cameron, ifupdown [1], NetworkManager, and WICD all support hooks for when a network interface is configured or deconfigured (before and after these actions). Are there any plans to support something along these lines? If so, what will that look like? If there are no plans, how do

Re: [systemd-devel] [PATCH] journalctl: make --utc work everywhere

2014-10-08 Thread Jan Synacek
Lennart Poettering lenn...@poettering.net writes: On Fri, 03.10.14 09:51, Jan Synacek (jsyna...@redhat.com) wrote: The --utc option was introduced by commit 9fd290443f5f99fca0dcd4216b1de70f7d3b8db1. Howerver, the implementation was incomplete. --- src/journal/journalctl.c | 14