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,833 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
32
views
how to automatically mount luks-encrypted usb partition?
Given USB drive with multiple partitions, one of which being LUKS-encrypted one, how to ensure it gets mounted & decrypted on device insertion to be usable by an automatic backup script?
I do know ...
0
votes
0
answers
43
views
How to run a command before suspend before NetworkManager disconnects
I am trying to run /usr/bin/curl -s -X POST https://domain.com/webhook when my laptop suspends, however, I am having trouble getting it to run before my network disconnects.
I have tried a bunch of ...
1
vote
0
answers
41
views
How to set default sound output before xdg autostart runs applications?
We have an application "my-app" that is autostarted by xdg (.config/autostart/my-app.desktop).
We need sound through the hdmi sound device. This is not the default device after a fresh ...
0
votes
0
answers
44
views
CUPS printer problem
Job for cups.service failed because the control process exited with exit status error failure 1 code
○しろまる cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; ...
0
votes
0
answers
213
views
When opening my wsl terminal it give an error stating "wsl: Failed to start the systemd user session for 'linux'. See journalctl for more details."
I am running Ubuntu 24.04.3 LTS in Windows Subsystem For Linux. When I start my laptop and then open my wsl Terminal it give an error which state:
wsl: Failed to start the systemd user session for '...
1
vote
0
answers
54
views
Systemd service not executing on resume
Similar issue to this post: Writing a systemd service to be executed at resume
I have a service that I want executed when the computer wakes from sleep. Here is the service:
[Unit]
Description=User ...
0
votes
0
answers
33
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
56
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
46
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
73
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
228
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
51
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
197
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
30
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
48
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 ...