Re: [systemd-devel] [PATCH 0/1] systemd will fail to compile if libgcrypt is missing

2013-11-04 Thread Lennart Poettering
On Sat, 02.11.13 02:11, Djalal Harouni (tix...@opendz.org) wrote: Hi list, I'm doing some systemd testing on clean machines. I'm building from git tree, and I've noticed that systemd autogen.sh will fail if the libgcrypt and its headers are missing, this will produce a buggy configure

Re: [systemd-devel] Power aware units

2013-11-04 Thread Jóhann B. Guðmundsson
On 11/03/2013 02:36 PM, Bastien Nocera wrote: In addition to that, would it make sense for distributions to start porting their cron jobs to use systemd? in Fedora we already have started that migration process for relevant units ( not all packages that contain ron jobs should be/will be

Re: [systemd-devel] Power aware units

2013-11-04 Thread Lennart Poettering
On Sun, 03.11.13 15:36, Bastien Nocera (had...@hadess.net) wrote: Heya, systemd already allows launching specific tasks based on a timer, and intervals, and I was wondering whether power awareness was something planned for launching and stopping units. MacOS X 10.9 has some additional

Re: [systemd-devel] Need advice on daemon's architecture

2013-11-04 Thread Lennart Poettering
On Sun, 03.11.13 10:40, Peter Lemenkov (lemen...@gmail.com) wrote: Hello All! I'm working on a system service which uses systemd intensively. Right now it's socket-activated, with main service of type simple. I recently added support for querying and publishing some internals via D-Bus, so

Re: [systemd-devel] Need advice on daemon's architecture

2013-11-04 Thread Lennart Poettering
On Sun, 03.11.13 13:42, Hoyer, Marko (ADITG/SW2) (mho...@de.adit-jv.com) wrote: If you are using systemd intensively, then you may want to use Type=notify. With type=dbus, systemd will consider things ready when you take the name on the bus, but this might not actually be the last thing

Re: [systemd-devel] Need advice on daemon's architecture

2013-11-04 Thread Simon McVittie
On 04/11/13 14:42, Lennart Poettering wrote: A lot of (library) code is not happy with being initialized in one process and being used in another forked off one. For what it's worth, fork(3posix) also notes this: * A process shall be created with a single thread. If a multi-threaded process

[systemd-devel] [PATCH] [RFC] Configurable Timeouts/Restarts default values

2013-11-04 Thread Oleksii Shevchuk
https://bugs.freedesktop.org/show_bug.cgi?id=71132 Patch adds DefaultTimeoutStartSec, DefaultTimeoutStopSec, DefaultRestartSec configuration options to manager configuration file. --- src/core/device.c| 2 +- src/core/main.c | 9 + src/core/manager.h | 3 +++ src/core/mount.c

Re: [systemd-devel] Power aware units

2013-11-04 Thread Bastien Nocera
On Mon, 2013-11-04 at 15:27 +0100, Lennart Poettering wrote: On Sun, 03.11.13 15:36, Bastien Nocera (had...@hadess.net) wrote: Heya, systemd already allows launching specific tasks based on a timer, and intervals, and I was wondering whether power awareness was something planned for

Re: [systemd-devel] Power aware units

2013-11-04 Thread Lennart Poettering
On Mon, 04.11.13 16:10, Bastien Nocera (had...@hadess.net) wrote: And I figure other ones to add here are: - mandb cache cleanups - rotation of legacy log files (are there more usecases you can come up with?) All these are exclusively cronjobs, i.e. services triggered only by

Re: [systemd-devel] [PATCH] [RFC] Configurable Timeouts/Restarts default values

2013-11-04 Thread Lennart Poettering
On Mon, 04.11.13 17:03, Oleksii Shevchuk (alx...@gmail.com) wrote: https://bugs.freedesktop.org/show_bug.cgi?id=71132 Patch adds DefaultTimeoutStartSec, DefaultTimeoutStopSec, DefaultRestartSec configuration options to manager configuration file. Looks good but please update man page too!

Re: [systemd-devel] Need advice on daemon's architecture

2013-11-04 Thread Colin Walters
On Mon, 2013-11-04 at 14:57 +, Simon McVittie wrote: See Linux signal(7) for a list of async-signal-safe operations: it's not as long a list as you might hope, and mostly contains syscalls. In particular, malloc() is not on the list, which rules out a lot of library code... Given however

[systemd-devel] [PATCH] nspawn does not correctly handle I/O redirection

2013-11-04 Thread Luke T . Shumaker
A couple of weeks ago, I reported a bug that systemd-nspawn does not correctly handle I/O redirection[1]. I described in detail the several smaller bugs that lead up to both stdin and stdout redirection being broken, and uploaded a patch that fixes stdout redirection. That patch is attached

Re: [systemd-devel] [PATCH] selinux: fix selinux check for transient units

2013-11-04 Thread Lennart Poettering
On Thu, 31.10.13 15:51, Vaclav Pavlin (vpav...@redhat.com) wrote: From: Václav Pavlín vpav...@redhat.com Sorry, I don't understand what this patch is doing. Please explain in a commit message! --- src/core/selinux-access.c | 59 ++-

Re: [systemd-devel] [PATCH] selinux: fix selinux check for transient units

2013-11-04 Thread Kay Sievers
On Mon, Nov 4, 2013 at 5:06 PM, Lennart Poettering lenn...@poettering.net wrote: Sorry, I don't understand what this patch is doing. Please explain in a commit message! The file format should also be documented in the code itself, if not done by selinx, then we need to add the link to the doc.

Re: [systemd-devel] Need advice on daemon's architecture

2013-11-04 Thread Hoyer, Marko (ADITG/SW2)
-Original Message- From: Lennart Poettering [mailto:lenn...@poettering.net] Sent: Monday, November 04, 2013 3:42 PM To: Hoyer, Marko (ADITG/SW2) Cc: Colin Guthrie; Peter Lemenkov; systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] Need advice on daemon's architecture

[systemd-devel] [PATCH] [RFCv2] Configurable Timeouts/Restarts default values

2013-11-04 Thread Oleksii Shevchuk
https://bugs.freedesktop.org/show_bug.cgi?id=71132 Patch adds DefaultTimeoutStartSec, DefaultTimeoutStopSec, DefaultRestartSec configuration options to manager configuration file. --- man/systemd-system.conf.xml | 12 man/systemd.mount.xml | 4 ++-- man/systemd.service.xml

Re: [systemd-devel] Power aware units

2013-11-04 Thread Jan Engelhardt
On Monday 2013-11-04 16:52, Lennart Poettering wrote: Those _were_ all cron jobs. I don't think that any of those should be cron jobs, especially the 4 AM update-db or man-db runs. Anacron is just patching over the fact that most machines aren't running at that time of day. Well, but if

Re: [systemd-devel] [PATCH] selinux: fix selinux check for transient units

2013-11-04 Thread Lennart Poettering
On Mon, 04.11.13 17:06, Lennart Poettering (lenn...@poettering.net) wrote: On Thu, 31.10.13 15:51, Vaclav Pavlin (vpav...@redhat.com) wrote: From: Václav Pavlín vpav...@redhat.com Sorry, I don't understand what this patch is doing. Please explain in a commit message! Hmm, so, here's

Re: [systemd-devel] [PATCH] selinux: fix selinux check for transient units

2013-11-04 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/04/2013 02:05 PM, Lennart Poettering wrote: On Mon, 04.11.13 17:06, Lennart Poettering (lenn...@poettering.net) wrote: On Thu, 31.10.13 15:51, Vaclav Pavlin (vpav...@redhat.com) wrote: From: Václav Pavlín vpav...@redhat.com Sorry, I

[systemd-devel] Make X11 logind session unconditionally active

2013-11-04 Thread Ivan Shapovalov
Hello! I'm still trying to make my friendship with logind. I have a headless server with Xvnc server running on it. Under the server a logind session is created by the DM. The session has Type=x11, but VTNr=0 since Xvnc does not bind itself to any VT. Hence the session is always Active=no

[systemd-devel] [PATCH] systemctl: make LOAD column width dynamic

2013-11-04 Thread Mantas Mikulėnas
Otherwise 'not-found' overflows into the ACTIVE column. --- src/systemctl/systemctl.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 9f5e273..04699be 100644 --- a/src/systemctl/systemctl.c +++

Re: [systemd-devel] [PATCH 0/1] systemd will fail to compile if libgcrypt is missing

2013-11-04 Thread Jan Engelhardt
On Monday 2013-11-04 13:01, Lennart Poettering wrote: On Sat, 02.11.13 02:11, Djalal Harouni (tix...@opendz.org) wrote: I'm building from git tree, and I've noticed that systemd autogen.sh will fail if the libgcrypt and its headers are missing. This is expected that way. If you build from git

Re: [systemd-devel] Linux kernel API

2013-11-04 Thread ScotXW
Hi, On 11/02/2013 12:15 AM, Greg KH wrote: On Sat, Nov 02, 2013 at 12:05:23AM +0100, ScotXW wrote: On 11/01/2013 06:51 PM, Greg KH wrote: On Fri, Nov 01, 2013 at 06:47:00PM +0100, ScotXW wrote: Hi, systemd is written exclusively for the Linux kernel because this offers advantages over the

Re: [systemd-devel] Linux kernel API

2013-11-04 Thread Greg KH
On Mon, Nov 04, 2013 at 10:54:26PM +0100, ScotXW wrote: Hi, On 11/02/2013 12:15 AM, Greg KH wrote: On Sat, Nov 02, 2013 at 12:05:23AM +0100, ScotXW wrote: On 11/01/2013 06:51 PM, Greg KH wrote: On Fri, Nov 01, 2013 at 06:47:00PM +0100, ScotXW wrote: Hi, systemd is written

[systemd-devel] Scheme: Linux startup process with systemd

2013-11-04 Thread ScotXW
Hi, I created this [1] scheme. Can you help fill in the blank? I know there is very extensive documentation about systemd, it is way too extensive for my purposes, the home user. Regards, ScotX [1] https://commons.wikimedia.org/wiki/File:Linux_startup_process_wip.svg

Re: [systemd-devel] Scheme: Linux startup process with systemd

2013-11-04 Thread Jan Engelhardt
On Monday 2013-11-04 23:48, ScotXW wrote: Hi, I created this [1] scheme. Can you help fill in the blank? I know there is very extensive documentation about systemd, it is way too extensive for my purposes, the home user. [1]

Re: [systemd-devel] Scheme: Linux startup process with systemd

2013-11-04 Thread Kay Sievers
On Mon, Nov 4, 2013 at 11:48 PM, ScotXW shcsott...@yahoo.com wrote: I created this [1] scheme. Can you help fill in the blank? I know there is very extensive documentation about systemd, it is way too extensive for my purposes, the home user. Most of this is just misleading, plain wrong or

Re: [systemd-devel] Linux kernel API

2013-11-04 Thread Kok, Auke-jan H
On Mon, Nov 4, 2013 at 2:10 PM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Nov 04, 2013 at 10:54:26PM +0100, ScotXW wrote: Hi, On 11/02/2013 12:15 AM, Greg KH wrote: On Sat, Nov 02, 2013 at 12:05:23AM +0100, ScotXW wrote: On 11/01/2013 06:51 PM, Greg KH wrote: On Fri, Nov 01, 2013

Re: [systemd-devel] Scheme: Linux startup process with systemd

2013-11-04 Thread ScotXW
On 11/04/2013 11:55 PM, Jan Engelhardt wrote: On Monday 2013-11-04 23:48, ScotXW wrote: Hi, I created this [1] scheme. Can you help fill in the blank? I know there is very extensive documentation about systemd, it is way too extensive for my purposes, the home user. [1]

Re: [systemd-devel] Scheme: Linux startup process with systemd

2013-11-04 Thread ScotXW
Hi, On 11/05/2013 12:01 AM, Kay Sievers wrote: Most of this is just misleading, plain wrong or backwards. Systemd is not in-between the kernel and applications, especially not for the ones you listed. Yes it is, during the startup process! Y-axes represents the time, i.e. the start of

Re: [systemd-devel] Scheme: Linux startup process with systemd

2013-11-04 Thread Greg KH
On Tue, Nov 05, 2013 at 12:19:27AM +0100, ScotXW wrote: Hi, On 11/05/2013 12:01 AM, Kay Sievers wrote: Most of this is just misleading, plain wrong or backwards. Systemd is not in-between the kernel and applications, especially not for the ones you listed. Yes it is, during the

Re: [systemd-devel] Scheme: Linux startup process with systemd

2013-11-04 Thread Jan Engelhardt
On Tuesday 2013-11-05 00:19, ScotXW wrote: On 11/05/2013 12:01 AM, Kay Sievers wrote: Most of this is just misleading, plain wrong or backwards. Systemd is not in-between the kernel and applications, especially not for the ones you listed. [Yes is it] Y-axes represents the time How screwed

Re: [systemd-devel] Scheme: Linux startup process with systemd

2013-11-04 Thread Jan Engelhardt
On Tuesday 2013-11-05 00:28, ScotXW wrote: Seems rather strange to find GRUB and Linux in BIOS. And if you talk about Uboot and Redboot and whatever else, then marking the orange section as GRUB is sorta outta place. Linux kernel and GNU GRUB can be payloads to coreboot. That may be so,

Re: [systemd-devel] tree-wide conversion from libdbus to libsystemd-bus

2013-11-04 Thread Kay Sievers
On Fri, Nov 1, 2013 at 4:50 PM, Kay Sievers k...@vrfy.org wrote: [update] Simon, Zbigniew, Marc-Antoine you still work/plan to work on the stuff listed below? Please let us know. Thanks, Kay - loginctl Peeters Simon: I'll take ... (probably loginctl afterwards) - pam_systemd Zbigniew:

Re: [systemd-devel] Make X11 logind session unconditionally active

2013-11-04 Thread Lennart Poettering
On Tue, 05.11.13 00:51, Ivan Shapovalov (intelfx...@gmail.com) wrote: Hello! I'm still trying to make my friendship with logind. I have a headless server with Xvnc server running on it. Under the server a logind session is created by the DM. The session has Type=x11, but VTNr=0 since