Re: [systemd-devel] [PATCH] libsystemd-login.so: fix undefined reference to 'cg_create'

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 13:28, Yang Chengwei (chengwei.y...@intel.com) wrote: On Tue, Sep 10, 2013 at 06:02:55PM +0200, Lennart Poettering wrote: On Mon, 26.08.13 13:48, Chengwei Yang (chengwei.y...@intel.com) wrote: Hmm, can you elaborate on this one? libsystemd-login should be mostly This

Re: [systemd-devel] [PATCH 6/7] mount: filesystems mounted in the initrd should not conflict with umount.target in the real root

2013-09-11 Thread Lennart Poettering
On Tue, 10.09.13 13:33, Colin Walters (walt...@verbum.org) wrote: On Tue, 2013-09-10 at 18:47 +0200, Lennart Poettering wrote: I'd actually prefer having an explicit blacklist for this, so that we don't have to trust the initrd too much that... But nowadays it's systemd running in the

Re: [systemd-devel] [PATCH 1/7] filesystem targets: disable default dependencies

2013-09-11 Thread Harald Hoyer
On 09/10/2013 06:41 PM, Lennart Poettering wrote: On Fri, 23.08.13 15:09, Tom Gundersen (t...@jklm.no) wrote: This means we can use default dependencies on mount units without having to get them automatically ordered before the filesystem targets. Looks good. But before we merge this,

Re: [systemd-devel] PrivateNetwork=true conflicts with Type=notify

2013-09-11 Thread Lennart Poettering
On Tue, 10.09.13 19:04, Pierre Schmitz (pie...@archlinux.de) wrote: heya, when trying to disable network access to the PHP-FPM service I noticed that the service was no longer able to call back to systemd using Type=notify. Systemd then kills the service when reaching the timeout. It seems

Re: [systemd-devel] [PATCH 1/7] filesystem targets: disable default dependencies

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 13:42, Harald Hoyer (harald.ho...@gmail.com) wrote: On 09/10/2013 06:41 PM, Lennart Poettering wrote: On Fri, 23.08.13 15:09, Tom Gundersen (t...@jklm.no) wrote: This means we can use default dependencies on mount units without having to get them automatically

Re: [systemd-devel] PrivateNetwork=true conflicts with Type=notify

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 13:49, Lennart Poettering (lenn...@poettering.net) wrote: On Tue, 10.09.13 19:04, Pierre Schmitz (pie...@archlinux.de) wrote: heya, when trying to disable network access to the PHP-FPM service I noticed that the service was no longer able to call back to systemd using

Re: [systemd-devel] [PATCH] libsystemd-login.so: fix undefined reference to 'cg_create'

2013-09-11 Thread Kay Sievers
On Wed, Sep 11, 2013 at 1:27 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 11.09.13 13:28, Yang Chengwei (chengwei.y...@intel.com) wrote: On Tue, Sep 10, 2013 at 06:02:55PM +0200, Lennart Poettering wrote: On Mon, 26.08.13 13:48, Chengwei Yang (chengwei.y...@intel.com) wrote:

[systemd-devel] How to implement a demon process by socket activation

2013-09-11 Thread Tony Seo
Hi I have been aiming to make a demon process by socket activation in systemd. you know that, it was provided for socket activation in systemd homepage like below . http://0pointer.de/blog/projects/socket-activation.html I refered that guide for making a daemon process started using socket

Re: [systemd-devel] [PATCH 1/2] Optimize startswith() to macro

2013-09-11 Thread Lennart Poettering
On Fri, 23.08.13 14:09, WANG Chao (chaow...@redhat.com) wrote: - Why not use startswith() instead of first_word()? first_word is not equivalent: there must be a word boundary after the word: Yeah, you're right. I occasionally got carried away at midnight :( And I think a inline

Re: [systemd-devel] Some thoughts about loop_read/loop_write in util.c

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 21:50, cee1 (fykc...@gmail.com) wrote: Hi all, loop_read/loop_write: http://cgit.freedesktop.org/systemd/systemd/tree/src/shared/util.c#n2179 In a scenario of pipes, loop_read on read side, if the write side is closed, loop_read will return 0 if do_poll is false(let's

Re: [systemd-devel] How to implement a demon process by socket activation

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 21:33, Tony Seo (tonys...@gmail.com) wrote: Hi I have been aiming to make a demon process by socket activation in systemd. you know that, it was provided for socket activation in systemd homepage like below . http://0pointer.de/blog/projects/socket-activation.html I

Re: [systemd-devel] [PATCH 6/7] mount: filesystems mounted in the initrd should not conflict with umount.target in the real root

2013-09-11 Thread Lennart Poettering
On Tue, 10.09.13 19:54, Tom Gundersen (t...@jklm.no) wrote: But it annoys me that we're propagating this hardcoding in the new code too. How about we make systemd inspect /proc/self/mountinfo *very* early on at boot when it starts, and ensure skip unmounting these, under the assumption

Re: [systemd-devel] [PATCH 6/7] mount: filesystems mounted in the initrd should not conflict with umount.target in the real root

2013-09-11 Thread Colin Walters
On Wed, 2013-09-11 at 16:31 +0200, Lennart Poettering wrote: Well, everything that this list would declare is that /, /etc, /usr (and maybe very few others) are the bits that systemd requires to be mounted when the host's systemd is first invoked. Where it is mounted from, and in which order

[systemd-devel] [PATCH 2/3] util, utf8: new wellipsize and wellipsize_mem that take into account multi-byte characters

2013-09-11 Thread Shawn Landden
This version counts all multibyte characters as 1 width, not taking into account double width cjk characters and zerowidth characters --- src/shared/util.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shared/util.c b/src/shared/util.c index b791433..c6375e5

Re: [systemd-devel] [PATCH] util, utf8: recognize wide characters in wellipsize_mem()

2013-09-11 Thread Shawn Landden
Original Message From: Zbigniew Jędrzejewski-Szmek To: shawnland...@gmail.com CC: systemd-devel@lists.freedesktop.org, Shawn Landden Sent: Tue, Sep 10, 2013, 08:59 Subject: Re: [systemd-devel] [PATCH] util, utf8: recognize wide characters in wellipsize_mem() Hi Shawn, thank you

[systemd-devel] [PATCH 1/3] util: ellipsize_mem: do not print partial utf-8 characters

2013-09-11 Thread Shawn Landden
--- Makefile.am| 7 +++ TODO | 4 -- src/shared/utf8.c | 120 + src/shared/utf8.h | 100 + src/shared/util.c | 83 +--

Re: [systemd-devel] [PATCH 6/7] mount: filesystems mounted in the initrd should not conflict with umount.target in the real root

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 10:46, Colin Walters (walt...@verbum.org) wrote: Well, everything that this list would declare is that /, /etc, /usr (and maybe very few others) are the bits that systemd requires to be mounted when the host's systemd is first invoked. Where it is mounted from, and in

Re: [systemd-devel] [PATCH] cryptsetup-generator: allow specifying options in /proc/cmdline

2013-09-11 Thread Lennart Poettering
On Mon, 19.08.13 00:15, Tom Gundersen (t...@jklm.no) wrote: The main usecase for this is to make it possible to use cryptsetup in the initrd without it having to include a host-specific /etc/crypttab. Hmm, I contrast to Harald I think adding luks.options= would actually be OK. I don't think

Re: [systemd-devel] brightness in tmpfiles.d

2013-09-11 Thread Lennart Poettering
On Mon, 12.08.13 22:40, Christian Hesse (l...@eworm.de) wrote: Hello everybody, I have a file /etc/tmpfiles.d/brightness.conf containing this line: w /sys/class/backlight/acpi_video0/brightness - - - - 10 This used to set the brightness on boot, but broke lately. The path is correct,

Re: [systemd-devel] [PATCH 6/7] mount: filesystems mounted in the initrd should not conflict with umount.target in the real root

2013-09-11 Thread Colin Walters
On Wed, 2013-09-11 at 16:55 +0200, Lennart Poettering wrote: Well, but /etc would be one of those which would be listed in that OS resource dir list... Sure, it makes total sense for systemd to hard require it (and the others) to be mounted; again I'm just more interested in the unmounting.

Re: [systemd-devel] [PATCH] cryptsetup: Retry indefinitely if tries=0 option has been set.

2013-09-11 Thread Lennart Poettering
On Sun, 18.08.13 18:24, Thomas Bächler (tho...@archlinux.org) wrote: When running from initrd, entering a wrong passphrase usually means that you cannot boot. Therefore, we allow trying indefinitely. --- This is useful together with Tom's latest patch. On my system, I use

[systemd-devel] [REMINDER] Next Week systemd Hackfest in New Orleans! (colocated with LinuxCon/LPC)

2013-09-11 Thread Lennart Poettering
Heya! Next week we'll have another two day systemd hackfest, this time in New Orleans, co-located with LinuxCon/Linux Plumbers Conference. https://plus.google.com/u/0/events/ce60f0rq4lldbti9qgg0u4j8rbc You are invited! It starts on monday morning 9am, at the Grand Hyatt, Room Imperial 11. To

Re: [systemd-devel] Impact when not loading ipv6 and autofs kernel module ...

2013-09-11 Thread Lennart Poettering
On Wed, 14.08.13 16:43, Hoyer, Marko (ADITG/SW2) (mho...@de.adit-jv.com) wrote: For what is systemd using the loopback so that it has to set it up so early? Is there any impact when I'm setting up the loopback later. We are probably in a situation where we need ipv4 for general purposes and

Re: [systemd-devel] [PATCH] [RFC] Make reboot to support additional command

2013-09-11 Thread Lennart Poettering
On Tue, 13.08.13 03:01, WaLyong Cho (fyd0...@gmail.com) wrote: From: WaLyong Cho walyong@samsung.com reboot syscall can be performed with additional argument. In some of system, this functionality can be useful to ask next boot mode to bootloader. Hmm, interesting stuff. @@ -5200,9

Re: [systemd-devel] [PATCH 6/7] mount: filesystems mounted in the initrd should not conflict with umount.target in the real root

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 12:00, Colin Walters (walt...@verbum.org) wrote: On Wed, 2013-09-11 at 16:55 +0200, Lennart Poettering wrote: Well, but /etc would be one of those which would be listed in that OS resource dir list... Sure, it makes total sense for systemd to hard require it (and the

[systemd-devel] [PATCH v2] sd-login: add a public accessor for the VT number

2013-09-11 Thread Giovanni Campagna
From: Giovanni Campagna gcamp...@redhat.com The VT number was already part of the DBus API, but was not exposed in the C API. --- man/sd_session_is_active.xml | 13 + src/login/libsystemd-login.sym | 5 + src/login/sd-login.c | 18 ++

Re: [systemd-devel] [PATCH v2] sd-login: add a public accessor for the VT number

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 18:48, Giovanni Campagna (scampa.giova...@gmail.com) wrote: From: Giovanni Campagna gcamp...@redhat.com The VT number was already part of the DBus API, but was not exposed in the C API. Thanks! Applied with minor changes (replaced strtoul with our own safe_atou() which is a

Re: [systemd-devel] stop+start of nspawn scope aborts: 's-state == SCOPE_DEAD'

2013-09-11 Thread Lennart Poettering
On Mon, 12.08.13 19:41, Marti Raudsepp (ma...@juffo.org) wrote: Hi list, I hit a bug today in the scope unit support. Reproducible like this: systemd-nspawn -bD /srv/subarch systemctl stop machine-subarch.scope systemctl start machine-subarch.scope I wasn't sure whether start would do

Re: [systemd-devel] User journal corrupted or uncleanly shut down, renaming and replacing

2013-09-11 Thread Lennart Poettering
On Mon, 12.08.13 14:58, Pedro Francisco (pedrogfranci...@gmail.com) wrote: Hi, Systemd complains frequently about corrupted journal. Do note: I don't have the default mount options. $ dmesg |grep corrupte [ 51.766346] systemd-journald[181]: File

Re: [systemd-devel] How to delete device units presented in systemd-analyze plot.

2013-09-11 Thread Lennart Poettering
On Mon, 12.08.13 01:44, Tony Seo (tonys...@gmail.com) wrote: I sincerely ask you a relationship between device unit and boot time if I remove unnecessary device unit. And also, can I ask you detail process of making device unit by systemd? (I alread read the manual page related with device

Re: [systemd-devel] Generic unit file to run command on shutdown impossible?

2013-09-11 Thread Lennart Poettering
On Sat, 10.08.13 15:59, David Mazieres expires 2013-11-08 PST (mazieres-rq54ugpgb894kkmq2swhjjb...@temporary-address.scs.stanford.edu) wrote: I'm trying to do something that I hope is relatively simple, namely to run a simple kexec -l ... command on system shutdown before the /boot file

Re: [systemd-devel] [PATCHv4] tmpfiles, man: Add xattr support to tmpfiles

2013-09-11 Thread Lennart Poettering
On Thu, 08.08.13 13:54, Maciej Wereski (m.were...@partner.samsung.com) wrote: +value = strreplace(tmp, \\\, \); +if (!value) +return log_oom(); This looks like a job for cunescape() or so? +n = strlen(value); +

Re: [systemd-devel] Inconsistencies in the systemd.mount documentation

2013-09-11 Thread Thomas Bächler
Am 11.09.2013 17:08, schrieb Lennart Poettering: Using FsckPassNo= as a way to add that dep sucks really, because the ordering it does is stupid and fsck can do the ordering internally anyway these days... So, shouldn't systemd-fstab-generator omit that entirely, too? Instead, every mount with

Re: [systemd-devel] [RFC v1] crontab-generator: new generator for crontab(5) support

2013-09-11 Thread Lennart Poettering
On Thu, 08.08.13 14:50, Shawn (shawnland...@gmail.com) wrote: I am not convinced this is a really good idea. From my perspective at least it appears that we should much rather just convert the crontabs and that's it. Unlike sysv init scripts the number of crontab in use (at least on Fedora) is

Re: [systemd-devel] Trying to turn off a UPS with home-made service unit

2013-09-11 Thread Lennart Poettering
On Sat, 10.08.13 17:02, Roger Price (ro...@rogerprice.org) wrote: I am new to systemd and I am trying to power off a UPS unit using a home-made service unit /lib/systemd/system/ups-delayed-shutdown.service running on openSUSE 12.3. So, it's a really bad idea to turn off UPS from userspace,

Re: [systemd-devel] Inconsistencies in the systemd.mount documentation

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 20:04, Thomas Bächler (tho...@archlinux.org) wrote: Am 11.09.2013 17:08, schrieb Lennart Poettering: Using FsckPassNo= as a way to add that dep sucks really, because the ordering it does is stupid and fsck can do the ordering internally anyway these days... So,

Re: [systemd-devel] [PATCH 1/3] systemctl: check for triggering units before calling StopUnit

2013-09-11 Thread Lennart Poettering
On Fri, 09.08.13 16:00, Michal Sekletar (msekl...@redhat.com) wrote: Heya, Hmm, so what I don't really like about this patch is that the stop might have caused the triggering units also to go away via some deps. If we check the triggers before executing the operations we will never take that

Re: [systemd-devel] Journald stops logging when lots of output

2013-09-11 Thread Lennart Poettering
On Sat, 03.08.13 23:14, Pedro Francisco (pedrogfranci...@gmail.com) wrote: (question migrated from t...@lists.fedoraproject.org ) On Fedora 19, journald ( systemd-204-9.fc19.i686 ) stops logging. I had enabled lots of iwl3945 debugging ( various messages for each iwl3945 interaction --

Re: [systemd-devel] [Feature request] A way to native import /proc/cmdline within unit

2013-09-11 Thread Lennart Poettering
On Thu, 01.08.13 19:16, Jan Engelhardt (jeng...@inai.de) wrote: On Tuesday 2013-07-30 02:12, Gerardo Exequiel Pozzi wrote: In inside systemd unit, I want to avoid shell script if possible, using units only, doing things in a systemd way. Anyway for complex tasks where systemd does not

Re: [systemd-devel] .automount from user?

2013-09-11 Thread Lennart Poettering
On Tue, 30.07.13 01:02, rekt...@voodoowarez.com (rekt...@voodoowarez.com) wrote: Hello. I'm curious, and perhaps maybe lazy: is there any way to do automount units from a user systemd instance? I suppose I could write some silly script that collects automount files out of the user units

Re: [systemd-devel] [systemd-commits] configure.ac Makefile.am src/login units/u...@.service.in

2013-09-11 Thread Kok, Auke-jan H
On Wed, Sep 11, 2013 at 12:39 PM, Zbigniew Jędrzejewski-Szmek zbys...@kemper.freedesktop.org wrote: Makefile.am|5 + configure.ac |7 +++ src/login/pam-module.c |4 ++-- src/login/systemd-user |8 units/u...@.service.in |2 +- 5

[systemd-devel] [PATCH] man: fix description of sysctl.d order

2013-09-11 Thread Mantas Mikulėnas
systemd-sysctl gives priority to the latest occurence as of commit 04bf3c1a60d82791e0320381e9268f727708f776, but the manpage hasn't been updated for that. --- man/sysctl.d.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/sysctl.d.xml b/man/sysctl.d.xml index

Re: [systemd-devel] [PATCH] man: fix description of sysctl.d order

2013-09-11 Thread Kay Sievers
On Thu, Sep 12, 2013 at 12:49 AM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Mantas Mikulėnas at 11/09/13 22:53 did gyre and gimble: systemd-sysctl gives priority to the latest occurence as of commit 04bf3c1a60d82791e0320381e9268f727708f776, but the manpage hasn't been

Re: [systemd-devel] [PATCH] build: allow specifying a custom pam session name

2013-09-11 Thread Lennart Poettering
On Fri, 26.07.13 00:28, Marc-Antoine Perennou (marc-anto...@perennou.com) wrote: for distribution now wanting to use systemd-shared In systemd git this is now renamed to systemd-user. This really should get a fixed PAM name of its own and shouldn't be configurable. Signed-off-by:

Re: [systemd-devel] [PATCH 6/7] mount: filesystems mounted in the initrd should not conflict with umount.target in the real root

2013-09-11 Thread Colin Walters
On Wed, 2013-09-11 at 19:11 +0200, Lennart Poettering wrote: Can you elaborate on this? Why wouldn't it suffice to drop in a .mount unit for the mount in question which excludes the mount point from being unmounted with this? It doesn't appear possible to remove the default Conflicts= just by

Re: [systemd-devel] [PATCH 6/7] mount: filesystems mounted in the initrd should not conflict with umount.target in the real root

2013-09-11 Thread Lennart Poettering
On Wed, 11.09.13 19:48, Colin Walters (walt...@verbum.org) wrote: On Wed, 2013-09-11 at 19:11 +0200, Lennart Poettering wrote: Can you elaborate on this? Why wouldn't it suffice to drop in a .mount unit for the mount in question which excludes the mount point from being unmounted with

Re: [systemd-devel] Has systemd booted up command

2013-09-11 Thread Lennart Poettering
On Thu, 18.07.13 20:36, Umut Tezduyar (u...@tezduyar.com) wrote: Hey, Implementing a tool that catches the dbus signal, like you have said must be relatively easy. In fact I believe it should be possible to do it by dbus-monitor but the main problem is, tool itself must be started by systemd

Re: [systemd-devel] Some thoughts about loop_read/loop_write in util.c

2013-09-11 Thread cee1
2013/9/11 Lennart Poettering lenn...@poettering.net: loop_read/loop_write: http://cgit.freedesktop.org/systemd/systemd/tree/src/shared/util.c#n2179 In a scenario of pipes, loop_read on read side, if the write side is closed, loop_read will return 0 if do_poll is false(let's assume no data

Re: [systemd-devel] [PATCH] libsystemd-login.so: fix undefined reference to 'cg_create'

2013-09-11 Thread Yang Chengwei
On Wed, Sep 11, 2013 at 01:27:03PM +0200, Lennart Poettering wrote: On Wed, 11.09.13 13:28, Yang Chengwei (chengwei.y...@intel.com) wrote: On Tue, Sep 10, 2013 at 06:02:55PM +0200, Lennart Poettering wrote: On Mon, 26.08.13 13:48, Chengwei Yang (chengwei.y...@intel.com) wrote: Hmm,

Re: [systemd-devel] [PATCH] libsystemd-login.so: fix undefined reference to 'cg_create'

2013-09-11 Thread Yang Chengwei
On Wed, Sep 11, 2013 at 02:09:58PM +0200, Kay Sievers wrote: On Wed, Sep 11, 2013 at 1:27 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 11.09.13 13:28, Yang Chengwei (chengwei.y...@intel.com) wrote: On Tue, Sep 10, 2013 at 06:02:55PM +0200, Lennart Poettering wrote: On

Re: [systemd-devel] implies MemoryAccounting=true

2013-09-11 Thread Gao feng
On 09/11/2013 08:07 PM, Lennart Poettering wrote: On Wed, 11.09.13 09:18, Gao feng (gaof...@cn.fujitsu.com) wrote: The SYSTEMD.CGROUP(5) said if MemoryLimit=bytes is set for unit, it implies MemeoryAccounting=true for this unit. But seems systemd didn't implement this hint. CPUShares

Re: [systemd-devel] [PATCH] man: fix description of sysctl.d order

2013-09-11 Thread Kay Sievers
On Thu, Sep 12, 2013 at 1:22 AM, Kay Sievers k...@vrfy.org wrote: On Thu, Sep 12, 2013 at 12:49 AM, Colin Guthrie gm...@colin.guthr.ie wrote: I only just rejigged things for the last time this flipped around and now sysctl has decided to buck the trend of the other tools and follow a later

Re: [systemd-devel] [PATCH] man: fix description of sysctl.d order

2013-09-11 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Sep 12, 2013 at 04:14:24AM +0200, Kay Sievers wrote: On Thu, Sep 12, 2013 at 1:22 AM, Kay Sievers k...@vrfy.org wrote: On Thu, Sep 12, 2013 at 12:49 AM, Colin Guthrie gm...@colin.guthr.ie wrote: I only just rejigged things for the last time this flipped around and now sysctl

Re: [systemd-devel] [PATCH] man: fix description of sysctl.d order

2013-09-11 Thread Kay Sievers
On Thu, Sep 12, 2013 at 4:49 AM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Thu, Sep 12, 2013 at 04:14:24AM +0200, Kay Sievers wrote: On Thu, Sep 12, 2013 at 1:22 AM, Kay Sievers k...@vrfy.org wrote: On Thu, Sep 12, 2013 at 12:49 AM, Colin Guthrie gm...@colin.guthr.ie wrote: