Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [systemd]

Systemd is a replacement for the classic init during boot.

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

Systemd-resolved and ping

The question Systemd-networkd succesfully requests an IP address for my computer and routes its traffic to and from the gateway as expected. Systemd-resolved can correctly resolve FQDNs and IP ...
Centaro's user avatar
  • 11
0 votes
0 answers
20 views

How to indefinitely restart a systemd service until it succedes?

I have a systemd service on a machine that could be killed (or otherwise fail) which I want to restart upon failure indefinitely, trying a restart every 2 seconds until it succeeds (or the end of the ...
WoJ's user avatar
  • 3,223
0 votes
1 answer
30 views

What happens to core dump when pid is reused

When using the core dump management system called systemd-coredump we can see the list of core dumps with coredumpctl list. The list of core dumps is listed with date and pid. To extract the actual ...
Be Kind To New Users's user avatar
0 votes
1 answer
40 views

Systemd timer service does not execute my script [closed]

I have a systemd timer on Arch linux, which I want to use to periodically back up my bookmarks file with a simple script using the cp command. It appears that the timer is working, but the service ...
ianianianian's user avatar
0 votes
0 answers
36 views

systemd-networkd gains ipv6 but not ipv4

hoping for some help debugging a systemd-networkd issue. I have both systemd-networkd and wpa_supplicant. I've enabled a [email protected] systemd unit that corresponds with an /etc/...
Eslam Medhat's user avatar
0 votes
0 answers
32 views

How to detect the hibernation phase for suspend-then-hibernate without env variable?

On Ubuntu, it's possible to run a script before and after a laptop is suspended by adding a script to /lib/systemd/system-sleep. When using the suspend-then-hibernate command, officially it's possible ...
Jerry Ding's user avatar
0 votes
0 answers
26 views

Running an application with an VPN in a systemd-nspawn container while host is using different VPN

My host is behind a NAT and connects to some other bastion host via wireguard, on interface wg0, with AllowedIPs set to 0.0.0.0/0,::/0, which routes all traffic through that bastion host. Now, I'd ...
Sir-Photch's user avatar
0 votes
0 answers
22 views

Possible to expand/use a variable value, in another variable, in a systemd service file?

All I want to do, is to re-use the name I enter in the User= specification in a systemd .service file; e.g. I would have liked to do this in a .service file: # ... User=my-username Environment="...
sdbbs's user avatar
  • 1,372
0 votes
1 answer
13 views

What is the difference/precedence of resolved.conf and a .network configuration?

There are two places where I can set up the DNS server for a systemd linux (static configuration): in /etc/systemd/resolved.conf, in the [Resolve] section, a DNS= entry in /etc/systemd/network/<...
WoJ's user avatar
  • 3,223
0 votes
0 answers
56 views

Linux systemd-resolved not answering MulticastDNS

In general, I'm currently replacing all networking stuff with the builtin systemd facilities. NetworkManager, dnsmasq, dhcpcd, avahi-daemon -- all gone, and things seem to be mostly working. Except ...
Christian Stieber's user avatar
0 votes
0 answers
25 views

"Failed to Mount API filesystems". On copied drive with updated partition UUID's

So I directly cloned the partition layout of my main linux installation. Which is Fedora 38, using commands as follows. sgdisk --backup=table /dev/sda sgdisk --load-backup=table /dev/sdb I updated ...
MysteriousMadCoder's user avatar
0 votes
0 answers
47 views

Simple CentOS 7 systemd service doesn't run on CentOS 9

I'm running a minecraft server on CentOS 7 using this systemd service to restart it on crashes. The service config is located at /etc/systemd/system/my_minecraft_server.service: [Unit] Description=...
RareScrap's user avatar
  • 101
0 votes
2 answers
108 views

Cannot change interface name for add-in network card

I am trying to assign persistent names to network interfaces on a Linux Mint 21.3 PC. This particular PC often has PCIe devices added and removed, so the 'predictable' naming scheme of enpXs0 is ...
user18's user avatar
  • 101
1 vote
0 answers
29 views

Different results from a script when using absolute or relative path in Linux

I get different behaviors running “/etc/init.d/wls start” compared to changing to the /etc/init.d directory and running “./wls start” on a RHEL 8 Linux system. The first one uses “systemctl” while ...
Az Cactus Jack's user avatar
1 vote
0 answers
25 views

How to run a program after the last modification of a file with systemd?

I'd like to run a program after the last modification of a particular file. The program should not be run concurrently with itself. If the file is modified while the program is running, it should be ...
Helmut Grohne's user avatar
0 votes
1 answer
38 views

Firefox has permission to start wpa_supplicant when calling navigator.geolocation

I've been dealing with some annoying attacks lately, and got super paranoid after discovering wpa_supplicant.service running as it definitely should not be on this particular machine. After a little ...
Dale's user avatar
  • 103
0 votes
0 answers
44 views

How to start tomcat at boot time as a systemd service?

This is my Unit file: # Systemd unit file for tomcat [Unit] Description=Apache Tomcat Web Application Container Wants=network.target After=syslog.target network-online.target [Service] Type=forking ...
ngong's user avatar
  • 111
0 votes
0 answers
40 views

systemd before,after,requires all not working like expected

I have an nfs mount on a debian12 system running systemd252, i need this to be mounted at startup before zfs but after network-online.target, so i tried using /etc/fstab but that keeps loading before ...
user9503's user avatar
0 votes
0 answers
94 views

debian 12 , systemctl-timesyncd is inactive on boot

I have tried follow ways to enable systemd-timesyncd , but not working. after reboot , it still is inactive , although it's active before reboot. 1. timedatectl set-ntp yes sudo systemctl enable ...
neo's user avatar
  • 11
1 vote
0 answers
31 views

Is CPUQuota per core or per machine?

In order to prevent buggy sites from freezing my system I imposed a CPU Quota limit of 95%, a Memory High of 2G and a Memory Max of 3G on my Firefox flatpak as described by the flatpak documentation. $...
Mek101's user avatar
  • 11
0 votes
0 answers
161 views

Failed to enable unit: Invalid argument systemctl enable .service

I have made a startup_test.sh with the following contents cd /home/xyz/Desktop/ gnome-terminal -e "bash -c ./efg" #desktop folder contains an executable named efg. If I run gnome-terminal -...
Vinod's user avatar
  • 133
0 votes
2 answers
41 views

How would you include a specific module to load at boot in Debian?

I am working with Klipper for 3D printing, and I came across a pull request that allowed for TTY support in Klipper, to allow a Mosaic Palete 3 Pro to control the printer for its Connected Mode. I ...
Ian's user avatar
  • 1
0 votes
0 answers
67 views

Failed to start User Manager, No CGroup Medium Found

I have run into a strange issue that, from what I can tell, the root cause is associated with or directly related to CGroups. Unfortunately I do not understand enough about SystemD or CGroups to know ...
Coder Guy's user avatar
  • 111
0 votes
0 answers
161 views

start non-root user systemd and systemd services via sudo without enable-linger

I'm like to be able to start a systemd session (e.g. systemd --user) for a given non-root user, and subsequently start a service (e.g. systemctl --user start SERVICE.service), all via a sudo -iu USER ...
crimson-egret's user avatar
0 votes
0 answers
98 views

Running aplay via systemd

As per this post, I seem to be able to work around a problem with sound playback by running aplay -f cd /dev/zero. I've put the command into a script at ~/Scripts/openAudio. I want the script to run ...
Gareth Walker's user avatar
0 votes
1 answer
228 views

How to configure systemd-resolved's mDNS responder to respond to multiple hostnames?

Is there a way to configure systemd-resolved's mDNS-responder behavior so that my Linux box will respond to more than one mDNS hostname? For example, I'd like to be able to ping my linux box (from ...
Jeremy Friesner's user avatar
0 votes
0 answers
115 views

Debian 12 bookworm - snap: install error access denied

I am trying to snap install the multipass package under Debian 12 bookworm (running under WSL), but I'm getting an error during the install. This is a new problem. snap previously worked and ...
Mike Pennington's user avatar
0 votes
0 answers
24 views

Is it possible to create a non-forking vnc service?

I followed this article to create a vnc service. The service is forking and uses a PID-file. My version of the service description — [email protected] — looks like this: [Unit] Description=Start ...
ElToro1966's user avatar
0 votes
0 answers
96 views

notify-send messages sent from a systemd unit delayed

There's an active systemd service [Unit] Description=Launch the screenlock daemon service PartOf=graphical-session.target After=i3wm.service [Service] Type=simple ExecStart=env screenlock-daemon ...
laur's user avatar
  • 227
0 votes
1 answer
342 views

How to reload system-connections files?

After I edit a file in /etc/NetworkManager/system-connections/ I tried: nmcli conn reload systemctl daemon-reload systemctl reload NetworkManager systemctl restart NetworkManager but no matter what, ...
gcb's user avatar
  • 4,961
1 vote
2 answers
890 views

How to start systemd user service at login

I am trying to start a systemd user service at user login. But my service keep starting at boot and remain running after I logout. I am on Linux Mint 21.2. Here is what I did so far. Create unit file ...
debugger101's user avatar
0 votes
1 answer
168 views

How to make sure a process spawned via ssh get's terminated with the connection?

Apparently people try to keep processes they started via ssh running even when the connection is gone, see https://duckduckgo.com/?q=ssh+process+still+active+after+connection+close So I was believing ...
frans's user avatar
  • 1,069
0 votes
0 answers
116 views

systemd-networkd: Updating statically assigned ipv6 prefix

I want to be able to change my statically assigned ipv6 address prefix in my systemd-networkd configuration file without rebooting my entire system. For example if I entered the following in a file /...
user184419's user avatar
0 votes
1 answer
309 views

Run a systemd service at logout

I have a script that I want to run at logout/reboot and shutdown with a .service file in /etc/systemd/system. [Unit] Description=My description DefaultDependencies=no Before=poweroff.target halt....
Laphroigh's user avatar
0 votes
1 answer
33 views

Does fsck.mode=force in GRUB overrides 6th column option in fstab?

I set fsck.mode=force fsck.repair=yes against GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub file. Will this option override numbers set in the 6th column of /etc/fstab? For example, will my root ...
Faxopita's user avatar
0 votes
0 answers
99 views

Rotate journald at a specific time

Is it possible to either configure journald to rotate logs at a specific time of day, or to externally trigger a log rotation (say in a systemd timer or cron job)? The reason is to play nicely with ...
pavon's user avatar
  • 129
0 votes
1 answer
848 views

Set umask for systemd service, but files created by the process are still using the default

This is the unit for the Transmission torrent client, which was compiled and installed from source. /etc/systemd/system/transmission.service: [Unit] Description=Start the Transmission daemon After=...
Douglas Silva's user avatar
0 votes
1 answer
298 views

Systemd service timing out/restarting every few minutes even though service runs successfully

​I have a Raspberry Pi 5 8gb running Raspberry Pi OS and the issue I'm having is that qbittorrent-nox, that I installed using apt keeps crashing after around 1 minute and 30 seconds. Since I have a ...
AyaanMAG's user avatar
0 votes
1 answer
353 views

Disable stdout buffering in systemd, how to make it print everything?

On Debian, when I ask for service status, it only prints out a few lines: sudo service tor status CPU: 3ms Dec 15 17:57:27 systemd[1]: Starting tor.service - Anonymizing overlay network for ...
Eva4684's user avatar
  • 11
0 votes
2 answers
908 views

NetworkManager slows down shutdown and more in Debian 12?

First problem Since I last updated my computer earlier this week, my computer started needing about 11 minutes to turn off. At first glance, it is NetworkManager.service and wpa_supplicant.service ...
Loïc's user avatar
  • 1
0 votes
0 answers
68 views

How to run Apache airflow that is installed by PyPy as systemd?

I installed Apache airflow using PyPy and the executable is in /home/my_user/anaconda3/envs/my_env/bin/airflow The installation is working fine and I wanted to make it a systemd. [Unit] Description=...
motam79's user avatar
  • 490
0 votes
0 answers
383 views

Debian can't wake up after suspend

After some time my system suspending. After the system has suspended itself I can't wake up the computer. I use Debian 12 and KDE. How to fix that?
Aleks kat's user avatar
0 votes
1 answer
291 views

WSL not initializing because of systemd-firstboot.service

I had an issue with my WSL after enabling systemd, it was stuck initializing. I have an arch distro set up, so this might be specific to that. WSL-Version: 2.0.9.0 Kernelversion: 5.15.133.1-1 ...
FlorianXXIV's user avatar
0 votes
1 answer
103 views

Linux Mint: Network connection only several seconds after boot

I have the following problem: After the boot process, it takes a few seconds until a network is available. This means, for example, that network drives cannot be mounted or certain websites are only ...
JJandke's user avatar
  • 148
0 votes
0 answers
66 views

How can I verify the scripts in /lib/systemd/system-shutdown are being run?

I have a simple script that I want to run just before shutdown. I'm trying to verify this script are being run but I'm not seeing any messages from my script on my system's debug serial, kernel log, ...
Raven's user avatar
  • 209
0 votes
0 answers
111 views

Order of device initialization at Linux boot

I'm working on embedded system with screen connected over HDMI, but screen initialization takes longer than is comfortable for user. When I have ploted boot sequence by systemd-analyze tool, I have ...
Thugmek's user avatar
  • 13
7 votes
3 answers
2k views

Turn debian laptop tty monitor off at start

I have a laptop that's turned on 24/7, it runs debian with no windowing system (just tty). I've looked through various posts that recommend setterm or vbetool and i've tried making a systemd startup ...
user9503's user avatar
0 votes
0 answers
351 views

systemd is blocking port 69 so I'm not able start atftpd

For TP-Link router recovery, I'm trying to create TFTP server on my laptop with atftpd. But when I try to run it with sudo atftpd --daemon --no-fork --logfile - /srv/tftp, It says it can't bin port 69/...
Thugmek's user avatar
  • 13
0 votes
0 answers
223 views

gunicorn randomly getting shutdown signal and not restarting in systemd

I'm running gunicorn in production with systemd. I periodically get [INFO] Handling signal: term and then Error while closing socket [Errno 9] Bad file descriptor and then it won't start up again ...
Jonathan Mugan's user avatar
0 votes
1 answer
94 views

Ubuntu Server 14.04 upgraded 18.04 causing PHP7.2-fpm service to time out

I have a DigitalOcean droplet which experienced a variety of issues after a dist-upgrade. Most recently I tried reinstalling php7.2fpm and was greeted with this output: invoke-rc.d: initscript php7.2-...
conartist6's user avatar

1
2 3 4 5
17