[systemd-devel] [RFC] load-fragment: use unquote_first_word in config_parse_exec

2015-05-30 Thread Filipe Brandenburger
This is an attempt to convert it from using FOREACH_WORD_QUOTED into a loop using unquote_first_word repeatedly. Additionally, we're looping through the arguments only once and using _cleanup_ functions to manage objects owned by this function. Some notes: - There is some difference in how unquot

[systemd-devel] [PATCH] util: Refactor common cunescape block in unquote_first_word

2015-05-30 Thread Filipe Brandenburger
Get rid of code duplication here. --- Some alternatives I considered: 1) Keep a separate bool escape and set it when we see a backslash, still keeping state set to VALUE or SINGLE_QUOTE or DOUBLE_QUOTE. 2) Create the enum so that ESCAPE has a bit value like 0x100 or similar, so that we can

Re: [systemd-devel] What does udevd do

2015-05-30 Thread Andrei Borzenkov
В Sun, 31 May 2015 10:26:46 +0800 cee1 пишет: > 2015-05-31 5:52 GMT+08:00 Lennart Poettering : > >> Then udevd is only responsible for > >> 1) Making nodes, and doing other device initialization stuffs. > > > > udev does not create device nodes. That's the job of devtmpfs in the > > kernel. udev

Re: [systemd-devel] What does udevd do

2015-05-30 Thread Greg KH
On Sun, May 31, 2015 at 10:26:46AM +0800, cee1 wrote: > 2015-05-31 5:52 GMT+08:00 Lennart Poettering : > >> Then udevd is only responsible for > >> 1) Making nodes, and doing other device initialization stuffs. > > > > udev does not create device nodes. That's the job of devtmpfs in the > > kernel.

Re: [systemd-devel] What does udevd do

2015-05-30 Thread cee1
2015-05-31 5:52 GMT+08:00 Lennart Poettering : >> Then udevd is only responsible for >> 1) Making nodes, and doing other device initialization stuffs. > > udev does not create device nodes. That's the job of devtmpfs in the > kernel. udev will however apply access modes/acls/fix ownership create >

Re: [systemd-devel] [ANNOUNCE] Separating gudev from systemd

2015-05-30 Thread Zbigniew Jędrzejewski-Szmek
On Wed, May 27, 2015 at 11:21:06AM +0200, Bastien Nocera wrote: > On Wed, 2015-05-20 at 12:01 +0200, David Herrmann wrote: > > Hi > > > > On Wed, May 20, 2015 at 8:46 AM, Tom Gundersen wrote: > > > On Wed, May 20, 2015 at 8:24 AM, Martin Pitt < > > > martin.p...@ubuntu.com> wrote: > > > > Hey Dav

Re: [systemd-devel] Questions about socket activated services

2015-05-30 Thread Tom Gundersen
On Sat, May 30, 2015 at 3:36 PM, cee1 wrote: > Which service type should a socket activated service be? > 1. For systemd-udevd.service and systemd-journald.service, they are notify > type > 2. For dbus.service, it is simple type A service can be of type 'simple' if all that other services care a

Re: [systemd-devel] What does udevd do

2015-05-30 Thread Lennart Poettering
On Sat, 30.05.15 21:53, cee1 (fykc...@gmail.com) wrote: > Hi all, > > If a service wants to be notified when a device is plugged in, it > invokes routines of libudev which actually: > * Receive notifications from the kernel via NETLINK socket. Not quite. udev receives notifications from the kern

Re: [systemd-devel] systemd-nspawn: cannot join existing macvlan

2015-05-30 Thread Kai Krakow
Lennart Poettering schrieb: > On Mon, 25.05.15 16:26, Kai Krakow (hurikha...@gmail.com) wrote: > >> Lennart Poettering schrieb: >> >> > On Fri, 08.05.15 20:53, Kai Krakow (hurikha...@gmail.com) wrote: >> > >> >> > # systemd-nspawn -b --link-journal=try-guest >> >> > # --network-macvlan=enp4s0

Re: [systemd-devel] What does udevd do

2015-05-30 Thread Tomasz Torcz
On Sat, May 30, 2015 at 09:53:36PM +0800, cee1 wrote: > Hi all, > > If a service wants to be notified when a device is plugged in, it > invokes routines of libudev which actually: > * Receive notifications from the kernel via NETLINK socket. > * Query the detailed info from /sys/... > > Am I righ

Re: [systemd-devel] Questions about socket activated services

2015-05-30 Thread Andrei Borzenkov
В Sat, 30 May 2015 21:36:02 +0800 cee1 пишет: > Hi all, > > Which service type should a socket activated service be? > 1. For systemd-udevd.service and systemd-journald.service, they are notify > type > 2. For dbus.service, it is simple type > It can be any type. notify is always preferred if

Re: [systemd-devel] nspawn: No Return key in machinectl login?

2015-05-30 Thread Tobias Hunger
Lennart, this apparently is a problem with machinectl login: If I just use nsenter --target --mount --uts --ipc --net as root the return key works fine. TERM=xterm with nsenter (no surprise considering that I run that from a xterm;-), while it is vt220 in machinectl. Any ideas? Best Regards,

[systemd-devel] What does udevd do

2015-05-30 Thread cee1
Hi all, If a service wants to be notified when a device is plugged in, it invokes routines of libudev which actually: * Receive notifications from the kernel via NETLINK socket. * Query the detailed info from /sys/... Am I right? Then udevd is only responsible for 1) Making nodes, and doing othe

[systemd-devel] Questions about socket activated services

2015-05-30 Thread cee1
Hi all, Which service type should a socket activated service be? 1. For systemd-udevd.service and systemd-journald.service, they are notify type 2. For dbus.service, it is simple type Does socket activation handles the timeout case? E.g. A.service connects to B.socket, but B.service spends a long

Re: [systemd-devel] [PATCH 1/2] configure.ac: strip off trailing slashed from $rootprefix

2015-05-30 Thread Christian Seiler
On 05/30/2015 12:42 PM, Daniel Mack wrote: > On 05/30/2015 12:31 PM, Christian Seiler wrote: >> Speaking of: using 'echo' for shell scripting is problematic, because >> while bash, busybox's sh, mksh, pdksh and zsh don't interpret escape >> sequences (\n, \0oo, ...) by default when using echo and i

Re: [systemd-devel] [PATCH 1/2] configure.ac: strip off trailing slashed from $rootprefix

2015-05-30 Thread Daniel Mack
On 05/30/2015 12:31 PM, Christian Seiler wrote: > On 05/30/2015 10:28 AM, Daniel Mack wrote: >> On 05/30/2015 08:50 AM, Mike Gilbert wrote: >>> On Fri, May 29, 2015 at 8:05 PM, Daniel Mack wrote: Make sure the variable set via --with-rootprefix= does not contain a trailing slash, so man

Re: [systemd-devel] [PATCH 1/2] configure.ac: strip off trailing slashed from $rootprefix

2015-05-30 Thread Christian Seiler
On 05/30/2015 10:28 AM, Daniel Mack wrote: > On 05/30/2015 08:50 AM, Mike Gilbert wrote: >> On Fri, May 29, 2015 at 8:05 PM, Daniel Mack wrote: >>> Make sure the variable set via --with-rootprefix= does not contain a >>> trailing slash, so man pages can use entities like "&rootprefix;/lib" >>> wit

Re: [systemd-devel] [PATCH v3] systemctl: drop hardcoded chkconfig invocation

2015-05-30 Thread Michael Biebl
2015-05-28 15:02 GMT+02:00 Martin Pitt : > Lennart Poettering [2015-05-28 13:05 +0200]: >> Nah, please remove this part. We should not ship that upstream. THis >> is something that Fedora's initscripts.rpm should provide eventually, >> and should be neither shipped with systemd upstream nor systemd

Re: [systemd-devel] [PATCH 1/2] configure.ac: strip off trailing slashed from $rootprefix

2015-05-30 Thread Daniel Mack
On 05/30/2015 08:50 AM, Mike Gilbert wrote: > On Fri, May 29, 2015 at 8:05 PM, Daniel Mack wrote: >> Make sure the variable set via --with-rootprefix= does not contain a >> trailing slash, so man pages can use entities like "&rootprefix;/lib" >> without ending up having double slashes. >> --- >>

Re: [systemd-devel] [PATCH] build-sys: Normalize paths of configure options

2015-05-30 Thread systemd github import bot
Patchset imported to github. Pull request: -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mail