Re: [systemd-devel] suspend hook as user service

2017-02-20 Thread Simon McVittie
On Fri, 17 Feb 2017 at 19:41:00 +0100, Michael Hirmke wrote: > A much better approach is to write a script or program listening for the > according signals "PrepareForSleep" and "PrepareForShutdown" on the dbus > interface "org.freedesktop.login1". This is the thing to do. It allows your program

Re: [systemd-devel] suspend hook as user service

2017-02-20 Thread Lennart Poettering
On Fri, 17.02.17 18:09, Reverend Homer (mk.43.e...@gmail.com) wrote: > Hi, > > is there any way to start user service before/after suspend.target? In > wiki.archlinux.org there are only system sleep hooks [1]. I tried to lock the > screen before suspend and put the service inspired by [2] in >

[systemd-devel] [RFC] systemd-swap

2017-02-20 Thread Timofey Titovets
Hi, some time ago (about 3 years ago, first commit at Apr 9, 2014) I created small project: systemd-swap. https://github.com/Nefelim4ag/systemd-swap Short description from README.md: Script for manage swap on: zswap - Enable/Configure zram - Autoconfigurating files - (sparse files for

Re: [systemd-devel] Adding "After=network-online.target" via drop-in

2017-02-20 Thread Lennart Poettering
On Sun, 19.02.17 14:34, Mantas Mikulėnas (graw...@gmail.com) wrote: > On Sat, Feb 18, 2017 at 10:32 PM, Ian Pilcher wrote: > > > I have configured sshd on my firewall to listen only on its internal > > IP address. This is causing it to fail when it first starts, since the

Re: [systemd-devel] How to disable Predictable Network Interface Names using a drop-in?

2017-02-20 Thread Lennart Poettering
On Mon, 20.02.17 17:38, Lennart Poettering (lenn...@poettering.net) wrote: > On Sun, 19.02.17 12:54, Marc Haber (mh+systemd-de...@zugschlus.de) wrote: > > > On Mon, Feb 06, 2017 at 09:56:30PM +0100, Lennart Poettering wrote: > > > On Sat, 21.01.17 21:20, Marc Haber

Re: [systemd-devel] How to disable Predictable Network Interface Names using a drop-in?

2017-02-20 Thread Lennart Poettering
On Sun, 19.02.17 12:54, Marc Haber (mh+systemd-de...@zugschlus.de) wrote: > On Mon, Feb 06, 2017 at 09:56:30PM +0100, Lennart Poettering wrote: > > On Sat, 21.01.17 21:20, Marc Haber (mh+systemd-de...@zugschlus.de) wrote: > > > On Fri, Jan 20, 2017 at 02:51:00PM +, Patrick Schleizer wrote: >

Re: [systemd-devel] systemd loses a netlink socket

2017-02-20 Thread Lennart Poettering
On Fri, 17.02.17 16:58, Andrei Vagin (ava...@gmail.com) wrote: > Hello, > > I found that systemd-networkd creates a netlink socket and then > doesn't read data from it. The reason is that a stream of messages > into this socket is too active, so they fill the socket buffer and > recvmsg()

Re: [systemd-devel] udev virtio by-path naming

2017-02-20 Thread Lennart Poettering
On Mon, 20.02.17 15:34, Viktor Mihajlovski (mihaj...@linux.vnet.ibm.com) wrote: > But then, I find this naming scheme somewhat weird. > A virtio disk shows up as a regular PCI function on the PCI > bus side by side with other (non-virtio) devices. The naming otoh > suggests that virtio-pci is a

[systemd-devel] udev virtio by-path naming

2017-02-20 Thread Viktor Mihajlovski
Hi, with systemd > v229 all virtio block devices will receive persistent device names in the format /dev/disk-by/virtio-pci-, the last component being the udev built-in path_id. This naming introduces some issues. First and obvious, there are virtio implementations not based on PCI, like

Re: [systemd-devel] suspend hook as user service

2017-02-20 Thread Michael Hirmke
Hi Simon, >On Fri, 17 Feb 2017 at 19:41:00 +0100, Michael Hirmke wrote: >> A much better approach is to write a script or program listening for the >> according signals "PrepareForSleep" and "PrepareForShutdown" on the dbus >> interface "org.freedesktop.login1". >This is the thing to do. It

[systemd-devel] Log output is incomplete or unavailable

2017-02-20 Thread Patrick B
Hi guys, I'm running Ubuntu 16.04.01 Server and just realised some log files are not being created. Such as: /var/log/kern.log /var/log/postgresql/postgresql.log service postgresql status Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

[systemd-devel] Systemctl causes Spark native thread creation issue

2017-02-20 Thread Rao Vz
Hi, Guys We have a Apache Spark cluster of 3 nodes, one is master and slave, the other two are slaves. When starting Spark worker with "systemctl start spark-worker", when running out apps, sometimes but not always it generates "java.lang.OutOfMemoryError: unable to create new native thread"

Re: [systemd-devel] Log output is incomplete or unavailable

2017-02-20 Thread Reindl Harald
Am 20.02.2017 um 22:00 schrieb Patrick B: I'm running Ubuntu 16.04.01 Server and just realised some log files are not being created. Such as: /var/log/kern.log /var/log/postgresql/postgresql.log this is really not a upstream question- maybe your distribution just don#t install

Re: [systemd-devel] Systemctl causes Spark native thread creation issue

2017-02-20 Thread Cristian Rodríguez
El 20-02-2017 a las 18:44, Rao Vz escribió: > Hi, Guys > Any help is appreciated. > Most likely you went over TasksMax. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel