Re: [systemd-devel] experiments with 'minimal build'

2015-03-19 Thread Lukáš Nykrýn
Alison Chaiken píše v St 18. 03. 2015 v 00:07 -0700: After reading about the 'minimal build' on the systemd wiki, I decided to experiment. 0. WIth basically all options turned on, in a Fedora 21 Qemu, systemd used about 300 MB of memory according to 'sudo memstat -p 1'. 1. With

Re: [systemd-devel] [RFC PATCH] udev: add an abs-override builtin to override EV_ABS data

2015-03-19 Thread Peter Hutterer
On Thu, Mar 19, 2015 at 01:54:46PM +0100, David Herrmann wrote: Hi On Thu, Mar 19, 2015 at 10:52 AM, Peter Hutterer peter.hutte...@who-t.net wrote: This builtin parses properties in the form EV_ABS_OVERRIDE_00=min:max:res:fuzz:flat The concept sounds good. hwdb is definitely the place

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Kai Krakow
Reindl Harald h.rei...@thelounge.net schrieb: Am 19.03.2015 um 22:04 schrieb Kai Krakow: Christoph Pleger christoph.ple...@cs.tu-dortmund.de schrieb: I am experimenting a little with systemd and trying to define a new intermediate runlevel, a runlevel between basic.target and

Re: [systemd-devel] [PATCH] hwdb: ship ids-update.pl sdio.ids in the release tarballs.

2015-03-19 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Mar 17, 2015 at 08:26:28AM -0700, Marcel Holtmann wrote: Hi Dimitri, On 16 March 2015 at 23:15, Marcel Holtmann mar...@holtmann.org wrote: Hi Dimitri, This makes it easier to apply stable branch patches on top of the release tarball. --- Makefile.am | 4 +++- 1 file

[systemd-devel] [RFC PATCH] udev: add an abs-override builtin to override EV_ABS data

2015-03-19 Thread Peter Hutterer
This builtin parses properties in the form EV_ABS_OVERRIDE_00=min:max:res:fuzz:flat and applies them to the kernel device. Future processes that open that device will see the updated EV_ABS range. This is particularly useful for touchpads that don't provide a resolution in the kernel driver but

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Christoph Pleger
Hello, I am experimenting a little with systemd and trying to define a new intermediate runlevel, a runlevel between basic.target and multi-user.target. This means that I want the services which are required by my new runlevel to be started after all services from basic.target have been

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Andrei Borzenkov
On Thu, Mar 19, 2015 at 1:00 PM, Christoph Pleger christoph.ple...@cs.tu-dortmund.de wrote: Hello, I am experimenting a little with systemd and trying to define a new intermediate runlevel, a runlevel between basic.target and multi-user.target. This means that I want the services which are

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Dimitri John Ledkov
On 19 March 2015 at 10:00, Christoph Pleger christoph.ple...@cs.tu-dortmund.de wrote: Hello, I am experimenting a little with systemd and trying to define a new intermediate runlevel, a runlevel between basic.target and multi-user.target. This means that I want the services which are

[systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-19 Thread Stef Walter
This property is in usec (like the TimeUSec property) and allows retrieving the timezone offset for the machine. This is particularly usable for remote callers. --- src/timedate/timedated.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Dimitri John Ledkov
On 19 March 2015 at 12:09, Christoph Pleger christoph.ple...@cs.tu-dortmund.de wrote: Hello, So, if the original unit file multi-user.target contains After=basic.target rescue.service rescue.target this after does not really mean anything and jobs wanted or required by multi-user.target

Re: [systemd-devel] [RFC PATCH] udev: add an abs-override builtin to override EV_ABS data

2015-03-19 Thread David Herrmann
Hi On Thu, Mar 19, 2015 at 10:52 AM, Peter Hutterer peter.hutte...@who-t.net wrote: This builtin parses properties in the form EV_ABS_OVERRIDE_00=min:max:res:fuzz:flat The concept sounds good. hwdb is definitely the place to put this, rather than static kernel fixups. and applies them to the

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Christoph Pleger
Hello, So, if the original unit file multi-user.target contains After=basic.target rescue.service rescue.target this after does not really mean anything and jobs wanted or required by multi-user.target can already be started when some jobs from basic.target have not been started???

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Andrei Borzenkov
On Thu, Mar 19, 2015 at 3:09 PM, Christoph Pleger christoph.ple...@cs.tu-dortmund.de wrote: Hello, So, if the original unit file multi-user.target contains After=basic.target rescue.service rescue.target this after does not really mean anything and jobs wanted or required by

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Andrei Borzenkov
On Thu, Mar 19, 2015 at 3:19 PM, Christoph Pleger christoph.ple...@cs.tu-dortmund.de wrote: Hello, So, if the original unit file multi-user.target contains After=basic.target rescue.service rescue.target this after does not really mean anything and jobs wanted or required by

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Reindl Harald
Am 19.03.2015 um 13:09 schrieb Christoph Pleger: What is the the problem you are trying to solve by implementing a new 'intermediate' runlevel ? I want a program to be run at boot time without any other systemd services starting concurrently. The program needs the services from basic.target

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Christoph Pleger
Hello, So, if the original unit file multi-user.target contains After=basic.target rescue.service rescue.target this after does not really mean anything and jobs wanted or required by multi-user.target can already be started when some jobs from basic.target have not been started???

Re: [systemd-devel] StartLimitBurst prevents manual start-up of a service

2015-03-19 Thread Andrei Borzenkov
В Thu, 19 Mar 2015 15:23:41 -0400 Nekrasov, Alexander alexander.nekra...@emc.com пишет: Hi All, Suppose I have a B.service that's doing important work, and an A.service that's watching over B memory consumption. So I want to start A when I start B, and stop A when I stop B. Also B, being

Re: [systemd-devel] [PATCH] hwdb: ship ids-update.pl sdio.ids in the release tarballs.

2015-03-19 Thread Marcel Holtmann
Hi Michael, On 16 March 2015 at 23:15, Marcel Holtmann mar...@holtmann.org wrote: Hi Dimitri, Just tell patch or git to skip the hunks modifying ids-update.pl and sdio.ids. Problem solved. I'll apply the patch, but with a slightly different motivation. [L]GPL requires commercial

Re: [systemd-devel] [PATCH 4/4] Add a new tmpfiles.d snippets to set the NOCOW the journal.

2015-03-19 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Mar 16, 2015 at 08:33:52PM +0100, Goffredo Baroncelli wrote: From: Goffredo Baroncelli kreij...@inwind.it Add a new tmpfiles.d snippets to set the NOCOW attributes for the journal files. This allow better perfomance when the root file system is BTRFS. Pay attention that the NOCOW

Re: [systemd-devel] [PATCH] hwdb: ship ids-update.pl sdio.ids in the release tarballs.

2015-03-19 Thread Michael Biebl
2015-03-21 13:12 GMT+01:00 Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl: On Thu, Mar 19, 2015 at 06:43:18PM -0700, Marcel Holtmann wrote: Hi Zbyszek, On 16 March 2015 at 23:15, Marcel Holtmann mar...@holtmann.org wrote: Hi Dimitri, Just tell patch or git to skip the hunks modifying

Re: [systemd-devel] [PATCH] hwdb: ship ids-update.pl sdio.ids in the release tarballs.

2015-03-19 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Mar 19, 2015 at 06:43:18PM -0700, Marcel Holtmann wrote: Hi Zbyszek, On 16 March 2015 at 23:15, Marcel Holtmann mar...@holtmann.org wrote: Hi Dimitri, This makes it easier to apply stable branch patches on top of the release tarball. --- Makefile.am | 4 +++- 1 file

[systemd-devel] systemd and nested Btrfs subvolumes

2015-03-19 Thread Chris Murphy
Short version: -- Instead of machinectl clone using btrfs snapshots, or even needing to store things in a var/lib/machines Btrfs subvolume, does it meet the requirements for Btrfs optimization to do this with cp -a --reflink instead? Why? Nested subvolumes are confusing. And

Re: [systemd-devel] [PATCH] hwdb: ship ids-update.pl sdio.ids in the release tarballs.

2015-03-19 Thread Marcel Holtmann
Hi Zbyszek, On 16 March 2015 at 23:15, Marcel Holtmann mar...@holtmann.org wrote: Hi Dimitri, This makes it easier to apply stable branch patches on top of the release tarball. --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am

Re: [systemd-devel] not running ExecStop= when stopping activating services?

2015-03-19 Thread Andrei Borzenkov
В Thu, 19 Mar 2015 15:08:39 -0400 Nekrasov, Alexander alexander.nekra...@emc.com пишет: Hi All, With these settings [Service] ExecStart=/cli run ExecStop=/cli stop Type=forking PIDFile=/tmp/cli.pid The service is active once cli run exits. A call to systemctl stop then produces a

Re: [systemd-devel] [PATCH] resolved: Do not add .busname dependencies, when compiling without kdbus.

2015-03-19 Thread Dimitri John Ledkov
On 19 March 2015 at 16:29, Michael Biebl mbi...@gmail.com wrote: 2015-03-19 17:07 GMT+01:00 David Herrmann dh.herrm...@gmail.com: On Thu, Mar 19, 2015 at 4:59 PM, Michael Biebl mbi...@gmail.com wrote: So, +1 for Dimitri's patch. Looks correct to me. Unless someone objects, I'm planning on

Re: [systemd-devel] CapabilityBoundingSet vs. ExecReload (kill)

2015-03-19 Thread Nusenu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 That tells me that the ExecReload command (kill) is also restricted by CapabilityBoundingSet. Is this expected [..]? recent systemd has more problems in context of systemctl and restricting even PID1 itself in a way no longer be able to kill

Re: [systemd-devel] [PATCH] systemd: Have rpc-statd-notify.service Require network.target

2015-03-19 Thread Steve Dickson
On 03/03/2015 01:36 PM, Steve Dickson wrote: Its been reported that having the rpc-statd-notify service depend on network.target instead network-online.target decrease boot times as much as 10 seconds on some installs Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1183293

Re: [systemd-devel] [PATCH] missing.h: add more btrfs types and defines

2015-03-19 Thread Michael Olbrich
On Thu, Mar 19, 2015 at 02:05:00PM +0100, David Herrmann wrote: On Wed, Mar 18, 2015 at 2:04 PM, Michael Olbrich m.olbr...@pengutronix.de wrote: it seems we're getting a lot of btrfs stuff here. Maybe we should ship a copy of btrfs.h instead? All these definitions where introduced with

Re: [systemd-devel] [PATCH] resolved: Do not add .busname dependencies, when compiling without kdbus.

2015-03-19 Thread Dimitri John Ledkov
On 19 March 2015 at 13:31, David Herrmann dh.herrm...@gmail.com wrote: Hi On Tue, Mar 17, 2015 at 4:37 PM, Dimitri John Ledkov dimitri.j.led...@intel.com wrote: --- Makefile.am | 2 +- units/systemd-resolved.service.in| 29 -

Re: [systemd-devel] [PATCH] missing.h: add more btrfs types and defines

2015-03-19 Thread David Herrmann
Hi On Wed, Mar 18, 2015 at 2:04 PM, Michael Olbrich m.olbr...@pengutronix.de wrote: --- Hi, it seems we're getting a lot of btrfs stuff here. Maybe we should ship a copy of btrfs.h instead? All these definitions where introduced with linux-3.8 (well, the header was moved to linux/btrfs.h

Re: [systemd-devel] [PATCH] resolved: Do not add .busname dependencies, when compiling without kdbus.

2015-03-19 Thread David Herrmann
Hi On Tue, Mar 17, 2015 at 4:37 PM, Dimitri John Ledkov dimitri.j.led...@intel.com wrote: --- Makefile.am | 2 +- units/systemd-resolved.service.in| 29 - units/systemd-resolved.service.m4.in | 31 +++ 3

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-19 Thread David Herrmann
Hi On Thu, Mar 19, 2015 at 11:24 AM, Stef Walter st...@redhat.com wrote: This property is in usec (like the TimeUSec property) and allows retrieving the timezone offset for the machine. This is particularly usable for remote callers. --- src/timedate/timedated.c | 20 +++-

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-19 Thread Stef Walter
On 19.03.2015 14:39, David Herrmann wrote: Hi On Thu, Mar 19, 2015 at 11:24 AM, Stef Walter st...@redhat.com wrote: This property is in usec (like the TimeUSec property) and allows retrieving the timezone offset for the machine. This is particularly usable for remote callers. ---

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Andrei Borzenkov
On Thu, Mar 19, 2015 at 4:27 PM, Christoph Pleger christoph.ple...@cs.tu-dortmund.de wrote: Hello, Then, I still do not understand why my definition of a new target did not work. What is the difference between multi-user.target waiting for basic.target on the one hand and new.target waiting

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-19 Thread David Herrmann
Hi On Thu, Mar 19, 2015 at 2:58 PM, Stef Walter st...@redhat.com wrote: On 19.03.2015 14:39, David Herrmann wrote: Hmm, so this is a convenience call. You could just set tm.tm_zone locally and use mktime() with the value retrieved by Timezone? Yeah, the time-api is awful with global

Re: [systemd-devel] [PATCH] Create journal-remote.conf.xml to document the format of the configuration file for systemd-journal-remote

2015-03-19 Thread Chris Morgan
On Thu, Mar 19, 2015 at 9:23 AM, David Herrmann dh.herrm...@gmail.com wrote: Hi On Mon, Mar 16, 2015 at 1:49 PM, Chris Morgan chmor...@gmail.com wrote: --- man/journal-remote.conf.xml| 111 + man/systemd-journal-remote.xml | 1 + 2 files

Re: [systemd-devel] [PATCH] Create journal-remote.conf.xml to document the format of the configuration file for systemd-journal-remote

2015-03-19 Thread David Herrmann
Hi On Mon, Mar 16, 2015 at 1:49 PM, Chris Morgan chmor...@gmail.com wrote: --- man/journal-remote.conf.xml| 111 + man/systemd-journal-remote.xml | 1 + 2 files changed, 112 insertions(+) create mode 100644 man/journal-remote.conf.xml diff

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Christoph Pleger
Hello, Then, I still do not understand why my definition of a new target did not work. What is the difference between multi-user.target waiting for basic.target on the one hand and new.target waiting for basic.target and multi-user.target waiting for new.target on the other hand, aside from

Re: [systemd-devel] machinectl login system: Failed to get machine PTY: Unit container-getty@0.service failed to load: No such file or directory.

2015-03-19 Thread David Herrmann
Hi On Tue, Mar 17, 2015 at 4:54 PM, Peter Paule systemd-de...@fedux.org wrote: Hi, starting a container works fine. I'm running now systemd from git. Last commit is 1b41981d9a62443d566df6bcabc1b5024e9f5e4a which changes things with container-getty. $ sudo machinectl start test-server

Re: [systemd-devel] Needs help for on charging activation

2015-03-19 Thread David Herrmann
Hi On Mon, Mar 9, 2015 at 3:21 PM, WaLyong Cho walyong@samsung.com wrote: Hi, I want to find best solution on our case. Our product is mobile device. But I don't think that is only problem of mobile device. That also can be problem of laptop. So, please comment to me. We have some of

Re: [systemd-devel] CapabilityBoundingSet vs. ExecReload (kill)

2015-03-19 Thread Reindl Harald
Am 19.03.2015 um 18:04 schrieb Nusenu: That tells me that the ExecReload command (kill) is also restricted by CapabilityBoundingSet. Is this expected [..]? recent systemd has more problems in context of systemctl and restricting even PID1 itself in a way no longer be able to kill processes

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Reindl Harald
Am 19.03.2015 um 18:00 schrieb Uoti Urpala: On Thu, 2015-03-19 at 18:41 +0300, Andrei Borzenkov wrote: On Thu, Mar 19, 2015 at 6:11 PM, Michael Biebl mbi...@gmail.com wrote: The summary of my reply was What you probably want, is hook into basic.target or sysinit.target, use

Re: [systemd-devel] experiments with 'minimal build'

2015-03-19 Thread Andrei Borzenkov
В Thu, 19 Mar 2015 08:39:18 -0700 Alison Chaiken ali...@she-devel.com пишет: I ran systemd 219 with most recent patches and -PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN and, to compare, with

[systemd-devel] bandwidth per service

2015-03-19 Thread Rahul Sundaram
Hi I see device specific ones at http://www.freedesktop.org/software/systemd/man/systemd.resource-control.html I was wondering, whether it would be feasible to add bandwidth limits either by size or percentage for any particular service? squid, torrent daemons etc could use this. Rahul

Re: [systemd-devel] [PATCH 0/2] some systemd unit changes

2015-03-19 Thread Steve Dickson
On 03/03/2015 12:28 PM, Martin Pitt wrote: Hello NFS developers, reposting the two patches inline as requested by Steve. I'm currently systemd-ifying our nfs-utils Ubuntu package. For testing I put the NFS server and client (i. e. localhost:/foo/bar mounts) on the same machine. With

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Uoti Urpala
On Thu, 2015-03-19 at 18:41 +0300, Andrei Borzenkov wrote: On Thu, Mar 19, 2015 at 6:11 PM, Michael Biebl mbi...@gmail.com wrote: The summary of my reply was What you probably want, is hook into basic.target or sysinit.target, use DefaultDependencies=no, and specify the

Re: [systemd-devel] Needs help for on charging activation

2015-03-19 Thread Kyungmin Park
On Thursday, March 19, 2015, David Herrmann dh.herrm...@gmail.com wrote: Hi On Mon, Mar 9, 2015 at 3:21 PM, WaLyong Cho walyong@samsung.com javascript:; wrote: Hi, I want to find best solution on our case. Our product is mobile device. But I don't think that is only problem of

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-19 Thread Stef Walter
On 19.03.2015 15:17, David Herrmann wrote: Hi On Thu, Mar 19, 2015 at 2:58 PM, Stef Walter st...@redhat.com wrote: On 19.03.2015 14:39, David Herrmann wrote: Hmm, so this is a convenience call. You could just set tm.tm_zone locally and use mktime() with the value retrieved by Timezone?

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Uoti Urpala
On Thu, 2015-03-19 at 14:27 +0100, Christoph Pleger wrote: Then, I still do not understand why my definition of a new target did not work. What is the difference between multi-user.target waiting for basic.target on the one hand and new.target waiting for basic.target and

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Michael Biebl
2015-03-19 15:46 GMT+01:00 Uoti Urpala uoti.urp...@pp1.inet.fi: On Thu, 2015-03-19 at 14:27 +0100, Christoph Pleger wrote: Then, I still do not understand why my definition of a new target did not work. What is the difference between multi-user.target waiting for basic.target on the one

Re: [systemd-devel] experiments with 'minimal build'

2015-03-19 Thread Greg KH
On Fri, Mar 20, 2015 at 02:44:47AM +1100, Jeff Waugh wrote: On Fri, Mar 20, 2015 at 2:39 AM, Alison Chaiken ali...@she-devel.com wrote: http://freedesktop.org/wiki/Software/systemd/MinimalBuilds/ says that the minimum requirements are udev and journald.   I wonder if udev is

Re: [systemd-devel] experiments with 'minimal build'

2015-03-19 Thread Greg KH
On Thu, Mar 19, 2015 at 08:39:18AM -0700, Alison Chaiken wrote: I ran systemd 219 with most recent patches and -PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN and, to compare, with +PAM +AUDIT

Re: [systemd-devel] [PATCH] resolved: Do not add .busname dependencies, when compiling without kdbus.

2015-03-19 Thread Michael Biebl
2015-03-19 17:07 GMT+01:00 David Herrmann dh.herrm...@gmail.com: On Thu, Mar 19, 2015 at 4:59 PM, Michael Biebl mbi...@gmail.com wrote: So, +1 for Dimitri's patch. Looks correct to me. Unless someone objects, I'm planning on merging it. Yes, please go ahead. I missed that .busname is not

Re: [systemd-devel] [PATCH] resolved: Do not add .busname dependencies, when compiling without kdbus.

2015-03-19 Thread Michael Biebl
2015-03-19 15:02 GMT+01:00 Dimitri John Ledkov dimitri.j.led...@intel.com: On 19 March 2015 at 13:31, David Herrmann dh.herrm...@gmail.com wrote: Hi On Tue, Mar 17, 2015 at 4:37 PM, Dimitri John Ledkov dimitri.j.led...@intel.com wrote: --- Makefile.am | 2 +-

Re: [systemd-devel] [PATCH] resolved: Do not add .busname dependencies, when compiling without kdbus.

2015-03-19 Thread David Herrmann
Hi On Thu, Mar 19, 2015 at 4:59 PM, Michael Biebl mbi...@gmail.com wrote: 2015-03-19 15:02 GMT+01:00 Dimitri John Ledkov dimitri.j.led...@intel.com: On 19 March 2015 at 13:31, David Herrmann dh.herrm...@gmail.com wrote: Hi On Tue, Mar 17, 2015 at 4:37 PM, Dimitri John Ledkov

Re: [systemd-devel] experiments with 'minimal build'

2015-03-19 Thread Alison Chaiken
I ran systemd 219 with most recent patches and -PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN and, to compare, with +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT

Re: [systemd-devel] Boot ordering

2015-03-19 Thread Andrei Borzenkov
On Thu, Mar 19, 2015 at 6:11 PM, Michael Biebl mbi...@gmail.com wrote: The summary of my reply was What you probably want, is hook into basic.target or sysinit.target, use DefaultDependencies=no, and specify the dependencies/orderings explicitly. Apparently, this didn't stick. The reality

Re: [systemd-devel] experiments with 'minimal build'

2015-03-19 Thread Jeff Waugh
On Fri, Mar 20, 2015 at 2:39 AM, Alison Chaiken ali...@she-devel.com wrote: http://freedesktop.org/wiki/Software/systemd/MinimalBuilds/ says that the minimum requirements are udev and journald. I wonder if udev is really needed if the kernel is completely statically compiled and module