Questions tagged [systemd]
Systemd is a replacement for the classic init during boot.
849
questions
0
votes
1
answer
28
views
In systemd-networkd, when trying to [Match] an ethernet interface in a .network file, what is the difference between `Name=en*` and `Type=ether`?
I haven't been capable of finding anything on the different performance implications of Name=en* and Type=ether.
The only difference I have found is that Type=ether also matches virtual ethernet ports,...
0
votes
0
answers
3
views
How to integrate xmonad with systemd's graphical-session.target?
I wanted to take advantage of using systemd user services. But I realized that xmonad (which I'm using together with lightdm) doesn't seem to integrate with with it.
Apparently ligthdm shouldn't be ...
1
vote
1
answer
18
views
Can I define and use a variable to use in systemd unit file itself?
Trying to avoid possible mistakes I'd like to define and use variables to be used withing the systemd unit file itself, i.e.: not for the command executed.
For example consider this (invalid) unit:
[...
1
vote
0
answers
57
views
systemd: ensure, service is started after mysql
I have a systemd path unit, which watches a config file to apply db changes if the config file changes. To ensure the path unit runs after mysql, I added these lines:
Wants=mysqld.service
After=mysqld....
1
vote
0
answers
28
views
What does "job result is dependency" mean, and how do I debug it?
Here's my nice failure output, with PII snipped out:
command was journalctl -xu my_service
Jun 24 21:47:03 ip-XX-XX-XX-XX systemd[1]: Dependency failed for Runs the server.
░░ Subject: A start job for ...
0
votes
1
answer
23
views
Systemd Service not being loaded when migrating from Debian 8 to Yocto
I have an app.service that I have been using on a debian machine that is symlinked to /etc/systemd/system/multi-user.target.wants it works well and starts my app.
I have recently been working on ...
0
votes
1
answer
118
views
Automatically mount a per-user drive on login with systemd
I have a NAS which provides SMB/CIFS shares and I've also just set up a new PC (running EndeavourOS/Arch) and want to automatically mount those shares. In the past I've always handled this by simply ...
1
vote
0
answers
99
views
How can I use unified kernel images with Ubuntu and Debian?
I would like to use unified kernel images (UKIs) and systemd-boot to take advantage of some of the hardware security features it provides (such as measured boot and real secure boot). I think that the ...
0
votes
0
answers
64
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 ...
0
votes
0
answers
62
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 ...
0
votes
1
answer
44
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 ...
0
votes
0
answers
60
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/...
0
votes
0
answers
47
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 ...
0
votes
0
answers
60
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 ...
0
votes
0
answers
53
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="...