Questions tagged [systemd]
systemd is a collection of daemons, libraries and tools for system management. Ubuntu's Upstart system was replaced with systemd starting with Ubuntu 15.04.
1,663
questions
0
votes
0
answers
21
views
Execute a script when powering off, but not when rebooting (using systemd)
I'm working on scripts to power the TV connected to my Mac (running Linux) on and off. These scripts make use of the cec-ctl util (part of video4l), which control the CEC pin of the HDMI output.
The ...
0
votes
0
answers
36
views
Why the "gce-workload-cert-refresh.service" uses high CPU periodically on GCP
I recently created a new "e2-micro" (dual vCPU) very small Ubuntu 24.04 VM on Google Cloud. I noticed that CPU usage peaks to 200% CPU for a split second at 10 min intervals, by the gce-...
1
vote
0
answers
30
views
Systemd runs my script after suspend, but the result is not the same as if I enter the command in a terminal
Due to some drivers issues, my screen only reappears after suspending my laptop if I enter the following command in a terminal: chvt 7; DISPLAY=:0 xrandr --auto. Therefore, I wrote a simple executable ...
0
votes
1
answer
33
views
Systemd stopped/froze on boot while loading modules on Ubuntu 20.04.6 x86_64, systemd 245.4-4ubuntu3.20
Good day, I have Ubuntu 20.04.6 LTS (kernel 5.15.0-113-generic) dual booted with Windows 11 installation on my device, but it always stuck/hang/freeze while systemd is loading modules at boot on these ...
0
votes
0
answers
27
views
Allow users to execute everything except manage specific service
I have some workers with their own computer. All of them have access in their laptops to root user in Ubuntu. I don't rely on them and I have a critical service that I need to be always running, so I ...
-1
votes
1
answer
63
views
Is there an official source to know for each Ubuntu release what was the systemd version applied?
Is there an official resource where is available a complete list of all the Ubuntu releases but including the respective version of systemd applied for each one? I found this systemd/NEWS page where ...
2
votes
0
answers
38
views
Stop systemd service on run level change
I need to stop a service when the run-level changes from graphical target (5) to mulit-user target (3). And then start it again when the run-level changes back to graphical target. But, I'm coming up ...
0
votes
0
answers
29
views
Automount encrypted Luks USB device when connected
how can I automount an encrypted USB device (e.g. USB stick) via key file, when connected.
What I did so far
It works during boot time. The device will be encrypted via keyfile and mounted in /mnt/usb,...
-3
votes
1
answer
62
views
Setting Up MDP - critical failure -
I tried to setup mdp npcmcpp and for rofi's theme and applet: https://github.com/adi1090x/rofi. It didn't work.
Here's my system info:
francois@LenovoUbuntu ~> neofetch
.-/+oossssoo+/-. ...
0
votes
0
answers
19
views
LVM2 - non-root VG LV not activated on reboot
One of our physical Ubuntu server has,
3 VGs in total - rootvg, 2 non-rootvgs(appvg1 & appvg2).
Rootdisk is local HDD and both appvgs uses multipath disk (one disk each).
appvg1 has filesystem ...
2
votes
0
answers
188
views
Slowdowns since Update to 24.04 not only at boot time
Since the update to version 24.04 coming from 23.10, I have noticed waiting times in some situations that did not exist in this form before. The most noticeable and annoying is at system startup. The ...
0
votes
1
answer
46
views
Why isn't ~/.config/environment.d/*.conf taking effect?
I created the file ~/.config/environment.d/30-electron-ozone-wayland.conf with these contents:
ELECTRON_OZONE_PLATFORM_HINT=auto
This should set the environment variable ELECTRON_OZONE_PLATFORM_HINT ...
0
votes
0
answers
25
views
Should I daemonize shell-like process with systemd and connect its StdIn/Out/Err to (pseudo)terminal and if, how?
I want systemd to daemonize a shell-like process (to be specific: an EPICS IOC) so that I the interface is accessible after it is started during booting. Usually, a specific watchdog is calling a ...
0
votes
0
answers
251
views
Can't operate. Failed to connect to bus: Host is down
Many topics regarding systemctl but still looking for an answer.
I have a docker container (created with ubunto 20.04) image.
I have installed systemd (version 245.4-ubuntu3.23)
When I tried to look ...
0
votes
0
answers
86
views
Why getting status=4/NOPERMISSION from a systemd service inside podman container
I have created an image meant to be running systemd services. A specific service named aksusbd is failing with status=4/NOPERMISSION at the initialization of the systemd running inside the container.
...