Questions tagged [systemd]
systemd is a modern replacement for the traditional Linux init. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.
1,573 questions
0
votes
0
answers
7
views
debugging status=226/NAMESPACE exit code error from systemd
Just spent a few hours debugging a systemd service file which failed to start with status=226/NAMESPACE and no other information.
Most searches offer unhinged things, like removing PrivateTmp or ...
3
votes
2
answers
77
views
convenient way to get a shell with a systemd unit file restrictions?
assuming a modern linux host, is there any convenient way to spawn an interactive shell in the exact context systemd would use for a unit/service?
alternatively, any way to attach a shell to a running ...
0
votes
0
answers
15
views
Prometheus systemd-exporter missing metrics from accounting
On the target VM I have enabled a systemd-exporter via docker and nginx as reverse proxy. So far I am getting my metrics into Grafana.
systemd-exporter:
image: prometheuscommunity/systemd-...
0
votes
0
answers
41
views
Pacemaker systemd issue
I have the pacemaker setup with one resource. The resource is systemd service. I set up the monitoring interval.
When I manually stop the service, I would expect that pacemaker will detect it and try ...
0
votes
0
answers
61
views
Debian upgrade hanging on configuration of package
All hosts in question are Debian 13, 6.12.57-1 (6.12.57+deb13-amd64)
(NOTE: There are several things going on here; I don't which caused the "hang" problem.)
I have several hosted VPS ...
0
votes
0
answers
47
views
Pacman upgrade fails with "Failed to start up manager. Freezing execution" [migrated]
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-...
1
vote
2
answers
203
views
Redirect a command's log file to systemd log
I have a command that by default logs to a file in the current working directory.
When run from the command line, I can redirect log output to standard out with the option --log-file /dev/stdout
When ...
0
votes
1
answer
139
views
Turning off JDPA in Tomcat 10.1 daemon not working
Currently, when running Tomcat in Ubuntu Server I see the following:
● tomcat.service - Apache Tomcat Web Application Container
Loaded: loaded (/etc/systemd/system/tomcat.service; enabled; preset:...
1
vote
1
answer
97
views
Get AllowedCPUs to work on Rocky9 box with systemd-run --user --scope
I have a Rocky9 box that defaults to cgroups v2
I am trying to get systemd-run to work like described at the bottom of https://apptainer.org/docs/user/1.1/cgroups.html
I have done the following since ...
0
votes
0
answers
64
views
Authorative DNS server with systemd socket activation
I am looking for an open-source authorative DNS server that supports systemd socket activation. Now, I expected that search to be easy but the obvious candidates do not support systemd socket ...
4
votes
1
answer
353
views
virt-viewer launch as system service
Objective: launching virt-viewer automatically for a specific user at startup (user has automatic login enabled), managing it with systemd if possible for better automation.
Can't decide if trying to ...
3
votes
1
answer
209
views
How can I troubleshoot a systemd socket not connecting to ssh?
I have a user data script that changes the SSH port on an EC2 machine to 9000 to make way for a podman bastion container on port 22. This worked fine for several months, until today when it didn't. ...
0
votes
1
answer
172
views
How to persevere fail2ban rules upon restarts?
Given:
I have root access
some fail2ban jails last 30 days or even longer
I reboot the serving device a couple of times a month
GPT has suggested a couple of strategies against obvious offenders:
...
0
votes
0
answers
79
views
grafana-agent in Docker: "found sample referencing non-existing series" — possibly due to WAL corruption from overlapping containers?
I was working on my cloud VM today, which has a Docker container grafana-agent, which is supposed to emit logs so I can view it on my Grafana dashboard. However, the dashboard was empty with no ...
1
vote
2
answers
316
views
systemd: how to immediately start the service behind a UDP socket?
What I was able to find was exactly the contrary of what I'm looking for.
I have a systemd socket like this:
# cat acdns4dns.socket
[Unit]
Description = acdns - UDP DNS
[Socket]
ListenDatagram = 0.0....