Re: [systemd-devel] systemd .device units timing out

2011-06-15 Thread Avi Kivity
On 06/14/2011 06:17 PM, Lennart Poettering wrote: On Mon, 06.06.11 16:01, Avi Kivity (a...@redhat.com) wrote: > I have a system which was upgraded to F15 and thus systemd. During > the boot process it times out starting various .device units, like > sda1.device. If I let it alone it will bo

Re: [systemd-devel] systemd .device units timing out

2011-06-15 Thread Avi Kivity
On 06/15/2011 12:17 PM, Avi Kivity wrote: On 06/14/2011 06:17 PM, Lennart Poettering wrote: On Mon, 06.06.11 16:01, Avi Kivity (a...@redhat.com) wrote: > I have a system which was upgraded to F15 and thus systemd. During > the boot process it times out starting various .device units, like >

[systemd-devel] Notification when systemd has completed initialisation

2011-06-15 Thread David . Yates
Hi, I was hoping someone could help me to find a way to get a notification of when systemd has finished the initialisation of a specific target. For a specific implementation I am planning, I wanted to be able to have a higher level application that monitors the system startup and analyses th

Re: [systemd-devel] Notification when systemd has completed initialisation

2011-06-15 Thread Lennart Poettering
On Wed, 15.06.11 14:28, david.ya...@continental-corporation.com (david.ya...@continental-corporation.com) wrote: > Hi, > > I was hoping someone could help me to find a way to get a notification of > when systemd has finished the initialisation of a specific target. We currently do not send out

Re: [systemd-devel] [PATCH] enable chkconfig support in systemctl for ALTLinux

2011-06-15 Thread Lennart Poettering
On Tue, 14.06.11 14:34, Alexey Shabalin (a.shaba...@gmail.com) wrote: > enable chkconfig support in systemctl for ALTLinux Applied. Thanks! Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.o

[systemd-devel] [PATCH] Add sd_is_special for special file descriptors

2011-06-15 Thread William Douglas
>From 85f51557a62be9224ed475047aff503bece342b4 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Wed, 15 Jun 2011 11:08:17 -0700 With the addition of ListenSpecial as a socket option we need the the usual sd_is_ functions for special files. This patch does that. --- src/sd-daemon.c | 33 +

[systemd-devel] [PATCH] systemctl: plug a leak upon create_symlink mismatch

2011-06-15 Thread Jim Meyering
This fixes a coverity-spotted problem: >From 0587faf5c82c7b6696d9b27e4047cfb3f2749ae0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 15 Jun 2011 16:47:39 +0200 Subject: [PATCH] systemctl: plug a leak upon create_symlink mismatch --- src/systemctl.c |1 + 1 files changed, 1 insertion

Re: [systemd-devel] (newbie) question: dependency on ldap/kerberos

2011-06-15 Thread Lennart Poettering
On Sun, 05.06.11 03:30, Josh Geisser (j...@gebaschtel.ch) wrote: > Equals: on boot, start the virtual domain controller, then either wait for > this one to become available, or if any other is reachable also good :) > > (Despite an abuse of infrastructure, this actually works quite well, the >

Re: [systemd-devel] root directory permissions vs OpenSSH chroot

2011-06-15 Thread Lennart Poettering
On Sat, 04.06.11 22:56, Albert Strasheim (full...@gmail.com) wrote: > Hello all > > OpenSSH has a chroot feature, but for it to work, the root directory > must have permissions of 0755 otherwise one gets the error: > > sshd[15705]: fatal: bad ownership or modes for chroot directory component "/"

Re: [systemd-devel] [PATCH] Add sd_is_special for special file descriptors

2011-06-15 Thread Jim Meyering
William Douglas wrote: >>From 85f51557a62be9224ed475047aff503bece342b4 Mon Sep 17 00:00:00 2001 > From: William Douglas > Date: Wed, 15 Jun 2011 11:08:17 -0700 > > With the addition of ListenSpecial as a socket option we need the > the usual sd_is_ functions for special files. This patch does > t

Re: [systemd-devel] systemd-vconsole-setup: /usr/bin/setfont failed with error code 71

2011-06-15 Thread Lennart Poettering
On Fri, 03.06.11 01:16, Yegor Gemba (gem...@ethz.ch) wrote: > Hello, > I am testing systemd on Arch Linux and I get following errors: > > <30>systemd-vconsole-setup[59]: putfont: KDFONTOP: Invalid argument > <28>systemd-vconsole-setup[59]: /usr/bin/setfont failed with error code 71. > > /etc/vco

Re: [systemd-devel] [PATCH] systemctl: plug a leak upon create_symlink mismatch

2011-06-15 Thread Lennart Poettering
On Wed, 15.06.11 20:13, Jim Meyering (j...@meyering.net) wrote: > This fixes a coverity-spotted problem: > > >From 0587faf5c82c7b6696d9b27e4047cfb3f2749ae0 Mon Sep 17 00:00:00 2001 > From: Jim Meyering > Date: Wed, 15 Jun 2011 16:47:39 +0200 > Subject: [PATCH] systemctl: plug a leak upon create_

Re: [systemd-devel] [PATCH] Add sd_is_special for special file descriptors

2011-06-15 Thread Lennart Poettering
On Wed, 15.06.11 11:25, William Douglas (william.r.doug...@gmail.com) wrote: > >From 85f51557a62be9224ed475047aff503bece342b4 Mon Sep 17 00:00:00 2001 > From: William Douglas > Date: Wed, 15 Jun 2011 11:08:17 -0700 > > With the addition of ListenSpecial as a socket option we need the > the usual

Re: [systemd-devel] Managing autogenerated services

2011-06-15 Thread Lennart Poettering
On Wed, 01.06.11 15:36, yoshi watanabe (yoshi...@gmail.com) wrote: > Hi all > > I'd like to know how can one manage services that are being auto > generated (e.g. mount points or cryptsetup). > > In case of mount points, i would like to have all mount services > depend on arbitrary service of my

Re: [systemd-devel] Question on os-release

2011-06-15 Thread Lennart Poettering
On Mon, 30.05.11 15:00, Andreas Jaeger (a...@novell.com) wrote: > > On Monday, May 30, 2011 14:54:54 Kay Sievers wrote: > > On Mon, May 30, 2011 at 10:20, Andreas Jaeger wrote: > > > Looking at the os-release information, I wonder how to encode in the best > > > way the Beta or Milestone version

Re: [systemd-devel] MAINPID changing

2011-06-15 Thread Lennart Poettering
On Sat, 28.05.11 20:06, Christian Parpart (tra...@gentoo.org) wrote: Heya, > if the child process fully initialized, including inherited listener sockets, > it sends a SIGQUIT to the parent (still the MAINPID) to *gracefully* shutdown, > which might be this instant or take a few minutes, just un

Re: [systemd-devel] tmux / screen

2011-06-15 Thread Lennart Poettering
On Fri, 27.05.11 16:45, Christian Hesse (l...@eworm.de) wrote: > Hello everybody, > > I've set up pam to use pam_systemd.so. This way tmux and screen work, > but other processes started in this session will continue to run after > the user logs out. > > I would like to set kill-user=1 or kill-se

[systemd-devel] [PATCH] Change the syslog bridge socket and target file names

2011-06-15 Thread William Douglas
>From 05f8d2b2f0baa345dedb7b489ede3b3e6655e0d8 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Wed, 15 Jun 2011 10:46:09 -0700 Update the syslog bridge socket and target file names to be more descriptive of their functionality. This is also done to make way for an actual syslogd that is int

Re: [systemd-devel] (newbie) question: dependency on ldap/kerberos

2011-06-15 Thread Josh Geisser
I think I understand the .target and .wants in the meanwhile, so I gave up with trying achieving the exact same as before :) I see the advantage of systemd. What I basically want is to make samba dependent on my own 'check-ad-avail.target', which depends on network. What I failed yet is to act

Re: [systemd-devel] [PATCH] Add sd_is_special for special file descriptors

2011-06-15 Thread William Douglas
Jim Meyering writes: > William Douglas wrote: > > Hello, > I notice that other code in this file does the same thing, > so maybe you're just following that example, but why bother > to clear the bits of a struct stat before calling fstat or stat > to fill it in? > > Aren't the two memset calls he

Re: [systemd-devel] systemd "start request repeated too quickly, refusing to start" kills "Restart=" functionality

2011-06-15 Thread Lennart Poettering
On Sat, 28.05.11 09:46, Mike Kazantsev (mk.frag...@gmail.com) wrote: > Good day, > > I've been running an ssh tunnel with keepalives as systemd service with > "Restart=always" option (since network connection there goes down quite > frequently), and it worked fairly well until this happened: > >

[systemd-devel] [PATCH]v2 Add sd_is_special for special file descriptors

2011-06-15 Thread William Douglas
Lennart Poettering writes: > On Wed, 15.06.11 11:25, William Douglas (william.r.doug...@gmail.com) wrote: > >> >From 85f51557a62be9224ed475047aff503bece342b4 Mon Sep 17 00:00:00 2001 >> From: William Douglas >> Date: Wed, 15 Jun 2011 11:08:17 -0700 >> >> With the addition of ListenSpecial as a

Re: [systemd-devel] [PATCH]v2 Add sd_is_special for special file descriptors

2011-06-15 Thread Lennart Poettering
On Wed, 15.06.11 13:20, William Douglas (william.r.doug...@gmail.com) wrote: > Ah right, I was only thinking of getting /proc/kmsg working =P. > I have updated accordingly below. Almost there now: > +_sd_hidden_ int sd_is_special(int fd, const char *path) { > +struct stat st_fd; > + > +

Re: [systemd-devel] (newbie) question: dependency on ldap/kerberos

2011-06-15 Thread Lennart Poettering
On Wed, 15.06.11 21:42, Josh Geisser (j...@gebaschtel.ch) wrote: > > I think I understand the .target and .wants in the meanwhile, so I > gave up with trying achieving the exact same as before :) > > I see the advantage of systemd. What I basically want is to make samba > dependent on my own 'ch

Re: [systemd-devel] [PATCH] pam-module: add debug= parameter

2011-06-15 Thread Lennart Poettering
On Fri, 27.05.11 01:29, Michal Schmidt (mschm...@redhat.com) wrote: > It is customary that pam modules do not log debugging information by default. > Usually they offer a 'debug' option. > > Add a boolean debug= option to pam_systemd.so. > > This will solve bug > https://bugzilla.redhat.com/show

Re: [systemd-devel] [PATCH]v2 Add sd_is_special for special file descriptors

2011-06-15 Thread William Douglas
Lennart Poettering writes: > On Wed, 15.06.11 13:20, William Douglas (william.r.doug...@gmail.com) wrote: > >> Ah right, I was only thinking of getting /proc/kmsg working =P. >> I have updated accordingly below. > > Almost there now: > >> +_sd_hidden_ int sd_is_special(int fd, const char *path) {

[systemd-devel] [PATCH] systemctl: sd_is_fifo: remove unnecessary memset calls

2011-06-15 Thread Jim Meyering
There is no point in clearing the bits of a "struct stat" when the very next statement just calls stat or fstat to fill in that same memory. >From 587cd9b7ab9c9095e84fe31df4d5b4cd8b2649bf Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 16 Jun 2011 08:43:48 +0200 Subject: [PATCH] systemctl: