Questions tagged [systemd]
systemd is a boot sequencer and service manager for Linux systems, with optional facilities for network management, logging, session control and cryptography. It is used by a majority of desktop Linux users, as its adaptiveness to changing hotplug hardware, network connectivity and its support for sandboxing makes it attractive for workstation/laptop use.
4,830 questions
0 votes
0 answers
15 views
Does loginctl terminate-user USER stop user's process gracefully?
In order to write to a directory, I made a user member of a group called node_exporter. This user, called podman, had lingering enabled. I logged out and logged in again and verified with id the new ...
0 votes
1 answer
29 views
Can I have a Systemd service unit stop only when other services have already stopped
I have 5 service units setup in systemd. I need service file 5 to only stop after 1-4 service files have stopped first. How can I make that happen.
0 votes
0 answers
24 views
How can I automatically set some CPU parameters (via `/sys/devices/system/cpu/...``) when the system boots?
DISTRO: Fedora 41 KDE GOAL: Im trying to automatically set some cpu parameters (per-CPU max frequency, governors, energy policy, etc.) during my boot process. I wrote a script to do this (it lives at /...
0 votes
1 answer
50 views
Why do environment variables in `~/.profile` appear in `systemctl --user show-environment` but not in my terminal?
I added some environment variables to my ~/.profile, for example: export PIPX_BIN_DIR=$HOME/.pipx-global/bin This works as expected—the executables installed via pipx are placed in the correct ...
1 vote
1 answer
103 views
Pacman upgrade fails with "Failed to start up manager. Freezing execution"
I have a VPS running Arch (Kernel 6.17.6-arch1-1). A pacman -Syu upgrade on 2025-11-12 failed with warnings and errors about systemd. In /var/log/pacman.log, I found the error messages: […] [2025-11-...
0 votes
1 answer
30 views
Tail journalctl until service exits
I'm looking to start or restart a systemd service and immediately tail the output, but if the service exits while tailing, abort as though I had interrupted the command. I don't want to include ...
0 votes
1 answer
57 views
Failed to activate service 'org.freedesktop.systemd1': timed out
I'm facing this error causing a 25 second timeout on every login. I've searched and attempted multiple suggested troubleshooting steps, but none have resolved the issue: The error: Nov 06 12:57:03 ...
0 votes
1 answer
18 views
Systemd mount unit files with ConditionPathExists with same Where and different What clauses
I need to mount either one of two devices to the same mount point. I cannot find a way to do that using .mount unit files because of the requirement that the .mount file name must be same as Where ...
0 votes
1 answer
28 views
Why this systemd service of type "notify" won't be waited for by dependent services?
My application consists of two programs, and three processes: one main application, and two identical child processes. They are launched using some wrapper scripts, but (I think?) that it's not ...
0 votes
1 answer
34 views
Systemback conflicts with live-config-systemd Error
I was trying to install Systemback for building a custom ISO/backup and got this error when installing. I followed the instructions from this site How to Install Systemback... dpkg: regarding ...
1 vote
0 answers
73 views
GNOME 49.1 unable to start after an update
So I ran yay and updated my stuff after a long time. The next day I login and the GDM login screen just freezes. Oh well. Time to ditch the login manager, I think. yay ly. Logging into Gnome on ...
3 votes
2 answers
598 views
"Permission denied" error while trying to create and run a systemd service
I have been able to create and run (as root) a systemd service that runs a "Hello World" script logged in as root. The script is just a shebang and an echo command. This is /etc/systemd/...
5 votes
2 answers
704 views
How to automatically reload daemons after `/etc/fstab` was changed?
Whenever /etc/fstab has changed, and one then calls mount, the following message arrives: mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl ...
0 votes
0 answers
67 views
Reached target shutdown.target every five minutes
On a ThinkPad T480 running Fedora 42, I've discovered that more or less every five minutes, systemd has been writing Reached target shutdown.target - Shutdown. to journalctl. (See example text below, ...
2 votes
2 answers
71 views
Set uid bit not recognised
I have a problem whereby an executable which has the setuid bit set and is owned by root is not having its euid set to 0 sometimes. I'm running Debian 11 on a small SBC for a control application. I ...