Re: [systemd-devel] 'is-enabled' supported for legacy sysvinit scripts?

2015-04-13 Thread Jon Severinsson
måndagen den 13 april 2015 07:26:14 skrev Nusenu: Hi Andrei, thanks for your reply. systemctl should still support it if your system supports chkconfig to manage initscripts. chkconfig was indeed not installed, but even after installing it, the is-enabled command output and return

Re: [systemd-devel] [PATCH 1/2] core: do not add default dependencies to /usr mount unit

2014-07-22 Thread Jon Severinsson
At Tuesday 22 July 2014 04:46:31 Andrey Borzenkov wrote: But what exact problem does it solve? Units thinking they can read from /usr before local-fs-pre.target ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH 2/2] units: add RequiresMountsFor=/usr/… to various systemd service files

2014-07-22 Thread Jon Severinsson
At Tuesday 22 July 2014 13:01:24 Lennart Poettering wrote: I am totally not convinced this would be a good idea. You cannot fix this anyway... Think about udevd: if you start it without /usr is around, then it won't find the rules files below /usr. So by your logic you'd add a

[systemd-devel] [PATCH] core: collapse JOB_RELOAD on an inactive unit into JOB_NOP [v2]

2014-07-21 Thread Jon Severinsson
The old behavior is inconsistent and confusing, this commit simplifies matters significantly: Before this commit: * systemctl try-restart on any inactive unit returns *success* immediately * systemctl reload on an inactive unit without a queued start job returns *failure* immediately *

[systemd-devel] [PATCH 2/2] units: add RequiresMountsFor=/usr/… to various systemd service files

2014-07-21 Thread Jon Severinsson
Unless both /usr and /usr/local is mounted in the initrd these services might miss some of their configuration otherwise. --- units/systemd-binfmt.service.in | 1 + units/systemd-modules-load.service.in | 1 + units/systemd-sysctl.service.in | 1 +

[systemd-devel] [PATCH 1/2] core: do not add default dependencies to /usr mount unit

2014-07-21 Thread Jon Severinsson
This makes no difference if /usr was mounted in the initrd, and brings the behaviour of legacy systems closer to those with a propper initrd. --- src/core/mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/mount.c b/src/core/mount.c index 102bbef..39a9aaf

[systemd-devel] Misc patches from the Debian systemd package

2014-07-16 Thread Jon Severinsson
and updating them, so while most the credit goes to the original autors, any blame should fall on me :-P Regards Jon Severinsson ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH 07/10] units: order remote-fs.target after local-fs.target

2014-07-16 Thread Jon Severinsson
From: Michael Biebl bi...@debian.org This change was part of the old debianisation branch created by Tollef and reflects the fact that on Debian the $remote_fs system facility depends on $local_fs. --- units/remote-fs.target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[systemd-devel] [PATCH 09/10] kmod-static-nodes: condition execution on kmod binary

2014-07-16 Thread Jon Severinsson
From: Michael Biebl bi...@debian.org Creating the list of dead device nodes requires kmod. Inside containers this is not strictly required so we don't want a hard dependency on the kmod package. If the binary does not exist kmod-static-nodes.service will fail, so add a condition to check if the

[systemd-devel] [PATCH 05/10] rules: skip 99-systemd.rules when not running systemd as init

2014-07-16 Thread Jon Severinsson
From: Tollef Fog Heen tfh...@err.no --- rules/99-systemd.rules.in | 1 + 1 file changed, 1 insertion(+) diff --git a/rules/99-systemd.rules.in b/rules/99-systemd.rules.in index c3ef81b..df83a38 100644 --- a/rules/99-systemd.rules.in +++ b/rules/99-systemd.rules.in @@ -6,6 +6,7 @@ # (at your

[systemd-devel] [PATCH 01/10] build-sys: don't move libgudev to /lib

2014-07-16 Thread Jon Severinsson
From: Michael Biebl bi...@debian.org It depends on libgobject and libgmodule which are installed in /usr/lib. --- Makefile.am | 10 -- 1 file changed, 10 deletions(-) diff --git a/Makefile.am b/Makefile.am index a492a1f..94cd402 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3373,16

[systemd-devel] [PATCH 06/10] tmpfiles: fix permissions of /run/lock and /run/lock/lockdev

2014-07-16 Thread Jon Severinsson
From: Tollef Fog Heen tfh...@err.no --- tmpfiles.d/legacy.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmpfiles.d/legacy.conf b/tmpfiles.d/legacy.conf index 3219672..a634c17 100644 --- a/tmpfiles.d/legacy.conf +++ b/tmpfiles.d/legacy.conf @@ -10,7 +10,7 @@ #

[systemd-devel] [PATCH 08/10] units: make it possible to disable tmp.mount using systemctl

2014-07-16 Thread Jon Severinsson
From: Michael Stapelberg mich...@stapelberg.de But enable it by default in make install and systemd preset. --- Makefile.am | 4 ++-- system-preset/90-systemd.preset | 1 + units/tmp.mount | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git

[systemd-devel] [PATCH 03/10] rules: load sg module from 80-drivers.rules

2014-07-16 Thread Jon Severinsson
From: Martin Pitt martin.p...@ubuntu.com Taken from the Debian specific rules, this is the remaining difference over the upstream 80-drivers.rules. Bug-Debian: http://bugs.debian.org/657948 --- rules/80-drivers.rules | 1 + 1 file changed, 1 insertion(+) diff --git a/rules/80-drivers.rules

[systemd-devel] [PATCH 10/10] shared: include stdbool.h in mkdir.h

2014-07-16 Thread Jon Severinsson
From: Sjoerd Simons sjo...@luon.net --- src/shared/mkdir.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/mkdir.h b/src/shared/mkdir.h index d15ede6..dd5b41e 100644 --- a/src/shared/mkdir.h +++ b/src/shared/mkdir.h @@ -22,6 +22,7 @@ along with systemd; If not, see

Re: [systemd-devel] [PATCH] sysv-generator: do not generate 'Wants' symlinks to generated service files that will be shadowed by a native unit.

2014-07-16 Thread Jon Severinsson
onsdagen den 16 juli 2014 12:48:23 skrev du: On Wed, Jul 16, 2014 at 11:57 AM, Jon Severinsson j...@severinsson.net wrote: +/* Do not generate 'Wants' symlinks to the generated service file if it + * will be shadowed by an existing native unit, as the symlinks would

Re: [systemd-devel] [PATCH 06/10] tmpfiles: fix permissions of /run/lock and /run/lock/lockdev

2014-07-16 Thread Jon Severinsson
onsdagen den 16 juli 2014 12:15:09 skrev du: Why do you think this should be changed? Mostly because this is the way it has always been done in Debian, and changing it breaks some existing init scripts, but I'm ok with continuing to carry it as a Debian specific patch if it is not considered

Re: [systemd-devel] [PATCH 08/10] units: make it possible to disable tmp.mount using systemctl

2014-07-16 Thread Jon Severinsson
tmp.mount is part of our default expected setup and should behave like this by default without any presets or configuration. Which is why I made `make install` enable it, which wasn't in the original patch for Debian. It can be overridden by an entry in fstab just fine. Why is that needed?

Re: [systemd-devel] [PATCH 07/10] units: order remote-fs.target after local-fs.target

2014-07-16 Thread Jon Severinsson
On Wed, Jul 16, 2014 at 12:57:41PM +0200, Tom Gundersen wrote: If this is merely for sysv compat, it feels wrong to add this in the native unit files (but maybe the argument could be made regardless?). That was indeed the original reason for the patch, but I believe it to be the right thing to

Re: [systemd-devel] Misc patches from the Debian systemd package

2014-07-16 Thread Jon Severinsson
At Wednesday 16 July 2014 15:14:59 Jóhann B. Guðmundsson wrote: It should not come as a surprise to anyone given that Debian has such an diverse user base that there exist mass hacks in the distribution to please them all so filtering is needed/expected before things are being submitted

Re: [systemd-devel] [PATCH] sysv-generator: do not generate 'Wants' symlinks to generated service files that will be shadowed by a native unit.

2014-07-16 Thread Jon Severinsson
At Wednesday 16 July 2014 17:17:40 Lennart Poettering wrote: I am a bit concerned about this, as we will never be able to find all the units that PID 1 will find, for example because generated units are not included in the client's search paths... Right, but those cases have never been a

Re: [systemd-devel] [PATCH 05/10] rules: skip 99-systemd.rules when not running systemd as init

2014-07-16 Thread Jon Severinsson
onsdagen den 16 juli 2014 16:49:55 skrev Lennart Poettering: On Wed, 16.07.14 12:09, Jon Severinsson (j...@severinsson.net) wrote: From: Tollef Fog Heen tfh...@err.no If you really want to support systems without systemd installed, then I'd recommend placing this rules file in the systemd

[systemd-devel] [PATCH] core: collapse JOB_RELOAD on an inactive unit into JOB_NOP

2014-07-15 Thread Jon Severinsson
Before this commit systemctl reload on an inactive unit with a queued start job would block until the unit had started if the unit supported reload, but return failure immediately if the unit didn't. Additionally systemctl reload-or-try-restart (and systemctl force-reload) would block until the

[systemd-devel] [PATCH] build-sys: Do not distribute generated emergency.service

2014-07-11 Thread Jon Severinsson
It is already in nodist_systemunit_DATA and if it is shipped, it contains the hardcoded path to systemctl which will cause it to fail to start when rootprefix != prefix and rootbindir != bindir. --- Makefile.am | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index

[systemd-devel] [PATCH] Improve xz compression performance.

2014-07-08 Thread Jon Severinsson
The new lzma2 compression options at the top of compress_blob_xz are equivalent to using preset 0, exept for using a 1 MiB dictionary (the same as preset 1). This makes the memory usage at most 7.5 MiB in the compressor, and 1 MiB in the decompressor, instead of the previous 92 MiB in the