[systemd-devel] Systemd API for process management

2014-03-16 Thread Vetoshkin Nikita
Hi there! I'm exploring possibility to use systemd as process manager / "containizer" for Apache Mesos (http://mesos.apache.org). At the moment I'm trying to use systemctl/systemd-run to implement following: * Start process with specified restrictions (It works wih systemd 211) * Stop process - sys

Re: [systemd-devel] [PATCH] core, libsystemd, systemd, timedate, udev: spelling fixes

2014-03-16 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Mar 14, 2014 at 09:13:38PM +0100, Miklos Vajna wrote: > --- > src/core/service.c | 2 +- > src/core/unit.c | 2 +- > src/libsystemd/sd-bus/bus-message.c | 2 +- > src/libsystemd/sd-bus/sd-bus.c | 4 ++-- > src/systemd/sd-resolve.h| 2 +-

[systemd-devel] systemd-journal-remote

2014-03-16 Thread Zbigniew Jędrzejewski-Szmek
[CC: people who commented on previous version of patches or otherwise expressed interest] Hi, I now pushed patches which add systemd-journal-remote. They are based on the previous version from 2012, but were rewritten to use sd-event and epoll in µhttpd. Basic usage goes like this: pull: remot

Re: [systemd-devel] [PATCHv2] man: improve wording of systemctl's --after/--before

2014-03-16 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Mar 17, 2014 at 12:03:46AM -0400, Jason St. John wrote: > Commit 4a77ca7 was an attempt at fixing the wording of --after and --before, > but the new wording was unclear. > > Split the combined --after/--before section into a separate section for > each, explicitly state what each option do

Re: [systemd-devel] [PATCH] man: improve wording of systemctl's --after/--before

2014-03-16 Thread Jason St. John
On Sat, Mar 15, 2014 at 12:17 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Mar 13, 2014 at 09:03:09AM +0400, Andrey Borzenkov wrote: > > В Wed, 12 Mar 2014 23:07:32 -0400 > > "Jason St. John" пишет: > > > > > Commit 4a77ca7 was an attempt at fixing the wording of --after and > > > --before,

[systemd-devel] [PATCHv2] man: improve wording of systemctl's --after/--before

2014-03-16 Thread Jason St. John
Commit 4a77ca7 was an attempt at fixing the wording of --after and --before, but the new wording was unclear. Split the combined --after/--before section into a separate section for each, explicitly state what each option does, and add information about how these lists are generated. Reported-by:

Re: [systemd-devel] The Bridge on the River PID EINS

2014-03-16 Thread poma
On 17.03.2014 00:34, Kai Krakow wrote: > poma schrieb: > >> On 09.03.2014 11:39, Kai Krakow wrote: >>> poma schrieb: >>> BRIDGED !? $ ll /etc/systemd/network/ ... bridge0.netdev ... enp3s0.network $ cat /etc/systemd/network/enp3s0.network [Match] Name

Re: [systemd-devel] [patch] Add -lresolv to libsystemd_intenal_la_LIBADD to prevent underlinking issues

2014-03-16 Thread Lennart Poettering
On Sun, 16.03.14 19:49, Samuli Suominen (ssuomi...@gentoo.org) wrote: > > On 16/03/14 15:52, Zbigniew Jędrzejewski-Szmek wrote: > > On Sun, Mar 16, 2014 at 10:10:15AM +0200, Samuli Suominen wrote: > >> Since -Wl,-fuse-ld=gold addition, this happens on IA64 arch where > >> binutils's ld gold does

Re: [systemd-devel] [patch] Add -lresolv to libsystemd_intenal_la_LIBADD to prevent underlinking issues

2014-03-16 Thread Lennart Poettering
On Sun, 16.03.14 14:52, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > On Sun, Mar 16, 2014 at 10:10:15AM +0200, Samuli Suominen wrote: > > Since -Wl,-fuse-ld=gold addition, this happens on IA64 arch where > > binutils's ld gold doesn't support --gc-sections yet: > > Maybe you shoul

Re: [systemd-devel] The Bridge on the River PID EINS

2014-03-16 Thread Kai Krakow
poma schrieb: > On 09.03.2014 11:39, Kai Krakow wrote: >> poma schrieb: >> >>> BRIDGED !? >>> >>> $ ll /etc/systemd/network/ >>> ... bridge0.netdev >>> ... enp3s0.network >>> >>> $ cat /etc/systemd/network/enp3s0.network >>> [Match] >>> Name=enp3s0 >>> >>> [Network] >>> Address=192.168.2.2/24 >

Re: [systemd-devel] [PATCH rebased] Use strlen even for constant strings

2014-03-16 Thread Josh Triplett
On Sun, Mar 16, 2014 at 02:56:10PM +0100, Zbigniew Jędrzejewski-Szmek wrote: > On Sat, Mar 15, 2014 at 11:40:07AM -0700, Josh Triplett wrote: > > GCC optimizes strlen("string constant") to a constant, even with -O0. > > Thus, replace patterns like sizeof("string constant")-1 with > > strlen("string

Re: [systemd-devel] unable to bring an interface UP with systemd-networkd

2014-03-16 Thread Tom Gundersen
On Sun, Mar 16, 2014 at 6:00 PM, arnaud gaboury wrote: >> >> So we were not automatically upping the bridged interface from nspawn. >> I pushed a change to git just now which does that. Thanks for testing. >> >> Tom > Correct. The only way for me to bring it up at boot is to create a . > network

Re: [systemd-devel] [patch] Add -lresolv to libsystemd_intenal_la_LIBADD to prevent underlinking issues

2014-03-16 Thread Samuli Suominen
On 16/03/14 15:52, Zbigniew Jędrzejewski-Szmek wrote: > On Sun, Mar 16, 2014 at 10:10:15AM +0200, Samuli Suominen wrote: >> Since -Wl,-fuse-ld=gold addition, this happens on IA64 arch where binutils's >> ld gold doesn't support --gc-sections yet: > Maybe you should just use bfd linker then? Gold

Re: [systemd-devel] unable to bring an interface UP with systemd-networkd

2014-03-16 Thread arnaud gaboury
> > So we were not automatically upping the bridged interface from nspawn. > I pushed a change to git just now which does that. Thanks for testing. > > Tom Correct. The only way for me to bring it up at boot is to create a . network profile with this inside [Match] Name = vb* This hack works but

Re: [systemd-devel] [patch] Add -lresolv to libsystemd_intenal_la_LIBADD to prevent underlinking issues

2014-03-16 Thread Michael Biebl
Am 16.03.2014 14:52 schrieb "Zbigniew Jędrzejewski-Szmek" : > > On Sun, Mar 16, 2014 at 10:10:15AM +0200, Samuli Suominen wrote: > > Since -Wl,-fuse-ld=gold addition, this happens on IA64 arch where binutils's ld gold doesn't support --gc-sections yet: > > Maybe you should just use bfd linker then?

Re: [systemd-devel] [PATCH rebased] Use strlen even for constant strings

2014-03-16 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Mar 15, 2014 at 11:40:07AM -0700, Josh Triplett wrote: > GCC optimizes strlen("string constant") to a constant, even with -O0. > Thus, replace patterns like sizeof("string constant")-1 with > strlen("string constant") where possible, for clarity. In particular, > for expressions intended t

Re: [systemd-devel] unable to bring an interface UP with systemd-networkd

2014-03-16 Thread Tom Gundersen
On Tue, Mar 11, 2014 at 6:42 PM, arnaud gaboury wrote: > Hi, > > I run a dahlia container on a hortensia machine. Both are Arch boxes, > and container is managed with nspawn and networkd. > > When I boot the hortensia machine, part of the ip addr output is : > > gabx@hortensia ➤➤ ~ % ip addr > ...

Re: [systemd-devel] [patch] Add -lresolv to libsystemd_intenal_la_LIBADD to prevent underlinking issues

2014-03-16 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Mar 16, 2014 at 10:10:15AM +0200, Samuli Suominen wrote: > Since -Wl,-fuse-ld=gold addition, this happens on IA64 arch where binutils's > ld gold doesn't support --gc-sections yet: Maybe you should just use bfd linker then? Gold was only necessary for the ifunc stuff, which is gone anyway

Re: [systemd-devel] unable to bring an interface UP with systemd-networkd

2014-03-16 Thread Tom Gundersen
On Tue, Mar 11, 2014 at 6:42 PM, arnaud gaboury wrote: > I run a dahlia container on a hortensia machine. Both are Arch boxes, > and container is managed with nspawn and networkd. > > When I boot the hortensia machine, part of the ip addr output is : > > gabx@hortensia ➤➤ ~ % ip addr > ...

Re: [systemd-devel] The Bridge on the River PID EINS

2014-03-16 Thread Tom Gundersen
On Sun, Mar 9, 2014 at 5:58 AM, poma wrote: > > % > > STATIC OK! > > $ ll /etc/systemd/network/ > ... enp3s0.network > > $ cat /etc/systemd/network/enp3s0.network > [Match] > Name=enp3s0 > > [Network] > Address=192.168.2.2/24

Re: [systemd-devel] The Bridge on the River PID EINS

2014-03-16 Thread Tom Gundersen
On Mon, Mar 10, 2014 at 9:12 PM, Umut Tezduyar wrote: > I tried out a similar configuration and couldn't get the bridge up. I > tried it on Arch with systemd 210. > > bridge.netdev > [NetDev] > Name=bridge0 > Kind=bridge > > u.network > [NetDev] > Name=bridge0 > Kind=bridge > > Further debugging,

[systemd-devel] [patch] Add -lresolv to libsystemd_intenal_la_LIBADD to prevent underlinking issues

2014-03-16 Thread Samuli Suominen
Since -Wl,-fuse-ld=gold addition, this happens on IA64 arch where binutils's ld gold doesn't support --gc-sections yet: libtool: link: ia64-unknown-linux-gnu-gcc -shared -fPIC -DPIC src/libudev/.libs/libudev_la-libudev.o src/libudev/.libs/libudev_la-libudev-list.o src/libudev/.libs/libudev_la

Re: [systemd-devel] Passing variables from udev to unit

2014-03-16 Thread Peter Hutterer
On 15/03/2014 07:11 , Lennart Poettering wrote: On Fri, 14.03.14 08:53, Peter Hutterer (peter.hutte...@who-t.net) wrote: Hey, I have a service file wacom-inputattach@.service that is started from a udev rule: SUBSYSTEM=="tty|pnp", KERNEL=="ttyS[0-9]*", ATTRS{id}=="WACf*", TAG+="systemd"