[systemd-devel] [PATCH weston] doc/systemd: system service example

2017-11-28 Thread Pekka Paalanen
From: Pekka Paalanen <pekka.paala...@collabora.co.uk> There are many bad and even worse attempts to make Weston run as a systemd service, and very few good ones. Let's add a good one as an example in upstream: does not use weston-launch, does not run weston as root, does not need wrapper s

Re: [systemd-devel] [PATCH weston] doc/systemd: system service example

2017-11-29 Thread Pekka Paalanen
On Wed, 29 Nov 2017 14:06:25 +0200 Mantas Mikulėnas wrote: > On Wed, Nov 29, 2017 at 10:32 AM, Jérémy Rosen > wrote: > > > I had a quick glance but didn't actually test... > > > > 1) please open a pull request on github, you will have more feedback

Re: [systemd-devel] [PATCH weston] doc/systemd: system service example

2017-11-29 Thread Pekka Paalanen
ks, pq (adding back all the CCs) > On 28/11/2017 11:14, Pekka Paalanen wrote: > > From: Pekka Paalanen <pekka.paala...@collabora.co.uk> > > > > There are many bad and even worse attempts to make Weston run as a > > systemd service, and very few good ones. Let's ad

Re: [systemd-devel] [PATCH weston] doc/systemd: system service example

2017-11-30 Thread Pekka Paalanen
On Wed, 29 Nov 2017 19:05:07 +0100 Lennart Poettering <lenn...@poettering.net> wrote: > On Di, 28.11.17 12:14, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > + > > +[Unit] > > +Description=Weston, a Wayland compositor, as a system service > > +Document

Re: [systemd-devel] [PATCH weston] doc/systemd: system service example

2017-11-30 Thread Pekka Paalanen
On Thu, 30 Nov 2017 13:29:22 +0100 Lennart Poettering <lenn...@poettering.net> wrote: > On Do, 30.11.17 12:09, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > > Hmm, what is this about? > > > > > > This is racy, as the session ID is not really reliabl

Re: [systemd-devel] [PATCH weston] doc/systemd: system service example

2017-12-01 Thread Pekka Paalanen
On Thu, 30 Nov 2017 11:16:19 + Martyn Welch <martyn.we...@collabora.co.uk> wrote: > On Thu, 2017-11-30 at 12:09 +0200, Pekka Paalanen wrote: > > On Wed, 29 Nov 2017 19:05:07 +0100 > > Lennart Poettering <lenn...@poettering.net> wrote: > > > > > On

Re: [systemd-devel] [PATCH weston] doc/systemd: system service example

2017-12-04 Thread Pekka Paalanen
On Fri, 1 Dec 2017 18:25:35 +0100 Lennart Poettering <lenn...@poettering.net> wrote: > On Fr, 01.12.17 13:42, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > > > > This is racy, as the session ID is not really reliably predictable, > > > > >

Re: [systemd-devel] [PATCH weston] doc/systemd: system service example

2018-01-22 Thread Pekka Paalanen
On Fri, 29 Dec 2017 15:09:28 -0600 Matt Hoosier <matt.hoos...@gmail.com> wrote: > Hi Lennart, > > On Mon, Dec 4, 2017 at 9:11 AM, Pekka Paalanen <ppaala...@gmail.com> wrote: > > On Fri, 1 Dec 2017 18:25:35 +0100 > > Lennart Poettering <lenn...@poettering

Re: [systemd-devel] Not able to start Weston dependent application

2018-10-31 Thread Pekka Paalanen
On Wed, 31 Oct 2018 11:32:45 +0100 Jérémy Rosen wrote: > socket-activated weston ? > > nice :) > > Why does weston require logind ? I work in the embedded world and we > usually disable logind entirely (no users in the "human user" meaning of > the term) That's when you run Weston as a

Re: [systemd-devel] Not able to start Weston dependent application

2018-10-31 Thread Pekka Paalanen
On Wed, 31 Oct 2018 11:51:47 +0100 Jérémy Rosen wrote: > Pekka : is the notify plugin already upstreamed ? if yes, loading it and > setting Type=notify might work... Yes, it's upstream. The only thing not upstream is the documentation on how to actually use that stuff with systemd units. :-P

Re: [systemd-devel] [PATCH weston] doc/systemd: system service example

2019-03-11 Thread Pekka Paalanen
On Tue, 28 Nov 2017 12:14:29 +0200 Pekka Paalanen wrote: > From: Pekka Paalanen > > There are many bad and even worse attempts to make Weston run as a > systemd service, and very few good ones. Let's add a good one as an > example in upstream: does not use weston-launch, does

Re: [systemd-devel] Weston not launching Via Service file.

2019-05-17 Thread Pekka Paalanen
On Fri, 17 May 2019 04:36:52 + Rajshekhar Sanda wrote: > Hello, > > > We are working on Genivi14, in which we are trying to launch weston > via service file. It is not working if iam giving Type=notify in > service file. > Hi, could you attach the stderr and stdout output of Weston as

Re: [systemd-devel] In unit files of systemd version 234 Type=notify not working

2019-05-24 Thread Pekka Paalanen
On Fri, 24 May 2019 05:38:28 + Rajshekhar Sanda wrote: > Hi all, > > > We are building Genivi 14 in which we are trying to launch weston at boot > time with service file. > > > service file is as follows: > > > > [Unit] > Description= launch weston > Requires= dbus-session.service

Re: [systemd-devel] is the watchdog useful?

2019-10-22 Thread Pekka Paalanen
On Mon, 21 Oct 2019 17:50:44 + Zbigniew Jędrzejewski-Szmek wrote: > In principle, the watchdog for services is nice. But in practice it seems > be bring only grief. The Fedora bugtracker is full of automated reports of > ABRTs, > and of those that were fired by the watchdog, pretty much

Re: [systemd-devel] is the watchdog useful?

2019-10-22 Thread Pekka Paalanen
On Tue, 22 Oct 2019 09:17:42 + Zbigniew Jędrzejewski-Szmek wrote: > On Tue, Oct 22, 2019 at 09:54:31AM +0300, Pekka Paalanen wrote: > > On Mon, 21 Oct 2019 17:50:44 + > > Zbigniew Jędrzejewski-Szmek wrote: > > > > > In principle, the watchdog for ser

Re: [systemd-devel] The meaning of CanMultiSession=no on non-seat0

2020-04-09 Thread Pekka Paalanen
On Thu, 9 Apr 2020 09:46:08 +0200 Lennart Poettering wrote: > On Fr, 03.04.20 10:28, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > > My (maybe bad) guess is that it would need to be addressed in the kernel > > > though > > > And the CanMultiSession attr

[systemd-devel] All non-seat0 input devices leak into VT if no display server on seat0

2020-04-09 Thread Pekka Paalanen
On Thu, 9 Apr 2020 13:01:56 +0200 Michał Zegan wrote: > W dniu 09.04.2020 o 10:23, Pekka Paalanen pisze: > > On Thu, 9 Apr 2020 09:46:08 +0200 > > Lennart Poettering wrote: > > > >> On Fr, 03.04.20 10:28, Pekka Paalanen (ppaala...@gmail.com) wrote: >

[systemd-devel] All non-seat0 input devices leak into VT if no display server on seat0

2020-04-08 Thread Pekka Paalanen
On Tue, 07 Apr 2020 23:03:52 -0400 nerdopolis wrote: > On Friday, April 3, 2020 3:28:52 AM EDT Pekka Paalanen wrote: > > On Thu, 02 Apr 2020 22:59:25 -0400 > > nerdopolis wrote: > > ... > > > One thing I did notice though is that (as far as leaking input)

Re: [systemd-devel] Ordering after udev applied rules to `/dev/dri/card0`

2020-04-01 Thread Pekka Paalanen
On Tue, 31 Mar 2020 17:08:49 +0200 Lennart Poettering wrote: > On Do, 19.03.20 17:47, Paul Menzel (pmenzel+systemd-de...@molgen.mpg.de) > wrote: > > > Dear systemd folks, > > > > > > I am using Debian Sid/unstable with systemd 245.2 and Weston 8.0.0. > > > > I amtrying to start a graphical

Re: [systemd-devel] The meaning of CanMultiSession=no on non-seat0

2020-04-03 Thread Pekka Paalanen
On Thu, 02 Apr 2020 22:59:25 -0400 nerdopolis wrote: > On Tuesday, March 31, 2020 8:59:30 AM EDT Lennart Poettering wrote: > > On Di, 28.01.20 22:48, nerdopolis (bluescreen_aven...@verizon.net) wrote: > > > > > Hi > > > > > > Sorry if this is the wrong place for this. I can't seem to find a

Re: [systemd-devel] Ordering after udev applied rules to `/dev/dri/card0`

2020-04-02 Thread Pekka Paalanen
On Thu, 2 Apr 2020 10:35:49 +0300 Pekka Paalanen wrote: > On Wed, 1 Apr 2020 17:09:59 +0200 > Lennart Poettering wrote: > > > On Mi, 01.04.20 11:34, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > > > > > Is there a way to order a service

Re: [systemd-devel] Ordering after udev applied rules to `/dev/dri/card0`

2020-04-02 Thread Pekka Paalanen
On Wed, 1 Apr 2020 17:09:59 +0200 Lennart Poettering wrote: > On Mi, 01.04.20 11:34, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > > > Is there a way to order a service in such a way, that it’s guaranteed > > > > that > > > > udev rules to dev

Re: [systemd-devel] Ordering after udev applied rules to `/dev/dri/card0`

2020-04-02 Thread Pekka Paalanen
On Thu, 2 Apr 2020 10:08:06 +0200 Lennart Poettering wrote: > On Do, 02.04.20 10:35, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > > I don't think you need to wait for CanGraphical. I mean, the value of > > > that field just reflects whether at least one DRM or othe

Re: [systemd-devel] Ordering after udev applied rules to `/dev/dri/card0`

2020-03-20 Thread Pekka Paalanen
On Thu, 19 Mar 2020 17:47:30 +0100 Paul Menzel wrote: > Dear systemd folks, > > > I am using Debian Sid/unstable with systemd 245.2 and Weston 8.0.0. > > I amtrying to start a graphical desktop as soon as possible. Currently, > I use Weston, but unfortunately accessing `/dev/dri/card0` it

Re: [systemd-devel] Logind: how to access a device when you're not the session controller

2020-09-08 Thread Pekka Paalanen
On Mon, 7 Sep 2020 17:53:46 +0200 Lennart Poettering wrote: > On Mo, 07.09.20 11:47, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > > I am not aware of any. > > > > > > > Any suggestions on what might work? > > > > > > Other tha

Re: [systemd-devel] Logind: how to access a device when you're not the session controller

2020-09-07 Thread Pekka Paalanen
On Fri, 4 Sep 2020 16:40:00 +0200 Lennart Poettering wrote: > On Di, 26.05.20 16:55, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > Hi, > > > > I'm looking at letting Weston's 'meson test' run DRM-backend tests > > automatically and without the need of root priv

Re: [systemd-devel] Journal message timestamps

2020-08-28 Thread Pekka Paalanen
On Thu, 27 Aug 2020 11:33:04 +0100 Mark Corbin wrote: > Hello > > I am working on time synchronisation issues at boot for systems without > an RTC (using balenaOS on a Raspberry Pi 3) and have some questions > about how journald assigns timestamps to log messages. > > When I boot my system

[systemd-devel] Logind: how to access a device when you're not the session controller

2020-05-26 Thread Pekka Paalanen
Hi, I'm looking at letting Weston's 'meson test' run DRM-backend tests automatically and without the need of root privileges. I have a spare DRM device in my machine that is dedicated for this purpose, so I make my normal desktop environment not touch it. My problem is, is there any way to set up

Re: [systemd-devel] Logind: how to access a device when you're not the session controller

2020-06-02 Thread Pekka Paalanen
On Tue, 26 May 2020 16:55:19 +0300 Pekka Paalanen wrote: > Hi, > > I'm looking at letting Weston's 'meson test' run DRM-backend tests > automatically and without the need of root privileges. I have a spare > DRM device in my machine that is dedicated for this purpose, so I m

Re: [systemd-devel] Which udev action is run on boot for my device?

2020-10-26 Thread Pekka Paalanen
On Sun, 25 Oct 2020 18:36:42 +0100 Marcin Kocur wrote: > Hello, > > as the topic states, I want to know which action(s) from "add", > "remove", "change", "move", "online", "offline", "bind", and "unbind" > were triggered on my device. Is there any way to check that? > > At the beginning of 

Re: [systemd-devel] DisplayPort display non-persistent device naming

2020-10-30 Thread Pekka Paalanen
On Thu, 29 Oct 2020 21:53:34 +0100 Marcin Kocur wrote: > Hello, > > this is the output of turning off and on my display (using power button): ... > The monitor was visible in xrandr as DP-2, after power off and on it's > visible as DP-3 (DP-2 is still there "disconnected"). > > It's

Re: [systemd-devel] What exactly is multi-seat? -- questions about logind

2021-01-26 Thread Pekka Paalanen
On Tue, 26 Jan 2021 01:43:43 -0800 Kian Kasad wrote: > Hi all, > > After reading the documentation on logind and multi-seat (specifically > sd-login(3) and "Multi-Seat on Linux"), I still have some questions. > > First of all, what exactly is multi-seat? Does it just mean allowing > multiple

Re: [systemd-devel] Running pam-enabled /bin/login sessions in unprivileged terminal emulators

2021-05-22 Thread Pekka Paalanen
On Sat, 22 May 2021 09:04:42 -0400 nerdopolis wrote: > On Saturday, May 22, 2021 6:50:09 AM EDT Pekka Paalanen wrote: > > On Fri, 21 May 2021 21:29:09 -0400 > > nerdopolis wrote: > > > > > Sorry, I got the terminology mixed up again. I am still using TTYs to

Re: [systemd-devel] Running pam-enabled /bin/login sessions in unprivileged terminal emulators

2021-05-24 Thread Pekka Paalanen
On Sat, 22 May 2021 16:18:35 -0400 nerdopolis wrote: > On Saturday, May 22, 2021 3:14:27 PM EDT Pekka Paalanen wrote: > > On Sat, 22 May 2021 09:04:42 -0400 > > nerdopolis wrote: > > > > > On Saturday, May 22, 2021 6:50:09 AM EDT Pekka Paalanen wrote: > &

Re: [systemd-devel] Running pam-enabled /bin/login sessions in unprivileged terminal emulators

2021-05-22 Thread Pekka Paalanen
On Fri, 21 May 2021 21:29:09 -0400 nerdopolis wrote: > Sorry, I got the terminology mixed up again. I am still using TTYs to run the > instances of `cage`. It's the kernel mode VT emulators I am replacing with the > user mode terminal emulators (running under a fullscreen Wayland compositor)

Re: [systemd-devel] Running pam-enabled /bin/login sessions in unprivileged terminal emulators

2021-05-28 Thread Pekka Paalanen
On Thu, 27 May 2021 17:33:35 +0200 Lennart Poettering wrote: > On Sa, 22.05.21 13:50, Pekka Paalanen (ppaala...@gmail.com) wrote: > > > All in all, this stack would replace the usual stack where > > /bin/login runs directly on the TTY of a VT, allowing to use a more >

Re: [systemd-devel] What exactly is multi-seat? -- questions about logind

2021-01-27 Thread Pekka Paalanen
On Tue, 26 Jan 2021 11:40:31 -0800 Kian Kasad wrote: > On 21/01/26 02:06PM, Pekka Paalanen wrote: > > On Tue, 26 Jan 2021 01:43:43 -0800 > > Kian Kasad wrote: > > > > > Hi all, > > > > > > After reading the documentation on logind and multi

Re: [systemd-devel] Design patterns for privilege separating systemd services?

2021-02-18 Thread Pekka Paalanen
On Thu, 18 Feb 2021 17:01:10 -0500 "Colin Walters" wrote: > The thing I mainly like about socketpair() is that I know it's *only* > accessible via the fd - it's > https://en.wikipedia.org/wiki/Capability-based_security - except > Linux has kind of broken that by creating /proc/N/fd anyways. So

Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-09-01 Thread Pekka Paalanen
On Fri, 1 Sep 2023 13:13:12 +0200 Christian Pernegger wrote: > Alright. I only played around with it in the hopes that it would help > me get some VTs (and VT switching) on seat1. So far, no luck on that > front. The funny thing there is that the kernel, where the VT is implemented, has no idea

Re: [systemd-devel] [multiseat] How to make automatic ACL creation via udev "uaccess" tag work for seats other than seat0?

2023-09-01 Thread Pekka Paalanen
On Fri, 1 Sep 2023 13:37:46 +0200 Lennart Poettering wrote: > On Fr, 01.09.23 13:13, Christian Pernegger (perneg...@gmail.com) wrote: > > > I don't know about this. Yes, seat1 could hog the GPU that seat0's > > outputs are attached to, or vice versa, but seat1 could just as well > > hog all the

Re: [systemd-devel] Monotonic time went backwards, rotating log

2023-10-06 Thread Pekka Paalanen
On Thu, 05 Oct 2023 13:32:37 -0400 Phillip Susi wrote: > Phillip Susi writes: > > > Lennart Poettering writes: > > > >> It actually checks that first: > >> > >> https://github.com/systemd/systemd/blob/main/src/libsystemd/sd-journal/journal-file.c#L2201 > >> > > > > That's what I'm

Re: [systemd-devel] Attaching virtual session (e.g. SSH) to seat

2022-10-03 Thread Pekka Paalanen
On Sat, 1 Oct 2022 16:18:43 +0300 Andrei Borzenkov wrote: > On 01.10.2022 15:46, Nils Kattenbeck wrote: > > I am logging in on a PC using SSH and need to access some peripherals > > which are attached to seat0. > > loginctl shows that my session is not attached to any seat: > > > > SESSION UID