Re: [systemd-devel] [PATCH] systemd: fall back to mounting /sys/fs/cgroup sans xattr

2013-04-23 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 23, 2013 at 10:13:53AM -0400, Colin Walters wrote: > On Mon, 2013-04-22 at 22:10 -0400, Zbigniew Jędrzejewski-Szmek wrote: > > xattrs on cgroup fs were added back in v3.6-rc3-3-g03b1cde. But > > we support kernels >= 2.6.39, and we also support kernels compiled > > w/o xattr support, so

Re: [systemd-devel] [PATCH V2] systemd-analyse: add "critical-chain" command

2013-04-23 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 23, 2013 at 05:32:29PM +0200, har...@redhat.com wrote: > From: Harald Hoyer > > "critical-chain" prints a tree of the critical chain of units > > $ ./systemd-analyze critical-chain > graphical.target @1.226s > └─multi-user.target @1.226s > └─nfs-lock.service @961ms +265ms > └─r

[systemd-devel] [PATCH v2] systemd-python: attach fields to JournalHandler, add SYSLOG_IDENTIFIER

2013-04-23 Thread Zbigniew Jędrzejewski-Szmek
Arbitrary fields can be attached at the level of the handler, and they'll be sent with all messages from this handler. This facility is used to attach SYSLOG_IDENTIFIER to all messages, since otherwise journald attaches SYSLOG_IDENTIFIER=python or something similar, which is completely useless. --

Re: [systemd-devel] [RFC PATCH] systemd-python: add SYSLOG_IDENTIFIER to JournalHandler

2013-04-23 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 23, 2013 at 06:54:55PM +0300, Marti Raudsepp wrote: > On Mon, Apr 22, 2013 at 11:31 PM, Zbigniew Jędrzejewski-Szmek > wrote: > > Otherwise, we get SYSLOG_IDENTIFIER=python or something > > similar, which is completely useless. > > I think we shouldn't be creating one-off arguments for

Re: [systemd-devel] Socket is dying, how to automatically restart it?

2013-04-23 Thread George McCollister
On 04/20/2013 08:04 AM, Koen Kooi wrote: Op 18 apr. 2013, om 19:18 heeft George McCollister het volgende geschreven: On 04/10/2013 12:03 PM, Koen Kooi wrote: Hi, I have a bit of a heisenbug where dropbear.socket will just die and needs a systemctl restart dropbear.socket. I can't tell why

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-23 Thread Josh Triplett
On Tue, Apr 23, 2013 at 01:45:32AM +0200, Tom Gundersen wrote: > On Mon, Apr 22, 2013 at 11:53 PM, Josh Triplett wrote: > > 1) Leave only root in /etc/passwd and /etc/group. > > Not commenting on the overall idea, but if you are going to do > something like this, at least allow the the files not

[systemd-devel] disabling shared mount propagation

2013-04-23 Thread Albert Strasheim
Hello all This change, which made mount propagation default to shared: http://cgit.freedesktop.org/systemd/systemd/commit/?id=b3ac5f8cb98757416d8660023d6564a7c411f0a0 and which went into Fedora 17 in January 2013: http://lists.fedoraproject.org/pipermail/package-announce/2013-January/095395.htm

[systemd-devel] [PATCH] python-systemd: add version number

2013-04-23 Thread Steven Hiscocks
From: Steven Hiscocks --- Hi, I thought it would be useful to have a version number in the python systemd module. I'm not overly familiar with Make, etc. but hopefully I've taken the right approach. :) Thanks Steven Hiscocks Makefile.am| 3 +++ src/p

Re: [systemd-devel] SyncIntervalSec not good on battery

2013-04-23 Thread Lennart Poettering
On Tue, 23.04.13 15:29, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: > Hi: > > The journal's new SyncIntervalSec is cool when you are plugged to an > stable source of energy but it is not when on battery, where it will > wake up the disk .. could it be possible to skip it when > Condition

[systemd-devel] SyncIntervalSec not good on battery

2013-04-23 Thread Cristian Rodríguez
Hi: The journal's new SyncIntervalSec is cool when you are plugged to an stable source of energy but it is not when on battery, where it will wake up the disk .. could it be possible to skip it when ConditionACPower=false ? Cheers . ___ systemd-dev

[systemd-devel] [RFC][PATCH] Escape unit name from udev

2013-04-23 Thread MUNEDA Takahiro
This patch escapes a unit name which was derived from udev. Please imagine following udev rule. ACTION=="online|offline", TAG+="systemd", ENV{SYSTEMD_WANTS}="muneda@%p.service" ACTION=="online|offline", TAG+="systemd", ENV{SYSTEMD_WANTS}="muneda@%r.service" ACTION=="online|offline", TAG+=

[systemd-devel] [PATCH V2] systemd-analyse: add "critical-chain" command

2013-04-23 Thread harald
From: Harald Hoyer "critical-chain" prints a tree of the critical chain of units $ ./systemd-analyze critical-chain graphical.target @1.226s └─multi-user.target @1.226s └─nfs-lock.service @961ms +265ms └─rpcbind.service @958ms +1ms └─network.target @957ms └─NetworkManager.ser

Re: [systemd-devel] [RFC PATCH] systemd-python: add SYSLOG_IDENTIFIER to JournalHandler

2013-04-23 Thread Marti Raudsepp
On Mon, Apr 22, 2013 at 11:31 PM, Zbigniew Jędrzejewski-Szmek wrote: > Otherwise, we get SYSLOG_IDENTIFIER=python or something > similar, which is completely useless. I think we shouldn't be creating one-off arguments for every possible field someone might want to add, but something more generic

[systemd-devel] util-linux logger vs systemd-cat

2013-04-23 Thread Colin Walters
I found myself in a situation recently where I wanted to log a message from a shell script that included MESSAGE_ID. As far as I can tell there's no utility binary for this. systemd ships systemd-cat which connects to the journal, but it doesn't have support for structured logging; it's just a wa

Re: [systemd-devel] [PATCH] systemd: fall back to mounting /sys/fs/cgroup sans xattr

2013-04-23 Thread Colin Walters
On Mon, 2013-04-22 at 22:10 -0400, Zbigniew Jędrzejewski-Szmek wrote: > xattrs on cgroup fs were added back in v3.6-rc3-3-g03b1cde. But > we support kernels >= 2.6.39, and we also support kernels compiled > w/o xattr support, so it's better to fall back to mounting without > xattr support. Yes thi

Re: [systemd-devel] [PATCH] systemd-analyse: add "tree" command

2013-04-23 Thread Lennart Poettering
On Tue, 23.04.13 15:04, har...@redhat.com (har...@redhat.com) wrote: > From: Harald Hoyer > > "tree" prints a tree of the critical chain of units Really nice work! However, maybe the name "tree" is suboptimal? You already say "critical chain", maybe we should name it something like this too? Es

[systemd-devel] [PATCH] systemd-analyse: add "tree" command

2013-04-23 Thread harald
From: Harald Hoyer "tree" prints a tree of the critical chain of units $ ./systemd-analyze tree graphical.target @1.226s └─multi-user.target @1.226s └─nfs-lock.service @961ms +265ms └─rpcbind.service @958ms +1ms └─network.target @957ms └─NetworkManager.service @434ms +522ms

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-23 Thread Kay Sievers
On Tue, Apr 23, 2013 at 2:38 PM, Reindl Harald wrote: >> More of this type of comments and you will have a problem posting on >> this list. If you are unable to moderate your style yourself, I will >> do that for you, no problem > > sorry but you are hyper-sensible I just have enough of your att

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-23 Thread Reindl Harald
Am 23.04.2013 13:33, schrieb Kay Sievers: > On Tue, Apr 23, 2013 at 12:26 AM, Reindl Harald > wrote: >> >> Am 22.04.2013 23:53, schrieb Josh Triplett: >>> 1) Leave only root in /etc/passwd and /etc/group >> >> why? >> >>> 2) Add passwd.d and group.d directories in /etc and under /usr, which >>>

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-23 Thread Kay Sievers
On Tue, Apr 23, 2013 at 12:26 AM, Reindl Harald wrote: > > Am 22.04.2013 23:53, schrieb Josh Triplett: >> 1) Leave only root in /etc/passwd and /etc/group > > why? > >> 2) Add passwd.d and group.d directories in /etc and under /usr, which >>accept one record per file (with name given by the fi

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-23 Thread Kay Sievers
On Mon, Apr 22, 2013 at 11:53 PM, Josh Triplett wrote: > 1) Leave only root in /etc/passwd and /etc/group. > 2) Add passwd.d and group.d directories in /etc and under /usr, which >accept one record per file (with name given by the filename) and >which do not include UIDs or GIDs. > 3) Whe

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-23 Thread Alexey Shabalin
2013/4/23 Alexey Shabalin > 2013/4/23 Josh Triplett > >> On Mon, Apr 22, 2013 at 11:24:56PM +0200, Kay Sievers wrote: >> > On Mon, Apr 22, 2013 at 9:29 PM, Josh Triplett >> wrote: >> > > On Thu, Apr 18, 2013 at 12:26:15AM +0200, Kay Sievers wrote: >> > >> On Wed, Apr 17, 2013 at 11:50 PM, Josh

Re: [systemd-devel] [PATCH] man: link systemd-static-nodes.service

2013-04-23 Thread Kay Sievers
On Tue, Apr 23, 2013 at 10:06 AM, Umut Tezduyar wrote: > I have attached the rebased & updated patch. Applied. > I am working on git and I can't > run "make all update-man-list". Sorry for the trouble. I just added it to your patch. Thanks, Kay ___ s

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-23 Thread Alexey Shabalin
2013/4/23 Josh Triplett > On Mon, Apr 22, 2013 at 11:24:56PM +0200, Kay Sievers wrote: > > On Mon, Apr 22, 2013 at 9:29 PM, Josh Triplett > wrote: > > > On Thu, Apr 18, 2013 at 12:26:15AM +0200, Kay Sievers wrote: > > >> On Wed, Apr 17, 2013 at 11:50 PM, Josh Triplett < > j...@joshtriplett.org>

Re: [systemd-devel] [PATCH] TODO: passwd.d, group.d

2013-04-23 Thread Colin Guthrie
'Twas brillig, and Josh Triplett at 22/04/13 22:53 did gyre and gimble: > On Mon, Apr 22, 2013 at 11:24:56PM +0200, Kay Sievers wrote: >> On Mon, Apr 22, 2013 at 9:29 PM, Josh Triplett wrote: >>> On Thu, Apr 18, 2013 at 12:26:15AM +0200, Kay Sievers wrote: On Wed, Apr 17, 2013 at 11:50 PM, Jo

Re: [systemd-devel] [PATCH] man: link systemd-static-nodes.service

2013-04-23 Thread Umut Tezduyar
Hi, I have attached the rebased & updated patch. I am working on git and I can't run "make all update-man-list". Sorry for the trouble. Thanks On Mon, Apr 22, 2013 at 10:13 PM, Tom Gundersen wrote: > On Mon, Apr 22, 2013 at 6:37 PM, Kay Sievers wrote: > > On Mon, Apr 22, 2013 at 6:27 PM, Tom