Questions tagged [systemd]

systemd is an alternative approach to SystemV and Upstart init daemons for Linux. It is intended to provide a better framework for expressing services' dependencies, allow more work to be done in parallel at system startup, and to reduce shell overhead.

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

What is the preset field in systemctl status?

This is the output: systemctl --user status syncthing  ✔  11:12:37 ○ syncthing.service - Syncthing - Open Source Continuous File ...
Centaro's user avatar
0 votes
0 answers
6 views

Can I use systemd resource management to deny port only outside containers

On an up-to-date fedora 39, I have set up podman for rootless containers and I limit the ports a user may bind to by creating /etc/systemd/system/user-1000.slice.d/user-resources.conf with [Slice] ...
Gamification's user avatar
0 votes
1 answer
40 views

Syncthing is running, but who is running it?

So, as Stephen Kitt said: Syncthing relies on a user service. Now, even if I try to stop it or kill it, the application keeps running and access to the web GUI is still possible. I started it logged ...
Centaro's user avatar
0 votes
0 answers
9 views

Where are files that are created with rootles systemd/quadlet stored?

I was playing around and following this guide to see if I could spin up a container at startup. I am now done with it and have removed the systemd service from $HOME/.config/containers/systemd/ but I'...
telometto's user avatar
  • 1,877
0 votes
0 answers
10 views

Is it possible to specify sleep mode "freeze, mem, suspend and etc." using systemctl?

As far as i know we can know we can check which low power configurations are available for our Linux computer by reading /sys/power/state file. We can turn low power mode by writing one of this ...
snowonthemoon's user avatar
0 votes
0 answers
19 views

Using different layout for each keyboard

I've seen similar questions here, but I don't think I'm duplicating any of them. I've been making progress on this matter for years, but there's still some way to go. The latest stage is that I use ...
Sadi's user avatar
  • 475
-2 votes
0 answers
27 views

Delete system-d via windows

So I want to delete systemd boot menu via windows because I deleted my Arch Linux installation. I delete the Arch partition, format my primary and secondary disk but this damn menu is still here. ...
Waarmy's user avatar
  • 1
1 vote
1 answer
35 views

Setting MTU does not work from systemd-networkd, but works from 'ip link set mtu'

I'm trying to change an MTU of an interface. I've noticed it does not change correctly when using systemd-networkd, but it works when I use the ip link set mtu command. Current MTU is 1500: 3: eth0: &...
hudac's user avatar
  • 749
0 votes
0 answers
40 views

systemd - Is this how to require a service by an installed program?

The essence: I want the systemd to symlink specific directories to /tmp/some_folder before it starts services from various installed packages and system services (like cups, pacman, etc.), the reason: ...
donaastor's user avatar
  • 214
0 votes
0 answers
17 views

systemd-coredump service fills /run/systemd/propagate until out of inodes

On my SUSE Linux, huge amount of coredump service directories were observed under /run/systemd/propagate/, sample as below, as of now /run has been totally filled with those folders without any free ...
Heyjoke's user avatar
1 vote
0 answers
17 views

Why would systemd start a service before a defined "After="?

So I have a raspberry PI OS lite running bookworm, and I have installed PulseAudio onto it. The pi is setup to be a moonlight device for my TV (thanks Samsung for EoL SteamLink!). All it has to do ...
Leaski's user avatar
  • 11
0 votes
0 answers
32 views

SystemD doesn't automount folder in subdirectory of another mount, how to fix?

I have local file server which exports two places over SMB: \media and \something I want to have them mounted as /media/MEDIA (\media export) and /media/MEDIA/something (\something). To do it I ...
user70436's user avatar
0 votes
1 answer
27 views

Quadlet containers not starting on boot - problem with network-online.target?

I've created quadlets to launch two different containers in an opensuse environment (microOS, to be specific). The quadlets get planted in /etc/containers/systemd during an automated install. I expect ...
XyMan's user avatar
  • 1
3 votes
1 answer
51 views

Why systemctl status shows a time in the future and the amount of time left?

When we issue "systemctl status", we usually get in the output, a line showing the status and for how long it has been in that status. Like: (I issued that few minutes ago) Active: active (...
Travelling_Bird's user avatar
0 votes
1 answer
41 views

Systemd killed my vetcore service: "Deactivated succesfully"

So I created a systemd file for my netcore bash script on Linux. But when I start the service file, systemd keep killing it with the result "service: Deactivated successfully." I tried to ...
RBR's user avatar
  • 1
0 votes
1 answer
47 views

Nested variables in systemd EnvironmentFile

#File: /home/miles/temp/foo.env ONE=/one TWO=${ONE}/two FULL_PATH=${TWO}/three #File: ~/.config/systemd/user/foo.service [Service] EnvironmentFile=/home/miles/temp/foo.env # prints ${TWO}/three # ...
MilesF's user avatar
  • 97
0 votes
0 answers
16 views

Systemd service not restarting after VM reboot

I have a systemd service with the following unit file [Unit] Description=Custom service After=network.target [Service] ExecStart=/usr/local/bin/my-script Restart=always Environment=FOO=BAR ...
pkaramol's user avatar
  • 2,679
0 votes
0 answers
27 views

Delay restart on failure for systemd service

My systemd service file correctly restarts my executable if it fails with a non-success exit code. My service file contains: SuccessExitStatus=0 129 200 Restart=on-failure Since my executable ...
TSG's user avatar
  • 1,678
0 votes
0 answers
22 views

How to get consistent ethernet device numbering on a Raspberry pi?

I have a Raspberry pi 3B+ with a custom Yocto Linux image. I want the onboard Ethernet to be eth0 and a USB Ethernet dongle to be eth1 or something else such as usb_eth0. One pi consistently numbered ...
elechris's user avatar
0 votes
2 answers
52 views

Unable to start service, auth could not identify password for

Im trying to start a linux service, however im getting the below issue when im trying to start the service. Please help with a solution of how to fix this issue The user Test_user is set with ALL=(...
Chinnu's user avatar
  • 1
1 vote
0 answers
57 views

How to get symbolized call-stacks with coredumpctl info?

I am trying to enable systemd coredumps containing call stacks with function names when printed with coredumpctl info, so that I can get a call stack without using gdb and/or coredumpctl debug (since ...
Étienne's user avatar
  • 135
0 votes
0 answers
27 views

migrating app from upstart to systemctl failing with 'dead'

new to this area, and trying to setup this project on Ubuntu 20.04.6 LTS https://github.com/thoukydides/heatmiser-wifi the project is no longer maintained, but the instructions talk about using ...
nmpuk's user avatar
  • 1
0 votes
0 answers
81 views

How to force fullscreen image at startup on DEBIAN 12

Under Debian 12 I use a script at startup via systemd, the latter launches a script. And it performs the following functionality: waiting for a removable device to be mounted, if detected, launching ...
Ickobly's user avatar
0 votes
1 answer
49 views

How can you pass hyphenated arguments (flags) to a template service unit?

[email protected] is my template service unit. [Unit] Description=my service unit [Service] Type=oneshot ExecStart=/home/username/scripts/myprogram.py %I I want %I to be --arg1 --arg2=/path/to/...
deanresin's user avatar
  • 537
0 votes
0 answers
14 views

how to configure kata containers to work with systemd

I am trying to run kata containers with systemd using containerd on my ubuntu 22.04 machine, but I cannot manage to make it work. My expectation is to be able to run all the processes inside the ...
agalbenus's user avatar
2 votes
1 answer
66 views

Is the systemd instance name specifier %i redundant when referring to templated dependencies?

Do we need to use the instance name specifier (%i) in templates when referring to other templated services, or can we assume the instance name is inferred? Many examples follow this pattern (e.g. ...
MilesF's user avatar
  • 97
0 votes
0 answers
23 views

Reverse tunnel using systemd

I have this service file to make a reverse SSH, works fine, on the other server I can see it, problem is I left it over night, in the morning I've checked the service was active but on the other ...
Martzy's user avatar
  • 11
2 votes
1 answer
88 views

systemd does not consistently capture and log stdout

I have a minimal script managed by a oneshot systemd service. Sometimes the stdout echoed by this script appears in the systemd logs. Sometimes it does not. It randomly appears about 50% of the time. ...
MilesF's user avatar
  • 97
2 votes
3 answers
98 views

How can I make a systemd service start after the *completion* of another service?

I always run into cases where I need a program associated with service A to run to completion before service B. "After" does not scratch this itch. After says Most importantly, for service ...
DeepDeadpool's user avatar
  • 1,253
1 vote
1 answer
35 views

Applications fail when started too early via Systemd--what dependency is required?

RPI 3b+, Debian Stretch I want to start a Qt applicaton via systemd. The app uses X and needs to open a display. It always fails due to an Invalid MIT_MAGIC-COOKIE. But then systemd restarts it (on-...
Dave Thomas's user avatar
0 votes
0 answers
40 views

tmpfiles.d glob for directories only

According to the documentation, I should be able to use globs to specify a path, however it seems that using /*/ glob for directories isn't supported, is this because this type of glob is part of an &...
Mathias Sven's user avatar
1 vote
1 answer
67 views

CentOS systemd places service subprocesses started with `sudo` in `user.slice` (instead of `system.slice`)

Subprocesses that are created using sudo within a systemd service are placed in the user.slice. This behavior has been observed only on CentOS 8 (x86_64 20230606) and not on Ubuntu 20.04.5 LTS, where ...
flashy's user avatar
  • 13
1 vote
1 answer
35 views

How to disable core dump of a specific process (Syslog-ng in my case) of Systemd

I want to permanent disable generating core-dump of a specific process/service of systemd.
Swayanshu Sekhar Dash's user avatar
0 votes
0 answers
31 views

Put user's unit file in non-default location

My distro is RHEL 8.6. By default, all user's unit files are put in the /home/myuser/.config/systemd/user directory, then systemctl --user daemon-reload make them available. My question is how I ...
Luke Huang's user avatar
0 votes
0 answers
69 views

I get permission denied for a command in an sh script, but same command works from terminal

I have a service run by systemctl in RedHat 8.8. The service itself is relatively simple: cat /etc/systemd/system/myservice.service [Unit] Description=My service After=network-online.target [Service]...
Gábor Major's user avatar
0 votes
1 answer
33 views

How to set static IP for 2 network interfaces in systemd linux

I have a Yocto distro that uses systemd (like ArchLinux) to allow static IP configuration via /etc/systemd/network/20-wired.network file. I need to set a static IP for 2 network interfaces (eth0 & ...
Del's user avatar
  • 11
0 votes
0 answers
26 views

systemd[1]: syslog-ng@default.service: Main process exited, code=dumped, status=7/BUS

I am using arch-linux. After running 24hr I am getting [email protected] core dump. Log: systemd[1]: [email protected]: Deactivated successfully. systemd[1]: syslog-ng@default....
Swayanshu Sekhar Dash's user avatar
0 votes
0 answers
51 views

Forking from a systemd service [duplicate]

I have a python program that runs as a systemd user service. From that program, I launch external commands via subprocess.Popen(cmd, close_fds=True, start_new_session=True). My intention is for these ...
czert's user avatar
  • 1
1 vote
0 answers
48 views

Timed out waiting for device /dev/ttyNVT0

I want to make a physical remote serial port for my server that lets me use this port as a server serial console (this is for retro computer related hobby). I'm using a MikroTik router with its serial ...
nuclearlighter's user avatar
0 votes
1 answer
27 views

Reset systemd from deactivating state

I have stopped the D3 dababase via command line instead due to systemd have issues stopping the service. When this happens, I have to restart the server each time which takes 30 minutes at least due ...
supmethods's user avatar
0 votes
0 answers
22 views

Manage application stack with systemd

I have a stack of three applications I'd like to manage with systemd. I'll refer to them as app1, app2 and app3. app1 and app2 are independent, and are composed of two processes each. app3 is ...
dkd6's user avatar
  • 77
0 votes
0 answers
20 views

How can I set journald settings for non-root users?

I have a bunch of services that run under non-root users automatically. I've modified my /etc/systemd/journald.conf to limit the maximum allowed filesize, but it doesn't work on systemd services that ...
DeepDeadpool's user avatar
  • 1,253
1 vote
1 answer
100 views

Multiple NetworkManager connection profiles for the same ethernet interface not always work correctly

I'm using 3 NetworkManager connection profiles in a Linux distribution and all the connection profiles refer to the same ethernet interface: enp3s0. I'm using these connections to manage: the default ...
User051209's user avatar
0 votes
0 answers
19 views

Cause a script to execute when the default route is changed

I have 2 interfaces: the Ethernet (metrics 1) and 4G (metrics 2). When the first disappears the second is used, when the Ethernet comes back, the first one is used again. I would like to send a ...
Oleksa's user avatar
  • 141
0 votes
1 answer
75 views

systemd resource control - IOWriteIOPSMax not working?

I'm trying to limit IO for a specific unit, but the IOWriteIOPSMax attribute does not appear to make a difference. I initially tried IOWeight, but that is more challenging to test, the docs on IOPSMax ...
morisja's user avatar
1 vote
1 answer
45 views

systemd-networkd 'relaytarget' not working (dhcp relay) in Debian stable 12 bookworm

my first question here. I'm currently using the 'dhcp-helper' program to do dhcp relay, works fine, but I want to switch to using the systemd-networkd 'RelayTarget' function in the *.network file. I'...
drokmed's user avatar
  • 11
0 votes
1 answer
144 views

Error: could not open `user_jvm_args.txt`

This is my first time making a bash script into a service and I'm running into an error where the service fails because it can't open a text file that is used for java arguments (user_jvm_args.txt). I ...
EChumley1310's user avatar
0 votes
0 answers
30 views

dependency issue at wpa_supplicant service startup

I have an issue during the bootup sequence of our toradex board (more info here) with wpa_supplicant service failing on "dependency" reason. I am using pure systemd network setup, with this ...
Pier's user avatar
  • 276
0 votes
0 answers
25 views

Systemd with Gitlab-runner and Manual commands works differently

I have a python-based tg bot that is supposed to run as Systemd service. Service file goes as following. [Unit] Description=Telegram ImageBot After=syslog.target After=network.target [Service] Type=...
Lev Marder's user avatar
1 vote
1 answer
29 views

High cpu and loading when using systemd socket activation with high concurrency

As rhel9 removed xinetd, we started the process of moving to systemd socket activation for short-lived service. But under high concurrency (in fact it's not that high, only about 50 max), host loading ...
dhchen's user avatar
  • 113

1
2 3 4 5
91