[systemd-devel] systemd-run returns with 'Failed to start transient scope unit: Unit run-13034.scope already exists.'

2015-10-15 Thread Petr Horacek
Hello, recently we encountered strange systemd problem on automated tests of networking part of oVirt VDSM project. Sometimes this happens: $ /usr/sbin/ifdown enp1s0f1 $ /usr/bin/systemd-run --scope --slice=vdsm-dhclient /usr/sbin/ifup enp1s0f1 Failed to start transient scope unit: Unit

Re: [systemd-devel] Setting the shell to the system locale

2015-10-15 Thread Colin Guthrie
Hi, David Adam wrote on 15/10/15 07:18: > Hi, > > I work on fish shell, which is a non-POSIX command-line shell. I'm > trying to work out whether we should ship something in our source that > tries to set the locale for our users. Alternatively, it might be > something that needs to be left to

Re: [systemd-devel] systemd-run returns with 'Failed to start transient scope unit: Unit run-13034.scope already exists.'

2015-10-15 Thread Lennart Poettering
On Thu, 15.10.15 13:25, Petr Horacek (phora...@redhat.com) wrote: > Hello, > > recently we encountered strange systemd problem on automated tests of > networking > part of oVirt VDSM project. > > Sometimes this happens: > $ /usr/sbin/ifdown enp1s0f1 > $ /usr/bin/systemd-run --scope

Re: [systemd-devel] Setting the shell to the system locale

2015-10-15 Thread Lennart Poettering
On Thu, 15.10.15 14:18, David Adam (zanc...@ucc.gu.uwa.edu.au) wrote: > Hi, > > I work on fish shell, which is a non-POSIX command-line shell. I'm > trying to work out whether we should ship something in our source that > tries to set the locale for our users. Alternatively, it might be >

Re: [systemd-devel] How does systemd discover template instances?

2015-10-15 Thread Erik Haller
You can also create a /lib/systemd/systemd/my_main_script.service and use "ln -s /lib/systemd/system/my_main_script.service /etc/systemd/system/uniq1.service". Then use "mkdir /etc/systemd/system/uniq1.service.d" and create a /etc/systemd/system/uniq1.service.d/blah.conf

Re: [systemd-devel] failed to change interface name (systemd-networkd)

2015-10-15 Thread Martin Pitt
Lennart Poettering [2015-10-14 18:15 +0200]: > My educated guess is that DEbian's ifupdown scripts are responsible for > this... IIRC they install a unit file that is pulled in on hotplug, > and might keep the device busy... Yes, /lib/udev/net.agent. It calls ifup or ifdown if the interface is

Re: [systemd-devel] How does systemd discover template instances?

2015-10-15 Thread Michael Chapman
On Thu, 15 Oct 2015, Stuart Longland wrote: Assuming I have a few files distributed in the base package: /lib/systemd/system/comms-drivers.service /lib/systemd/system/comms-drivers@.service Ordinarily, one would tell systemd about template instances by creating symbolic links.

[systemd-devel] Setting the shell to the system locale

2015-10-15 Thread David Adam
Hi, I work on fish shell, which is a non-POSIX command-line shell. I'm trying to work out whether we should ship something in our source that tries to set the locale for our users. Alternatively, it might be something that needs to be left to distributions as it seems to be handled very

Re: [systemd-devel] systemd-run returns with 'Failed to start transient scope unit: Unit run-13034.scope already exists.'

2015-10-15 Thread Petr Horacek
Sorry, I was referring to this issue: [1] https://github.com/systemd/systemd/issues/1351 Which refers to: https://bugs.freedesktop.org/show_bug.cgi?id=86520 (Bug 86520 - Race condition on systemd-run --scope) We run systemd-219-18.el7.x86_64 on the failing test server. Regards, Petr 2015-10-15

[systemd-devel] Block device shutdown "hook"

2015-10-15 Thread Ian Pilcher
Does systemd provide any sort of "hook" mechanism to call a script program when a block device is unmounted (or otherwise no longer being used) on shutdown? I'm toying with the idea of creating an alternative way of managing dm-cache devices -- something that will operate a bit more like bcache,

Re: [systemd-devel] Fix for - udev/ata_id failing on SATA drives behind JMicron USB bridge

2015-10-15 Thread Harendra Kumar
In fact I tried to find that information on github before sending this email. The 'Blame' tab on github showed only a refactoring change touching these lines of code. Also, the file seems to have been imported from elsewhere in github and it seems github does not seem to know the history before

Re: [systemd-devel] Fix for - udev/ata_id failing on SATA drives behind JMicron USB bridge

2015-10-15 Thread Mantas Mikulėnas
On Fri, Oct 16, 2015 at 5:44 AM, Harendra Kumar wrote: > In fact I tried to find that information on github before sending this > email. The 'Blame' tab on github showed only a refactoring change touching > these lines of code. Also, the file seems to have been imported