[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

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 loading

Re: [systemd-devel] Starting Display Managers

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 11:09, Alexander E. Patrakov (patra...@gmail.com) 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 answer,

[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

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 (dreis...@archlinux.org) 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'm

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 (tolzm...@molgen.mpg.de) 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.c @@

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 (shawnland...@gmail.com) 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] systemd hackfest on Developer Conference 2013

2012-08-21 Thread Lennart Poettering
On Tue, 14.08.12 17:32, Václav Pavlín (vpav...@redhat.com) 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 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 (dreis...@archlinux.org) 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 David Strauss
On Tue, Aug 21, 2012 at 8:15 AM, Lennart Poettering lenn...@poettering.net 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

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

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 08:37, David Strauss (da...@davidstrauss.net) wrote: On Tue, Aug 21, 2012 at 8:15 AM, Lennart Poettering lenn...@poettering.net 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

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

2012-08-21 Thread Alexander E. Patrakov
2012/8/21 Lennart Poettering lenn...@poettering.net: On Sat, 18.08.12 16:04, David Strauss (da...@davidstrauss.net) 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

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

2012-08-21 Thread Alexander E. Patrakov
2012/8/21 Alexander E. Patrakov patra...@gmail.com: 2012/8/21 Lennart Poettering lenn...@poettering.net: On Sat, 18.08.12 16:04, David Strauss (da...@davidstrauss.net) wrote: Additionally, socket activation could get rather interesting capability if there were a middle-ground between single

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 patra...@gmail.com 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

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 patra...@gmail.com 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

Re: [systemd-devel] Virtual dependencies

2012-08-21 Thread Mike Kazantsev
On Tue, 21 Aug 2012 14:31:03 +0200 david.ya...@continental-corporation.com 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] [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 branch to

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'd

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 (shawnland...@gmail.com) 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

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 (patra...@gmail.com) wrote: 2012/8/21 Lennart Poettering lenn...@poettering.net: On Sat, 18.08.12 16:04, David Strauss (da...@davidstrauss.net) wrote: Additionally, socket activation could get rather interesting capability if there were a

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 lenn...@poettering.net 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

Re: [systemd-devel] Virtual dependencies

2012-08-21 Thread Lennart Poettering
On Tue, 21.08.12 14:31, david.ya...@continental-corporation.com (david.ya...@continental-corporation.com) 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

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 (d...@falconindy.com) 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] [PATCH 1/3] util: add symlink_atomic()

2012-08-21 Thread Lennart Poettering
On Sat, 11.08.12 15:22, Shawn Landden (shawnland...@gmail.com) wrote: From: Shawn Landen shawnland...@gmail.com 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

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

[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

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 lenn...@poettering.net wrote: On Tue, 14.08.12 17:32, Václav Pavlín (vpav...@redhat.com) wrote: Developer Conference 2013 takes place in Brno on February next year. We have an opportunity to organize Hackfest during/before the conference.

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

2012-08-21 Thread Jeremy Allard
2012/8/21 Lennart Poettering lenn...@poettering.net On Tue, 21.08.12 19:21, Jeremy Allard (elvis4...@gmail.com) 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

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

2012-08-21 Thread Jeremy Allard
2012/8/21 Jeremy Allard elvis4...@gmail.com 2012/8/21 Lennart Poettering lenn...@poettering.net On Tue, 21.08.12 19:21, Jeremy Allard (elvis4...@gmail.com) wrote: Hello ! I'm currently in the process of porting systemd to slackware. systemd is not much fun without PAM. AFAIK Slackware