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

2013-11-03 Thread Peter Lemenkov
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 it has a D-Bus name now. Does it add anything if I change type of a main

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

2013-11-03 Thread David Strauss
On Sat, Nov 2, 2013 at 11:40 PM, Peter Lemenkov lemen...@gmail.com wrote: Does it add anything if I change type of a main service to dbus thus allowing systemd to know for sure if my service is fully initialized? Yes. Changing to Type=dbus will cause systemd to only consider the service fully

Re: [systemd-devel] [PATCH 1/2]add parameters checking for 'udevadm settle'

2013-11-03 Thread YangZhiyong
-Original Message- From: Zbigniew Jędrzejewski-Szmek [mailto:zbys...@in.waw.pl] Sent: Tuesday, October 29, 2013 9:38 PM To: YangZhiyong Cc: systemd-devel@lists.freedesktop.org; k...@vrfy.org Subject: Re: [systemd-devel] [PATCH 1/2]add parameters checking for 'udevadm settle' On

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

2013-11-03 Thread Daniel Mack
On 10/30/2013 03:48 AM, Kay Sievers wrote: On Wed, Oct 23, 2013 at 1:22 AM, Kay Sievers k...@vrfy.org wrote: [update] To avoid any duplication of work, here are the tools which still need conversion. Please reply to this mail, in case you decide to work on anything in that area. -

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

2013-11-03 Thread Colin Guthrie
'Twas brillig, and Peter Lemenkov at 03/11/13 06:40 did gyre and gimble: 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,

[systemd-devel] [PATCH 1/2] add parameters checking for 'udevadm settle

2013-11-03 Thread Yang Zhiyong
This patch adds parameters checking for 'udevadm settle'. --- src/udev/udevadm-settle.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/udev/udevadm-settle.c b/src/udev/udevadm-settle.c index c4fc4ee..06f4004 100644 --- a/src/udev/udevadm-settle.c +++

[systemd-devel] [PATCH 2/2] add parameters checking for 'udevadm trigger'

2013-11-03 Thread Yang Zhiyong
This patch adds parameters checking for 'udevadm trigger'. --- src/udev/udevadm-trigger.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/udev/udevadm-trigger.c b/src/udev/udevadm-trigger.c index f472996..ee6a4a0 100644 ---

[systemd-devel] [PATCH] man: fix typo

2013-11-03 Thread Ronny Chevalier
--- man/systemd-run.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/systemd-run.xml b/man/systemd-run.xml index 0881561..cc8a68a 100644 --- a/man/systemd-run.xml +++ b/man/systemd-run.xml @@ -60,7 +60,7 @@ along with systemd; If not, see http://www.gnu.org/licenses/.

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

2013-11-03 Thread Hoyer, Marko (ADITG/SW2)
-Original Message- From: systemd-devel-boun...@lists.freedesktop.org [mailto:systemd-devel- boun...@lists.freedesktop.org] On Behalf Of Colin Guthrie Sent: Sunday, November 03, 2013 12:54 PM To: Peter Lemenkov; systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] Need

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

2013-11-03 Thread Marc-Antoine Perennou
On Sunday, November 3, 2013, Daniel Mack wrote: On 10/30/2013 03:48 AM, Kay Sievers wrote: On Wed, Oct 23, 2013 at 1:22 AM, Kay Sievers k...@vrfy.orgjavascript:; wrote: [update] To avoid any duplication of work, here are the tools which still need conversion. Please reply to this

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

2013-11-03 Thread Jan Engelhardt
On Sunday 2013-11-03 14:42, Hoyer, Marko (ADITG/SW2) wrote: Isn't the classical Linux way an option to? - the daemon does its initialization with the calling thread - once it is done with the initialization, it forks off a process that goes on with the daemons work (the main loop probably) - the

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

2013-11-03 Thread Cristian Rodríguez
El 03/11/13 10:42, Hoyer, Marko (ADITG/SW2) escribió: Isn't the classical Linux way an option to? - the daemon does its initialization with the calling thread - once it is done with the initialization, it forks off a process that goes on with the daemons work (the main loop probably) - the

[systemd-devel] Power aware units

2013-11-03 Thread Bastien Nocera
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 metadata for units that allows launchd to stop and start particular tasks

Re: [systemd-devel] Power aware units

2013-11-03 Thread Kay Sievers
On Sun, Nov 3, 2013 at 3:36 PM, Bastien Nocera had...@hadess.net wrote: 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] Power aware units

2013-11-03 Thread Bastien Nocera
On Sun, 2013-11-03 at 16:06 +0100, Kay Sievers wrote: On Sun, Nov 3, 2013 at 3:36 PM, Bastien Nocera had...@hadess.net wrote: 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

Re: [systemd-devel] Power aware units

2013-11-03 Thread Bastien Nocera
On Sun, 2013-11-03 at 17:07 +0100, Bastien Nocera wrote: snip Systemd should not get any direct or indirect dependency on upower for primary service management tasks. It just doesn't sound right to do dependencies in this direction. That doesn't strike me as as crazy as it may seem.

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

2013-11-03 Thread Daniel Mack
On 11/03/2013 03:12 PM, Marc-Antoine Perennou wrote: On Sunday, November 3, 2013, Daniel Mack wrote: On 10/30/2013 03:48 AM, Kay Sievers wrote: On Wed, Oct 23, 2013 at 1:22 AM, Kay Sievers k...@vrfy.org javascript:; wrote: [update] To avoid any

Re: [systemd-devel] [PATCH 1/2] add parameters checking for 'udevadm settle

2013-11-03 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Nov 03, 2013 at 07:49:02PM +0800, Yang Zhiyong wrote: This patch adds parameters checking for 'udevadm settle'. --- src/udev/udevadm-settle.c | 20 ++-- 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/udev/udevadm-settle.c

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

2013-11-03 Thread Hoyer, Marko (ADITG/SW2)
-Original Message- From: systemd-devel-boun...@lists.freedesktop.org [mailto:systemd-devel- boun...@lists.freedesktop.org] On Behalf Of Cristian Rodríguez Sent: Sunday, November 03, 2013 3:25 PM To: systemd-devel@lists.freedesktop.org Subject: Re: [systemd-devel] Need advice on

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

2013-11-03 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Nov 03, 2013 at 06:18:39PM +, Hoyer, Marko (ADITG/SW2) wrote: Thx for the fast feedback. Good hint with the man page, I'll have a more detailed look on the page. I think when you need to stay a bit independent from systemd and don't have a dbus interface which can be used for

Re: [systemd-devel] [PATCH 1/2] add parameters checking for 'udevadm settle

2013-11-03 Thread YangZhiyong
-Original Message- From: Zbigniew Jędrzejewski-Szmek [mailto:zbys...@in.waw.pl] Sent: Monday, November 04, 2013 12:56 AM To: Yang Zhiyong Cc: systemd-devel@lists.freedesktop.org; k...@vrfy.org Subject: Re: [systemd-devel][PATCH 1/2] add parameters checking for 'udevadm settle

[systemd-devel] [PATCH v3] add parameters checking for 'udevadm settle

2013-11-03 Thread Yang Zhiyong
This patch adds parameters checking for 'udevadm settle': - Add extraneous argument checking. If exist extraneous argument,the program will print stderr and exit. - Change seconds's type from int to unsigned int. And use safe_atou() for catching invalid timeout value. ---