[systemd-devel] Change session type after it has been started

2022-09-19 Thread Christoph Pleger
Hello, while searching through the internet for information on how to change the session type after it has already been started, I found this: https://github.com/systemd/systemd/issues/14489 Now I am wondering how SetType is supposed to be used. To try it out, I logged in on textual tty and

Re: [systemd-devel] systemd service causing bash to miss signals?

2022-09-19 Thread Brian Reichert
On Mon, Sep 19, 2022 at 08:25:32PM +0300, Mantas Mikul??nas wrote: > Pipelines somewhat rely on the kernel delivering SIGPIPE to the writer as > soon as the read end is closed. So if you have `foo | head -1`, then as > soon as head reads enough and exits, foo gets killed via SIGPIPE. In my case:

[systemd-devel] "Failed to connect to bus: No such file or directory" when running systemd --user commands with runuser as root

2022-09-19 Thread Dave Houser
I am having issues on my Ubuntu 20.04 system running systemd v245. When trying to run `runuser -l mruser -c "systemctl --user status myservice.service"` I keep getting "Failed to connect to bus: No such file or directory" This does not make sense to me because I have the same set up on a RHEL 8.4

[systemd-devel] systemd service causing bash to miss signals?

2022-09-19 Thread Brian Reichert
I apologize for the vague subject. The background: I've inherited some legacy software to manage. This is on SLES12 SP5, running: systemd-228-157.40.1.x86_64 One element is a systemd-managed service, written in Perl, that in turn, is using bash to generate random numbers (don't ask me

Re: [systemd-devel] systemd service causing bash to miss signals?

2022-09-19 Thread Mantas Mikulėnas
Pipelines somewhat rely on the kernel delivering SIGPIPE to the writer as soon as the read end is closed. So if you have `foo | head -1`, then as soon as head reads enough and exits, foo gets killed via SIGPIPE. But as most systemd-managed services aren't shell interpreters, systemd marks SIGPIPE

Re: [systemd-devel] "Failed to connect to bus: No such file or directory" when running systemd --user commands with runuser as root

2022-09-19 Thread Mantas Mikulėnas
Non-interactive bash invocations generally don't read ~/.bashrc and don't pay attention to environment variables that you set there. On Mon, Sep 19, 2022 at 9:36 PM Dave Houser wrote: > I am having issues on my Ubuntu 20.04 system running systemd v245. > When trying to run `runuser -l mruser

Re: [systemd-devel] boot-complete.target dependencies issue

2022-09-19 Thread Antonio Murdaca
On Sat, Sep 17, 2022 at 6:45 PM Lennart Poettering wrote: > On Fr, 16.09.22 10:10, Antonio Murdaca (run...@redhat.com) wrote: > > > Hi, following > > > https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/#how-to-adapt-this-scheme-to-other-setups > > I've been experimenting on a fedora system > > with

Re: [systemd-devel] Can /usr/lib/systemd/user/sockets.target.wants be used to autoenable a socket by a vendor package?

2022-09-19 Thread Colin Guthrie
Yuri Kanivetsky wrote on 18/09/2022 13:08: Also, I've created a simple perl server: https://gist.github.com/x-yuri/45f53c16a99337ba0716a988290491bd And if I put perl-server.socket and perl-server.service into /usr/lib/systemd/user, and symlink perl-server.socket into