[systemd-devel] understanding systemd ordering vs dependencies

2016-07-25 Thread Patrick Schleizer
Hi! I am trying to understand systemd ordering vs dependencies. When I am already using Wants=, why should I also add After=? When I am already using After=, why should I also add Wants=? Systemd ordering with Before= and After= is more about speed concerns? Such as for example to express "i

[systemd-devel] new job systemd-cryptsetup@arkluks.service/stop - Why?

2016-07-25 Thread Dave T
Is systemd expected to stop / unmount an encrypted device when another device containing the keyfile used to mount it (e.g., a removable USB drive) is removed? when I umount and then remove the USB disk, I see the following line in journalctl: Jul 25 22:11:20 mserver systemd[1]:

Re: [systemd-devel] new job systemd-cryptsetup@arkluks.service/stop - Why?

2016-07-25 Thread Andrei Borzenkov
On Tue, Jul 26, 2016 at 7:57 AM, Dave T wrote: > Is systemd expected to stop / unmount an encrypted device when another > device containing the keyfile used to mount it (e.g., a removable USB drive) > is removed? > > when I umount and then remove the USB disk, I see the

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-25 Thread Andrei Borzenkov
25.07.2016 20:48, Lennart Poettering пишет: > "su" opens user sessions, it does substantially more than just change > UIDs. Consider using "runuser" at least. > > The fact that a user session is created means that systemd will track > the code invoked like that independently of the service unit,

Re: [systemd-devel] understanding systemd ordering vs dependencies

2016-07-25 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jul 25, 2016 at 10:59:00PM +, Patrick Schleizer wrote: > Hi! > > I am trying to understand systemd ordering vs dependencies. > > When I am already using Wants=, why should I also add After=? > > When I am already using After=, why should I also add Wants=? Please see the

[systemd-devel] systemd with TPM docs

2016-07-25 Thread han tai
Hi Is there any documents about systemd with TPM ? Thanks. -- Yours Sincerely___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] systemd[1]: Stopped (with error) /dev/mapper/wxyz.

2016-07-25 Thread Stefan Tatschner
On 25.07.2016 05:11, Dave T wrote: > I have a fileserver with several HDDs (btrfs and dm-crypt for all except > one which is lvm2 and dm-crypt). > > Within the last week when I umount a USB drive, all my other mounts > immediately get unmounted too. I lose /home and almost everything else >

[systemd-devel] sequence numbers of udev events not in sequence

2016-07-25 Thread Anne Mulhern
Hi! I happened to be printing out the sequence numbers of the udev events I was receiving via the udev monitor, and I noticed that they did not occur exactly in sequence, e.g., I was receiving events with sequence numbers in this order: 13694 13696 13695 13697 13698 13699 13700 13701 13702

Re: [systemd-devel] sequence numbers of udev events not in sequence

2016-07-25 Thread Lennart Poettering
On Mon, 25.07.16 11:44, Anne Mulhern (amulh...@redhat.com) wrote: > Hi! > > I happened to be printing out the sequence numbers of the udev events I was > receiving via the udev monitor, > and I noticed that they did not occur exactly in sequence, e.g., I was > receiving events with sequence

[systemd-devel] systemd-run and -p ProtectSystem=ful

2016-07-25 Thread Reindl Harald
just upgraded to Fedora 24 /usr/bin/systemd-run -t --service-type=oneshot --quiet --nice=19 --unit=spamfilter-fetch-samples --description=spamfilter-fetch-samples -p ProtectSystem=full /usr/bin/php /scripts/test.php don't log anything useful or return anything, calling a shellscript which

Re: [systemd-devel] systemd-run and -p ProtectSystem=ful

2016-07-25 Thread Lennart Poettering
On Mon, 25.07.16 19:26, Reindl Harald (h.rei...@thelounge.net) wrote: > just upgraded to Fedora 24 > > /usr/bin/systemd-run -t --service-type=oneshot --quiet --nice=19 > --unit=spamfilter-fetch-samples --description=spamfilter-fetch-samples -p > ProtectSystem=full /usr/bin/php /scripts/test.php

Re: [systemd-devel] Redirecting logfile to journald

2016-07-25 Thread Lennart Poettering
On Mon, 25.07.16 00:55, Juanjo Presa (juan...@gmail.com) wrote: > Hi, I'm running a service that only writes output to log file, not > configurable. Then I'm trying to link the log file to /dev/stdout but I > guess that is not enough to be received by journald because is not > working. Yes, this

Re: [systemd-devel] systemd-coredump, coredump is truncated to exactly 2GiB

2016-07-25 Thread Lennart Poettering
On Sat, 23.07.16 17:41, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > Sounds like a bug in the logic. 2GiB is the default value for ProcessSizeMax= > and ExternalSizeMax=. coredump.conf(5) implies coredumps larger than that > will not be stored. I don't think it's useful to have

Re: [systemd-devel] systemd[1]: Stopped (with error) /dev/mapper/wxyz.

2016-07-25 Thread Dave
I appreciate the responses. See below. I will paste a full debug log, but I can't arbitrarily reboot the current production machine. I'll replicate this on another machine. That could take a day or so. In the mean time, below is further explanation: On Mon, Jul 25, 2016 at 6:42 AM, Stefan

Re: [systemd-devel] UseDNS

2016-07-25 Thread Lennart Poettering
On Wed, 13.07.16 13:33, Zack Baron (zbaro...@gmail.com) wrote: > I am currently modifying some of the systemd source (specifically > the resolved section) and was wondering if you could point me in the > right direction. I need access to the UseDNS= setting provided in > the .network config files

Re: [systemd-devel] systemd-run and -p ProtectSystem=ful

2016-07-25 Thread Reindl Harald
Am 25.07.2016 um 19:41 schrieb Lennart Poettering: On Mon, 25.07.16 19:26, Reindl Harald (h.rei...@thelounge.net) wrote: just upgraded to Fedora 24 /usr/bin/systemd-run -t --service-type=oneshot --quiet --nice=19 --unit=spamfilter-fetch-samples --description=spamfilter-fetch-samples -p

Re: [systemd-devel] Problems trying to convert a System-V-Init script to systemd

2016-07-25 Thread Lennart Poettering
On Thu, 14.07.16 12:34, Holger Kiehl (holger.ki...@dwd.de) wrote: > Hello, > > I am new to systemd and the maintainer of the file distribution software > AFD (http://www.dwd.de/AFD) and I am trying to adapt this application > to systemd. The problem I am unable to solve is that doing a reboot, >

Re: [systemd-devel] vconsole-setup updates & fixes

2016-07-25 Thread Lennart Poettering
On Sat, 02.07.16 02:53, Michal Soltys (sol...@ziu.info) wrote: > Hi, > > This patch fixes issues I mentioned in > http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/36874 For those interested, this patch set's discussion moved to: https://github.com/systemd/systemd/pull/3742 Lennart

Re: [systemd-devel] Wiki suggestion

2016-07-25 Thread Lennart Poettering
On Fri, 22.07.16 10:29, Marcos Mello (marcos...@outlook.com) wrote: > Hi, > > SUSE has this nice white paper about systemd in SLE 12: > > systemd in SUSE® Linux Enterprise 12 > A kinder, gentler introduction from SUSE > >

[systemd-devel] [ANNOUNCE] systemd 231

2016-07-25 Thread Lennart Poettering
Heya! Lots of fixes, lots of additions: https://github.com/systemd/systemd/archive/v231.tar.gz CHANGES WITH 231: * In service units the various ExecXYZ= settings have been extended with an additional special character as first argument of the assigned value: