Re: [systemd-devel] systemd hackfest on Developer Conference 2013

2012-08-21 Thread Václav Pavlín
Lennart Poettering píše v Út 21. 08. 2012 v 17:15 +0200: > On Tue, 14.08.12 17:32, Václav Pavlín ([email protected]) wrote: > > Heya, > Either would be fine with me, with a slight preference of before. Ok, so I would suggest to do it before. Another question is, if we should plan it for two da

[systemd-devel] [PATCH v9002 2/2] man: remove timezone(5) and add localtime(5)

2012-08-21 Thread Shawn Landden
--- Makefile.am|2 +- man/localtime.xml | 93 man/timezone.xml | 90 -- units/systemd-timedated.service.in |2 +- 4 files changed, 95 insertions(+), 92 deleti

[systemd-devel] [PATCH v9002 1/2] timedated: gather timezone from /etc/localtime sym target

2012-08-21 Thread Shawn Landden
/etc/localtime -> /usr/share/zoneinfo/... or /etc/localtime -> ../usr/share/zoneinfo/... (note, ../usr is not the same if /etc is a symlink, as this isn't using canonicalize_file_name()) keep other method for now, consider dropping later. Supporting relative links here are problematic as timez

[systemd-devel] [PATCH 2/2] man: remove timezone(5) and add localtime(5)

2012-08-21 Thread Shawn Landden
--- Makefile.am|2 +- man/localtime.xml | 93 man/timezone.xml | 90 -- units/systemd-timedated.service.in |2 +- 4 files changed, 95 insertions(+), 92 deleti

[systemd-devel] [PATCH 1/2] timedated: gather timezone from /etc/localtime sym target

2012-08-21 Thread Shawn Landden
/etc/localtime -> /usr/share/zoneinfo/... or /etc/localtime -> ../usr/share/zoneinfo/... (note, ../usr is not the same if /etc is a symlink, as this isn't using canonicalize_file_name()) keep other method for now, consider dropping later. Supporting relative links here are problematic as timez

Re: [systemd-devel] Xorg freeze totally with systemd-188

2012-08-21 Thread Jeremy Allard
2012/8/21 Jeremy Allard > > > 2012/8/21 Lennart Poettering > >> On Tue, 21.08.12 19:21, Jeremy Allard ([email protected]) wrote: >> >> > Hello ! >> > I'm currently in the process of porting systemd to slackware. >> >> systemd is not much fun without PAM. AFAIK Slackware doesn't do >> PAM. Henc

Re: [systemd-devel] Xorg freeze totally with systemd-188

2012-08-21 Thread Jeremy Allard
2012/8/21 Lennart Poettering > On Tue, 21.08.12 19:21, Jeremy Allard ([email protected]) wrote: > > > Hello ! > > I'm currently in the process of porting systemd to slackware. > > systemd is not much fun without PAM. AFAIK Slackware doesn't do > PAM. Hence systemd is probably not much fun eithe

Re: [systemd-devel] Xorg freeze totally with systemd-188

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 19:21, Jeremy Allard ([email protected]) wrote: > Hello ! > I'm currently in the process of porting systemd to slackware. systemd is not much fun without PAM. AFAIK Slackware doesn't do PAM. Hence systemd is probably not much fun either. > Everything work great, except that wh

Re: [systemd-devel] systemd hackfest on Developer Conference 2013

2012-08-21 Thread Kay Sievers
On Tue, Aug 21, 2012 at 5:15 PM, Lennart Poettering wrote: > On Tue, 14.08.12 17:32, Václav Pavlín ([email protected]) wrote: > >> Developer Conference 2013 takes place in Brno on February next year. We >> have an opportunity to organize Hackfest during/before the conference. >> What we need to

[systemd-devel] Xorg freeze totally with systemd-188

2012-08-21 Thread Jeremy Allard
Hello ! I'm currently in the process of porting systemd to slackware. Everything work great, except that when I try to start xorg (as root or as a normal user, it does not change anything), there is visual output (I can see the graphical interface of my wm) but everything else is frozen. I can't sw

Re: [systemd-devel] [PATCH] main: fix error message if PR_SET_CHILD_REAPER is not available

2012-08-21 Thread Marius Tolzmann
Hey.. On 21.08.2012 22:38, shawn wrote: On Fri, 2012-08-17 at 11:15 +0200, Marius Tolzmann wrote: But 'git grep PR_SET_CHILD_SUBREAPER' on the 3.3.8 (EOL) branch did not return any matches for me. So I guess it may be correct to mention <3.4 here. Also a 'git br -a --contains ebec18a6' states

Re: [systemd-devel] [PATCH 1/3] util: add symlink_atomic()

2012-08-21 Thread Lennart Poettering
On Sat, 11.08.12 15:22, Shawn Landden ([email protected]) wrote: > From: Shawn Landen > > unlike symlink_or_copy_atomic(), this function creates a symlink even if the > oldname and newname (from and to) are on differn't > devices. (stat.st_dev) Hmm, I am not sure I get this patch. Removing

Re: [systemd-devel] [PATCH 1/2] shared/util: refactor fstab_node_to_udev_node

2012-08-21 Thread Lennart Poettering
On Sat, 11.08.12 13:46, Dave Reisner ([email protected]) wrote: > Since this is purely duplicated logic, separate it out into a small > static function. As mentioned on IRC this is merged now, directly from your git repo. Lennart -- Lennart Poettering - Red Hat, Inc. _

Re: [systemd-devel] [bug] Unable to mount by LABEL containing a '/'

2012-08-21 Thread Lennart Poettering
On Mon, 20.08.12 11:36, Dave Reisner ([email protected]) wrote: > Hey all, > > Had a bug reported by a user who has an /etc/fstab setup by LABEL, with > the only quirk being that all his FS labels contain slashes. This all > fails at bootup because systemd seems to vary in how it escapes the >

Re: [systemd-devel] Virtual dependencies

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 14:31, [email protected] ([email protected]) wrote: > Hi All, > > I am hoping someone can help me with a dependency problem that I am > currently having and I assume there is already a simple solution available > that I am missing. >

Re: [systemd-devel] Thoughts on adapting daemons to use socket activation

2012-08-21 Thread David Strauss
On Tue, Aug 21, 2012 at 8:37 AM, Lennart Poettering wrote: > Right now we do offer calls that can match file descriptors against > (parts of) socket addresses. If an app wants to query the current bound > adress it can call getsockname(), but yupp, raw socket API calls are > sometimes a bit ugly.

Re: [systemd-devel] Thoughts on adapting daemons to use socket activation

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 22:46, Alexander E. Patrakov ([email protected]) wrote: > > 2012/8/21 Lennart Poettering : > > On Sat, 18.08.12 16:04, David Strauss ([email protected]) wrote: > >> Additionally, socket activation could get rather interesting > >> capability if there were a middle-ground be

Re: [systemd-devel] [PATCH] main: fix error message if PR_SET_CHILD_REAPER is not available

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 13:38, shawn ([email protected]) wrote: > > On Fri, 2012-08-17 at 11:15 +0200, Marius Tolzmann wrote: > > > > But 'git grep PR_SET_CHILD_SUBREAPER' on the 3.3.8 (EOL) branch did > > not > > return any matches for me. So I guess it may be correct to mention > > <3.4 > > here

Re: [systemd-devel] Newbie systemd-related question - how to run a service w/o anything but network?

2012-08-21 Thread Cristian Rodríguez
El 26/07/12 06:09, Peter Lemenkov escribió: > Hello All. > I'm trying to write a systemd service for epmd (Erlang Port Mapper > Daemon, if someone is curious). its only purpose is to open a TCP port > 4369 at 0.0.0.0 and act as a simple messaging (very simple actually) > bus between erlang nodes. I

Re: [systemd-devel] [PATCH] main: fix error message if PR_SET_CHILD_REAPER is not available

2012-08-21 Thread shawn
On Fri, 2012-08-17 at 11:15 +0200, Marius Tolzmann wrote: > > But 'git grep PR_SET_CHILD_SUBREAPER' on the 3.3.8 (EOL) branch did > not > return any matches for me. So I guess it may be correct to mention > <3.4 > here. Also a 'git br -a --contains ebec18a6' states linux-3.4.y as the > first branc

Re: [systemd-devel] [PATCH] main: fix error message if PR_SET_CHILD_REAPER is not available

2012-08-21 Thread Marius Tolzmann
Hi.. On 21.08.2012 16:49, Lennart Poettering wrote: On Thu, 16.08.12 18:38, Marius Tolzmann ([email protected]) wrote: if (r < 0) -log_error("Failed to prctl(PR_SET_CHILD_SUBREAPER): %s", strerror(-r)); -if (r == -EINVAL) +

Re: [systemd-devel] Virtual dependencies

2012-08-21 Thread Mike Kazantsev
On Tue, 21 Aug 2012 14:31:03 +0200 [email protected] wrote: > Hi All, > > > > I am hoping someone can help me with a dependency problem that I am > currently having and I assume there is already a simple solution available > that I am missing. > > I was looking for some

Re: [systemd-devel] Thoughts on adapting daemons to use socket activation

2012-08-21 Thread David Strauss
On Tue, Aug 21, 2012 at 9:46 AM, Alexander E. Patrakov wrote: > This is supposed to be an > option configured statically by the sysadmin via a configuration file > (a service file?) I'm guessing it would actually be in the .socket file, given that's where you configure it right now to spawn only

Re: [systemd-devel] Thoughts on adapting daemons to use socket activation

2012-08-21 Thread David Strauss
On Tue, Aug 21, 2012 at 9:51 AM, Alexander E. Patrakov wrote: > Just preforking a > fixed number of processes sharing the same listening socket is good > enough in some (most?) cases. It would be tremendously useful even with a completely static number of processes. -- David Strauss | da...@

Re: [systemd-devel] Thoughts on adapting daemons to use socket activation

2012-08-21 Thread Alexander E. Patrakov
2012/8/21 Alexander E. Patrakov : > 2012/8/21 Lennart Poettering : >> On Sat, 18.08.12 16:04, David Strauss ([email protected]) wrote: >>> Additionally, socket activation could get rather interesting >>> capability if there were a middle-ground between single process per >>> connection and one

Re: [systemd-devel] Thoughts on adapting daemons to use socket activation

2012-08-21 Thread Alexander E. Patrakov
2012/8/21 Lennart Poettering : > On Sat, 18.08.12 16:04, David Strauss ([email protected]) wrote: >> Additionally, socket activation could get rather interesting >> capability if there were a middle-ground between single process per >> connection and one process for all connections. Frameworks

Re: [systemd-devel] systemd hackfest on Developer Conference 2013

2012-08-21 Thread David Strauss
On Tue, Aug 21, 2012 at 9:10 AM, Lennart Poettering wrote: > I have now put a short initial version of such a document online: > > http://www.freedesktop.org/wiki/Software/systemd/hackfests > > I hope this is useful. I have also added a new Hackfests section to the > systemd homepage: > > http://w

Re: [systemd-devel] systemd hackfest on Developer Conference 2013

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 08:37, David Strauss ([email protected]) wrote: > > On Tue, Aug 21, 2012 at 8:15 AM, Lennart Poettering > wrote: > > We should have a Google+ Event for this for people to > > sign up. > > It would be great to have a mini guide or blog post on the systemd > conventions for

Re: [systemd-devel] systemd hackfest on Developer Conference 2013

2012-08-21 Thread David Strauss
On Tue, Aug 21, 2012 at 8:15 AM, Lennart Poettering wrote: > We should have a Google+ Event for this for people to > sign up. It would be great to have a mini guide or blog post on the systemd conventions for organizing a hackfest. I would have been just as happy using Google+ for signup as Event

Re: [systemd-devel] Thoughts on adapting daemons to use socket activation

2012-08-21 Thread Lennart Poettering
On Sat, 18.08.12 16:04, David Strauss ([email protected]) wrote: Heya, > I'm porting most of the daemons in use at Pantheon to support socket > activation. While Lennart's blog post on it is extremely helpful, I'd > like to share a concrete method that's been working for me with > complex da

Re: [systemd-devel] [PATCH 1/2] dev-setup: allow a path prefix for use in chroots

2012-08-21 Thread Lennart Poettering
On Tue, 14.08.12 20:00, Dave Reisner ([email protected]) wrote: > With this adjustment, we can reuse this code elsewhere, such as in > nspawn. Applied both, and made a couple of changes afterwards so that NULL as param has the same effect as "". Lennart > --- > src/core/mount-setup.c | 2

Re: [systemd-devel] systemd hackfest on Developer Conference 2013

2012-08-21 Thread Lennart Poettering
On Tue, 14.08.12 17:32, Václav Pavlín ([email protected]) wrote: Heya, > Developer Conference 2013 takes place in Brno on February next year. We > have an opportunity to organize Hackfest during/before the conference. This is fantastic news! Thanks for organizing this! > Conference should run

Re: [systemd-devel] [PATCH v2] core: avoid needless strdup by working with strings directly

2012-08-21 Thread Lennart Poettering
On Thu, 16.08.12 10:23, Shawn Landden ([email protected]) wrote: > config_parse_join_controllers() not converted cause that is a const > char * Umm, so I am not really a fan of changing strings and then back. I mean, sure in this case this would work. But there are so many other cases where

Re: [systemd-devel] [PATCH] main: fix error message if PR_SET_CHILD_REAPER is not available

2012-08-21 Thread Lennart Poettering
On Thu, 16.08.12 18:38, Marius Tolzmann ([email protected]) wrote: Heya, > --- > src/core/main.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/core/main.c b/src/core/main.c > index cdd77c1..8973637 100644 > --- a/src/core/main.c > +++ b/src/core/main.

Re: [systemd-devel] [PATCH] Unify location of system-wide ntp-units.d

2012-08-21 Thread Lennart Poettering
On Mon, 20.08.12 16:43, Dave Reisner ([email protected]) wrote: > Ensure that this honors the build time rootprefix in the code, and that > the correct directory is created by the install target for timedated. > --- > I'm making an assumption here that this is the "correct" solution, though I

[systemd-devel] Virtual dependencies

2012-08-21 Thread David . Yates
Hi All, I am hoping someone can help me with a dependency problem that I am currently having and I assume there is already a simple solution available that I am missing. I was looking for some handling inside of systemd that would work similar to the concept of virtual packages in the Debian

Re: [systemd-devel] Starting Display Managers

2012-08-21 Thread Kay Sievers
On Tue, Aug 21, 2012 at 12:08 PM, Tomasz Torcz wrote: > On Tue, Aug 21, 2012 at 11:09:10AM +0600, Alexander E. Patrakov wrote: >> If the user has a graphics card supported by open-source DRI-based >> drivers with mandatory KMS, then /dev/dri/card0 (or maybe card1 in >> dual-gfx setups) is needed.

Re: [systemd-devel] Starting Display Managers

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 11:09, Alexander E. Patrakov ([email protected]) wrote: > The question is: how does one write this dependency information, so > that lxdm is not attempted to be started before udev creates the > necessary device node? Yes, I understand that GPU hotplug in Xorg is > the real answe

Re: [systemd-devel] Starting Display Managers

2012-08-21 Thread Tomasz Torcz
On Tue, Aug 21, 2012 at 11:09:10AM +0600, Alexander E. Patrakov wrote: > If the user has a graphics card supported by open-source DRI-based > drivers with mandatory KMS, then /dev/dri/card0 (or maybe card1 in > dual-gfx setups) is needed. And for Radeon TURKS cards, this only > appears after loadin

[systemd-devel] Starting Display Managers

2012-08-21 Thread Alexander E. Patrakov
Hello. Several days ago I stumbled upon an interesting race condition (which is not a bug in systemd) that I want to share now. To reproduce: install lxdm, and the following (buggy) unit to start lxdm on boot: [Unit] Description=LXDE Display Manager [Service] ExecStart=/usr/sbin/lxdm # After ea