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.
4,658
questions
-1
votes
1
answer
21
views
Is obex a unit of systemd?
I am following https://askubuntu.com/a/842391/ to enable obex service. Is obex a unit of systemd? Why I can't find it by
$ systemctl list-units | grep obex
?
It doesn't seem to exist, by
$ systemctl ...
0
votes
1
answer
20
views
How to force `systemctl show --all *` to list all units and instances?
I use systemctl show --all * to list all systemd units and all instances with their states.
On some machines it works properly. On other machines it only lists units with a LoadError property.
Example ...
1
vote
0
answers
17
views
How to wait for USB drive indefinite
I would like to use external USB flash drive to store encryption key.
Whenever the drive is attached during boot - it should decrypt Luks container and continue boot
If there is not USB drive with ...
1
vote
2
answers
28
views
systemctl daemon-reload: show diff between running config and current file
I run the following command :
systemctl status tomcat10.service
#and get the following warning:
Warning: The unit file, source configuration file or drop-ins of tomcat10.service changed on disk. Run '...
1
vote
1
answer
19
views
Can I hook into a systemd event for enabling or disabling a service?
Is it possible to tie into a service being enabled or disabled with systemd? I want my daemon to get an event when specific services are disabled or enabled with systemd.
1
vote
0
answers
14
views
Can you avoid restart propagation on failure to PartOf target with systemd 239
I'm not even sure this is possible with the version that we have available.
I have 5 databases that I want to be able to restart at once or individually. I have set up a target for this. I added ...
0
votes
0
answers
23
views
Best practice for running Intel MKL-dependent program as a systemd service
We have a systemd service that looks something like
[Service]
Environment="SOME_VAR=some_value"
# etc.
ExecStart=/bin/bash -c 'some command'
This service file, of course, is templated and ...
0
votes
1
answer
32
views
Why do some of the directories in `/run/systemd/` have permissions 600?
I read that assigning write permissions to a directory is pointless unless you also enable execute permissions (allowing the user to "enter" the directory and write to it). But I ran the ...
0
votes
1
answer
12
views
Need kernel version string in ConditionPathExists of systemd unit file
Is there any way to get the version string of the running kernel into ConditionPathExists?
like
[Unit]
ConditionPathExists=/opt/someapp/(uname-r)
I am aware that uname -r does not work here. But is ...
2
votes
0
answers
43
views
systemd: usage of AllowedCPUs vs. CPUAffinity
In Linux systemd, two different properties seem to address the same concern: AllowedCPUs and CPUAffinity. Both seem to restrain a running process to some defined CPUs (you can for instance restrict a ...
1
vote
1
answer
28
views
systemd CPU usage meaning
Question 1:
With systemctl status name.service, one of the lines I get is:
CPU: 3.555s
But I could not find any info on what does it mean.
Since it is in seconds, I guess this is the total CPU time ...
0
votes
2
answers
42
views
What's the name of these messages and why can't i see them in dmesg output?
I am updating a device running Yocto from Pyro with kernel 4.19 to Gatesgarth with kernel 5.10; this forces me to rewrite my old SysVinit scripts to SystemD unit files.
Trying to figure out which ...
0
votes
1
answer
26
views
ConditionPathExists alternative in old systemd service file
ExecConditionPathExists requires systemd version 244. So I thought an alternative could be
/usr/bin/test -d /some/path
But unfortunately ExecCondition also needs a newer version of systemd (243). I ...
0
votes
1
answer
114
views
unexpected tmpfs mounts : please explain
I haven't seen these tmpfs /run/credentials ... listed mounts in my df output before.
What's it about
:> df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.0M 0 1....
0
votes
1
answer
35
views
Systemd fails to restart a Python script with exit(0)
I have a working python script and systemd service script. But somehow it is not working the way I wanted it. The python script prints time every 5s but stops with exit(0) at first second of a minute. ...