Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

(Ubuntu 24.04) How to remove systemd-hwdb

I want to remove systemd-hwdb from my computer due to it being deprecated, but I have no idea how I would go about doing this.
Evan Tennison's user avatar
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 ...
Marcelo's user avatar
  • 111
0 votes
0 answers
45 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-...
FedKad's user avatar
  • 11.5k
1 vote
0 answers
32 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 ...
user1870519's user avatar
0 votes
1 answer
35 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 ...
northnSouth's user avatar
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 ...
Miguel.G's user avatar
  • 101
-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 ...
Manuel Jordan's user avatar
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 ...
John T Cox's user avatar
0 votes
0 answers
31 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,...
Gusiph's user avatar
  • 1
-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+/-. ...
Self learning student's user avatar
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 ...
Naveen R's user avatar
2 votes
0 answers
191 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 ...
Thomas Pohl's user avatar
0 votes
1 answer
48 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 ...
Flimm's user avatar
  • 42.6k
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 ...
Amadrath's user avatar
0 votes
0 answers
255 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 ...
user2835586's user avatar
0 votes
0 answers
89 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. ...
Met's user avatar
  • 101
0 votes
0 answers
122 views

I reduced boot time just by removing `/lib/systemd/system-generators/netplan`. Why it's so slow?

I use ubuntu 24.04 on a laptop. Previously I had these problems: very long boot times. systemd-analyze blame was telling me it was NetworkManager that take minutes to be booted systemctl daemon-...
ERFANIUM's user avatar
0 votes
0 answers
46 views

Systemd Start Thunderbird after Suspend

I want my Thunderbird Flatpak to open everytime I wake my Ubuntu 24.04 Wayland session from suspend. I created thunderbird-resume.service in the /etc/systemd/system/ directory. Here's the body of that ...
jophuh's user avatar
  • 179
0 votes
0 answers
111 views

Ubuntu server: Systemd-networkd-wait-online.sercice failed during startup and Invalid login bug

Ubuntu server 24.04 was working correctly for a few hours after install. After I rebooted it, there were two errors: Systemd-networkd-wait-online.service failed every time on boot. I was also not ...
Ajwat Mustafa's user avatar
0 votes
0 answers
151 views

【24.04】How to show systemd log on boot

I found when Ubuntu 24.04 is booting and showing Ubuntu logo,I cannot press anykey to show the logcat of systemd like 22.04.But sometimes I need this to read the logcat in time.Could I restore this ...
Ron Tuo's user avatar
0 votes
0 answers
58 views

flaskapp.service: Failed to execute command: No such file or directory

I'm working on deploying a flask application with gunicorn and nginx on ubuntu. I have set up nginx to start on boot using systemd and desire to do the same for my flask application. I get this error ...
Dancun Gerald's user avatar
1 vote
1 answer
207 views

Unable to Install Ubuntu 24.04 on a Biostar motherboard

I've been attempting to install Ubuntu 22.04 onto my new Biostar motherboard and I keep running into the issue where it's saying "Failed to start systemd-journald. service • Journal Service"....
Ivelios_'s user avatar
0 votes
0 answers
388 views

Long boot time (loader takes ~3 mins) 24.04 LTS

I have installed Ubuntu 24.04 LTS onto an external SSD (Adata Elite 500 GB) with all component too (boot etc) CPU: i7 9700K RAM: 32 GB GPU: i7 9700K + RTX 4070 SSD tested in USB 3.1 and 3.2 as well ...
Péter's user avatar
  • 101
4 votes
3 answers
530 views

How do I find out a list of journalctl log size by unit?

One of the services on my system is spamming the log and generating a lot of data. I don't know which service it is. With regular log files, I can use ls -lha to print the size of all the files in the ...
npr_se's user avatar
  • 41
7 votes
0 answers
2k views

Slow boot - Ubuntu 24.04

I'm a beginner and I installed Ubuntu 24.04 recently, my boot time is high than before. I was using the previous LTE version (22.04) earlier which was pretty fast comparatively. Here is my system ...
Gokul Girish's user avatar
1 vote
2 answers
406 views

Handling Mount Unit Failures on Boot in Ubuntu 22.04 Without Impacting System Performance

This issue arises during the boot process of Ubuntu 22.04. Despite the system operating normally without any significant performance drawbacks, I consistently encounter a series of error messages ...
Vitaly Ponomarev's user avatar
0 votes
0 answers
44 views

Umount before running service in systemd

I have a systemd unit service script which initiates borgmatic to do the procedure of backing up. I would like to umount potentially virtually mounted archives of borgmatic in order to avoid error. I'...
Oleksa's user avatar
  • 320
1 vote
0 answers
511 views

Error while installing systemd on base Ubuntu 24.04 docker image

I'm currently trying to port the base Docker image for my application from Ubuntu 22.04 to Ubuntu 24.04. But I'm having issues when trying to install the software-properties-common package. I was able ...
Eric Lacasse's user avatar
0 votes
1 answer
72 views

Is it possible to cancel GNOME's power off end session dialog using DBUS?

The object org.gnome.SessionManager.EndSessionDialog has a Close method which does actually close the dialog. However, the background timer will keep ticking and after 60 seconds (GNOME 42) it will ...
eniv's user avatar
  • 1
0 votes
0 answers
51 views

autostart VPN connection by systemd

I want to automatically start vpn connection after login as one of my users. I can not use Network Manager, because the server is using incompatible settings. I want to start it just for one of my ...
Tibor Vansa's user avatar
-1 votes
1 answer
314 views

Why does the reported memory usage of a systemd service differ from the sum of memory usage in top?

I am running a systemd service named agent.service on my Linux system, and I've noticed a discrepancy between the reported memory usage of the service and the combined memory usage of its constituent ...
Ackerman Shadow's user avatar
0 votes
0 answers
114 views

A unique problem -- Intensely long startup times kubuntu 22.04

I am not planning on quitting Kubuntu anytime soon, been using it for about 8 years as a daily driver. But I do take issue with my startup times on my desktop. See, I have a few other computers with ...
Emandudeguy's user avatar
1 vote
1 answer
387 views

loginctl enable-linger error Could not enable linger: Access denied

I have 2 Ubuntu 20.04 servers. One of them gives me this error. Could not enable linger: Access denied when running loginctl enable-linger The other server doesn't raise any errors. I did a bit of ...
microweb10's user avatar
0 votes
0 answers
140 views

debootstrap excluding systemd packages

I am debootstrap'ing an Ubuntu to exclude systemd and systemd-sysv packages using --exclude parameter however upon checking the packages are still occuring. Did I missed more parameters as I am ...
ordinary_guy's user avatar
1 vote
0 answers
444 views

"Failed to start systemd script to load sep5 driver at boot time" on boot

I am currently working on my Master thesis and used Ubuntu on Hyper V for my thesis. But this morning, it suddenly stopped working with this error: Failed to start systemd script to load sep5 driver ...
Farid's user avatar
  • 11
0 votes
0 answers
639 views

Handle service start after unclean reboot

Facing this weird issue after a unclean shutdown/reboot of the host: Found left-over process NNNN (<daemon>) in control group while starting unit. Ignoring. This usually indicates unclean ...
Ani's user avatar
  • 39
1 vote
0 answers
176 views

systemd PATH not working consistently

I have a very simple systemd service: [Unit] Description=throttle service [Service] ExecStart=%h/.local/bin/throttle --server Type=simple Restart=always RestartSec=3 [Install] WantedBy=default....
fbence's user avatar
  • 244
0 votes
0 answers
49 views

Errors on my huawei matebok x pro 2020

I am having problems with my Huawei matebook x pro version 2020 device using Ubuntu 22.04. Since I installed it, my screen has frozen several times, I get a white Windows BSOD style saying "...
Víctor Álvarez's user avatar
2 votes
0 answers
236 views

System goes unresponsive for minutes, I suspect journalctl

We have an server application running on Ubuntu 22.04. The application logs are pretty spammy. journalctl -S -1hour | wc --lines 121349 journalctl -S -1hour | wc --bytes 32382836 Once in a while a ...
Brandon Cuff's user avatar
0 votes
0 answers
229 views

Why the nginx docker container stopped by Systemd?

I encountered an issue today with the Nginx service running as a container on our Ubuntu 20.04.6 LTS server. The service was in a stopped state, and I had to restart it manually. I've attached a ...
Alakananda S's user avatar
0 votes
0 answers
4k views

"System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down" not WSL

When I install docker and try to run it, sudo systemctl start docker, it says it can't run as the title says.(Not WSL) So when I run it with the sudo service docker start command, it turns off again ...
pepperonipizza97's user avatar
0 votes
1 answer
223 views

Accessing Minecraft Terminal when it's ran through systemmd

New to Linux but have been messing around with a Linode server. I am running a Paper Minecraft server as a systemd unit file. This way my server can be 24/7 without me having to keep my terminal ...
uncle moose's user avatar
0 votes
1 answer
317 views

Shutdown hangs for one minute while umounting NFS shares on kubuntu 22.04

I am running kubuntu 22.04 on two desktop machines. I have parts of the users' home directories mounted via NFS 3 (fstab with defaults). A few months ago I started encountering problems during ...
ordo's user avatar
  • 1
0 votes
1 answer
585 views

need help creating a non-root systemd service

I'm using ubuntu 22 and currently have a user and group named "steam" When I want to run my cs2 server , I first switch to steam user : su steam Then I run the following command : cs2-...
lostsoul6's user avatar
8 votes
1 answer
602 views

Systemd: DISPLAY, XAUTHORITY variables are not enough to start Graphical dialogue in Wayland

I use the following in systemd .conf file to run a graphical zenity dialog every time specific device with SMART capability is inserted to the USB port. This works fine in Xubuntu which uses X display ...
rusty's user avatar
  • 16.5k
0 votes
0 answers
191 views

how to install apache flink on wsl2 ubuntu of windows 11

Below is my Apache Flink Installation process on wsl2 ubuntu of Windows 11. First, openjdk-11 installation $ sudo apt update $ sudo apt upgrade $ sudo apt install openjdk-11-jdk systemd installation, ...
Joseph Hwang's user avatar
4 votes
4 answers
776 views

Systemd does not see external drive partition when running ExecStart command

I am trying to run calibre-server at startup. Here is an example of the service content [Unit] Description=calibre Content server After=network.target [Service] Type=simple User=root Group=root ...
kkris1983's user avatar
  • 143
1 vote
0 answers
728 views

How to *enable* systemd-oomd on a service in system.slice? OOM-kill for non-user .service

So, Jammy 22.04 brought us new goodies, systemd-oomd. Long overdue, IMO... but asking this in 2024 I'm somewhat late to the party, too. Everyone has asked already how to disable it — yet, I'm failing ...
ulidtko's user avatar
  • 5,822
0 votes
0 answers
65 views

Gitea snap service file replaced

I installed gitea with snap on Ubuntu some weeks ago. Yesterday the service stopped to work and after digging into to logs I found that systemd service file had beed changed. The file is: /etc/systemd/...
dash1e's user avatar
  • 101
1 vote
1 answer
314 views

create a dependencies for services with systemd

im trying to create a ServiceB that start after ServiceA starts. This is what i tried to do : ServiceA file: [Unit] Description=ServiceA After=network.target [Service] ExecStartPre=running some ...
Noa Tzur's user avatar

1
2 3 4 5
34