Skip to main content

Unanswered Questions

1,542 questions with no upvoted or accepted answers
13 votes
1 answer
4k views

Is it possible to change systemd private tmp directory?

I am running some programs on both Debian and Fedora. When I ls the /tmp directory, I see many directories with extremely long name like systemd-private-d85027...-bluetooth.service-qxzMGm systemd-...
9 votes
0 answers
4k views

How to start user session (login user graphically) from CLI?

We can use loginctl in modern distributions with systemctl to control the user sessions, seats etc. E.g. with it is is trivial to logout users and works on all desktop environments. However, can I ...
9 votes
0 answers
752 views

Mutually exclusive instances of the same systemd service template

I am interested if there's a better way to do mutually exclusive intances of the same systemd service template. Context: I am using SSH tunnels to connect over synergy between my laptop and which ...
9 votes
0 answers
3k views

systemd-nspawn: how to allow access to all devices?

I'm trying to create a rough equivalent of Docker's --privileged in a systemd container, but I've got no idea how to allow the container to access all of the devices available on the host (without ...
9 votes
1 answer
5k views

How to enable systemd user sessions for remote logins on CentOS 7?

I am trying to enable systemd user sessions on my CentOS 7 server. All the pieces seem to be there, and I have also run loginctl enable-linger <user>, but I don't have a systemd user session (or ...
8 votes
1 answer
1k views

How to tell systemd to start a service after a clean exit of another service

I'm trying to start a systemd. service after another service exits properly (e.g : in a application it could be exit(EXIT_SUCCESS) ). I've seen that there might be an OnSuccess option in the later ...
7 votes
0 answers
1k views

Customize journald config for a single service

I have a service (systemd unit) that logs very long messages (~700K), which means that the default LineMax setting of 48K doesn't suffice. Setting the LineMax field to 1M in /etc/systemd/journald....
7 votes
0 answers
2k views

Passing environment variables around in systemd

EnvironmentFile is not an option as per this answer. I am trying to understand the recommended way of using and passing environment variables. I have a urxvtd.socket: [Unit] Description=urxvt deamon (...
7 votes
2 answers
4k views

How to lock screen on lid closing using systemd?

I am running Sway on Fedora 26 and want my laptop to be locked when I close my screen. I changed HandleLidSwitch to lock in /etc/systemd/logind.conf and ran systemctl restart systemd-logind after that....
7 votes
0 answers
2k views

Prevent systemd from logging status lines to a tty

I'd like to prevent the kernel and systemd from logging boot (service) status messages to a tty. Example output from a Debian Stretch/8 VM: The systemd man page talks about some parameters supposely ...
7 votes
3 answers
4k views

debian without dbus: login/systemd complains about failing to connect to d-bus after motd

I have barebones raspbian, i.e. basically Debian 8, with systemd and no X. I removed dbus with "apt-get remove dbus". It deinstalled cleanly, with no apparent programs depending on it. Now, whenever I ...
7 votes
1 answer
19k views

systemd // failed with result 'dependency'

I'm quite new to this systemd topic. I have some Units with varios Requires, After and Before. On some Units I got messages like: tinc.service: Job tinc.service/start failed with result 'dependency'. ...
6 votes
0 answers
1k views

Why does systemd create so many tmpfs files? And how to disable them?

I have installed and updated Debian testing yesterday, and now I see several files on tmpfs: df -h Sist. Arq. Tam. Usado Disp. Uso% Montado em udev 16G 0 16G 0% /dev tmpfs ...
6 votes
1 answer
2k views

When a systemd service starts a rootless `podman run` process, why is its output not associated with the service in the journal?

I have a simple systemd service in /etc/systemd/system/logtest.service, which creates a Podman container that outputs some text: [Unit] Description=Systemd log test [Service] Type=oneshot ExecStart=...
6 votes
1 answer
509 views

Run command in the environment of a specific systemd service

Quite commonly I stumble over issues where a command yields different results, depending wether being run in my user shell or as part of a Systemd service, e.g. via ExecStart. Is there any way to run ...

15 30 50 per page
1
2 3 4 5
103