Re: [systemd-devel] Disable timers

2014-04-29 Thread David Timothy Strauss
systemctl disable or systemctl mask. You also have to stop it first, as that only changes the default. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Disable timers

2014-04-29 Thread Marcin Kocur
Hello again, I have another question. How I can disable a timer installed by system vendor? I tried creating an empty service.d/service.conf file and systemctl disable service.timer and systemctl disable service.service. I think you should really improve man pages. Disabling a service is rea

[systemd-devel] How to spin down a disc with systemd?

2014-04-29 Thread Marcin Kocur
Hello all, I wrote a service /etc/systemd/system/disable-2nd-hdd.service. I have 2 HDD's where one of them doesn't need to work all the time. So I thought it'd be cool to shut it down after 30 minutes of inactivity (the disc isn't mounted when system starts): /usr/bin/hdparm -S 241 /dev/sdb

Re: [systemd-devel] [PATCH] networkd: dont configure route if lease doesn't have one

2014-04-29 Thread Tom Gundersen
Applied. Thanks! [but I had to rebase, so please check that it still works :) ] -t On Tue, Apr 29, 2014 at 10:40 PM, Umut Tezduyar Lindskog wrote: > --- > src/libsystemd-network/sd-dhcp-lease.c | 34 --- > src/network/networkd-link.c| 160 > ++--

[systemd-devel] [PATCH] networkd: dont configure route if lease doesn't have one

2014-04-29 Thread Umut Tezduyar Lindskog
--- src/libsystemd-network/sd-dhcp-lease.c | 34 --- src/network/networkd-link.c| 160 ++-- 2 files changed, 110 insertions(+), 84 deletions(-) diff --git a/src/libsystemd-network/sd-dhcp-lease.c b/src/libsystemd-network/sd-dhcp-lease.c index aa479f

Re: [systemd-devel] Host and machine ids are equal (4c93d957bcf44b289c3e4edb5bd5c355): refusing to link journals

2014-04-29 Thread Ruben Kerkhof
On Mon, Apr 28, 2014 at 9:04 PM, Ruben Kerkhof wrote: > I would have expected that to be 'Initializing machine ID from container > UUID.' > container_uuid is set in the environment: > > [root@testcontainer ~]# tr '\0' '\n' < /proc/1/environ | grep container > > container=systemd-nspawn > containe

[systemd-devel] [PATCH 0/2] core/cryptsetup: cleaned up patches

2014-04-29 Thread Przemek Rudy
Applied previous comments. Przemek Rudy (2): core/cryptsetup: Add WantsMountFor option to enable fallback to password request for crypt mounts. core/cryptsetup: Remove duplicated code. src/core/automount.c | 2 +- src/core/dbus-unit.c | 3 +- src/core/

[systemd-devel] [PATCH 1/2] core/cryptsetup: Add WantsMountFor option to enable fallback to password request for crypt mounts.

2014-04-29 Thread Przemek Rudy
--- src/core/dbus-unit.c | 1 + src/core/load-fragment-gperf.gperf.m4 | 1 + src/core/load-fragment.c | 47 +++ src/core/load-fragment.h | 1 + src/core/manager.c| 15 src/core/manager.h| 6 ++

[systemd-devel] [PATCH 2/2] core/cryptsetup: Remove duplicated code.

2014-04-29 Thread Przemek Rudy
--- src/core/automount.c | 2 +- src/core/dbus-unit.c | 4 +- src/core/load-fragment-gperf.gperf.m4 | 4 +- src/core/load-fragment.c | 55 + src/core/load-fragment.h | 3 +- src/core/manager.c| 24 +--

Re: [systemd-devel] Delaying (SSH) key generation until the urandom pool is initialized

2014-04-29 Thread Tom Gundersen
On Tue, Apr 29, 2014 at 8:43 PM, Florian Weimer wrote: > The message at > > contains two boot traces from virtual machines which show that the SSH key > is generated before the kernel pool is sufficiently seeded. > > Would i

Re: [systemd-devel] Delaying (SSH) key generation until the urandom pool is initialized

2014-04-29 Thread Cristian Rodríguez
El 29/04/14 14:43, Florian Weimer escribió: The message at contains two boot traces from virtual machines which show that the SSH key is generated before the kernel pool is sufficiently seeded. Would it be possible using

[systemd-devel] Delaying (SSH) key generation until the urandom pool is initialized

2014-04-29 Thread Florian Weimer
The message at contains two boot traces from virtual machines which show that the SSH key is generated before the kernel pool is sufficiently seeded. Would it be possible using socket activation to create the listening

Re: [systemd-devel] [PATCH] logind: allow suspending if there are no displays

2014-04-29 Thread Mantas Mikulėnas
On Mon, Apr 28, 2014 at 6:10 PM, Lennart Poettering wrote: > On Mon, 28.04.14 00:44, Mantas Mikulėnas (graw...@gmail.com) wrote: > >> With proprietary graphics drivers, there won't be any 'drm' devices in >> sysfs, so logind will never suspend the system upon closing the lid, >> even if only one (

Re: [systemd-devel] [PATCH] Add support for TuxOnIce hibernation

2014-04-29 Thread Kay Sievers
On Tue, Apr 29, 2014 at 2:36 PM, Julien Muchembled wrote: > Le 04/29/14 13:39, Kay Sievers a écrit : >> Is this available in the upstream kernel, or planned to to be merged? > > It's not available in vanilla. > I don't know if it's planned to be merged. > >> Systemd does not support any unmerged

Re: [systemd-devel] [PATCH] Add support for TuxOnIce hibernation

2014-04-29 Thread Julien Muchembled
Le 04/29/14 13:39, Kay Sievers a écrit : > On Tue, Apr 29, 2014 at 1:16 PM, Julien Muchembled wrote: >> Homepage: http://tuxonice.net/ >> --- >> src/shared/sleep-config.c | 6 ++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c >> ind

Re: [systemd-devel] [PATCH] Add support for TuxOnIce hibernation

2014-04-29 Thread Kay Sievers
On Tue, Apr 29, 2014 at 1:16 PM, Julien Muchembled wrote: > Homepage: http://tuxonice.net/ > --- > src/shared/sleep-config.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c > index cf1cd40..d1f7fb1 100644 > --- a/src/shared/slee

[systemd-devel] [PATCH] Add support for TuxOnIce hibernation

2014-04-29 Thread Julien Muchembled
Homepage: http://tuxonice.net/ --- src/shared/sleep-config.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index cf1cd40..d1f7fb1 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -224,6 +224,12 @@ static boo

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

2014-04-29 Thread Tom Gundersen
On Tue, Apr 29, 2014 at 12:37 PM, Lennart Poettering wrote: > On Tue, 29.04.14 03:27, Tom Gundersen (tome...@kemper.freedesktop.org) wrote: > >> +case DHCP_OPTION_NTP_SERVER: >> +if (len && !(len % 4)) { >> +unsigned i; >> + >> +

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

2014-04-29 Thread Lennart Poettering
On Tue, 29.04.14 03:27, Tom Gundersen (tome...@kemper.freedesktop.org) wrote: > +case DHCP_OPTION_NTP_SERVER: > +if (len && !(len % 4)) { > +unsigned i; > + > +lease->ntp_size = len / 4; > + > +free(lea

Re: [systemd-devel] systemd freezes after rshd execution, if network connection is down

2014-04-29 Thread Harald Hoyer
Am 28.04.2014 13:33, schrieb Jimmy Assarsson: > Hi, > > We stumbled upon a freeze/block in systemd. > The problem occurs when a rshd (socket activated) execution is completed, the > network connection is down and systemd is closing the socket. > This causes a long (60 seconds) freeze where it's n

Re: [systemd-devel] [PATCH] networkd: do not complain about IFF_RUNNING

2014-04-29 Thread Umut Tezduyar Lindskog
On Sun, Apr 27, 2014 at 11:35 PM, Tom Gundersen wrote: > On Sun, Apr 27, 2014 at 10:33 PM, Umut Tezduyar Lindskog > wrote: >> Otherwise: >> eth0: unknown link flags gained: 0x00040 (ignoring) > > Hm, so this is basically working as intended at the moment. I.e., we > log any change in the flags, e