Questions tagged [systemd]
Systemd is a system management daemon designed for Linux. Use this tag for *programming questions* using systemd or its libraries. Questions about *configuring the daemon* (including writing unit files) are better directed to Unix & Linux: https://unix.stackexchange.com.
systemd
2,453
questions
-2
votes
0
answers
16
views
rootless podman do not start after system reboot [closed]
I followed the guide of https://hub.docker.com/r/look4/nginx to install a rootless podman container with systemd on a Ubuntu 24.04.
My container is running well but when I reboot the system my ...
1
vote
1
answer
23
views
EOFError when trying to call Inhibit method on org.freedesktop.login1.Manager via dbus-fast
I'm developing a Python application which will be distributed to users on Linux in various forms (Flatpak, PyInstaller executable, maybe others). In this application, I want to call the Inhibit method ...
-2
votes
1
answer
49
views
Start/enable systemd service/socket in a container-file
Given:
A Containerfile that gets build with podman: bash-4.4$ podman build -t amazing-stuff-007:001 .
# stable/Containerfile
#
# Build a Podman container image from the latest
# stable version of ...
-2
votes
0
answers
24
views
Share keys between sessions of kernel keyring
With Linux Kernel Keyring (keyctl or keyutils) how can I share a key not only between sessions but also between users?
I want a key to be created once and then accessible for everyone on the system no ...
-1
votes
0
answers
25
views
Sharing kernel keyring between systemd services
I am working with kernel keyring (e4crypt tool stores its keys there).
For some reason systemd doesn't share kernel keyrings between services. Service A launches a script that creates a key and then ...
-1
votes
0
answers
19
views
What is the configuration for Apache Airflow, Django, PySpark together in Systemd services?
We are using Apache airflow, Django (python), and Spark (pySpark) in our project. Our DAGs are running fine when run 'airflow scheduler' is run from command line. However, these DAGs are not working ...
1
vote
0
answers
24
views
Huge memory consumption when iterating systemd journal
Dear community, here are the story description and 2 questions:
I'm trying to fix significant memory consumption in a systemd (--version is 250) journal forwarding application. Our application is ...
-1
votes
0
answers
19
views
Systemd runs video at start Raspberry
I'm trying to make a splash screen after booting so I created a a systemd service like this:
[Unit]
Description=Reproducir video al inicio
[Service]
ExecStart=/usr/bin/cvlc --fullscreen --play-and-...
2
votes
1
answer
31
views
Secure communication between a daemon and D-Bus on Linux
So I have a daemon which is used to authenticate users via Azure Entra Id (the daemon is Himmelblaud). I'm writing a session D-Bus service (the bare bones here) to provide SSO creds to various apps ...
0
votes
0
answers
29
views
How to handle properly the systemd journal handle invalidation due to the log rotation
I have a journal-forwarder application running on an embedded Linux system managed by systemd. The application is similar to the example on this page: https://www.freedesktop.org/software/systemd/man/...
-1
votes
0
answers
43
views
Failed to start uvicorn using systemd
I am trying to run my FastAPI application by uvicorn and systemd. But it fails with following error. I checked user, file permission and run the application from command line.
systemctl status ...
0
votes
1
answer
100
views
Trying to reference the source code for journal to replicate
After searching the web for a solution and not finding a library, I'm instead trying to write a systemd journal reader using csharp and not having much luck.
There's an example written in c++ at the ...
-2
votes
1
answer
16
views
Expand multiple words in envoronment variable using systemd
I have a problem using systemd's environment files:
Defining a variable like
#... many more
CHECK_SELECTION=--no-check-a --no-check-b --no-check-c
#... many more
in an environment file for a systemd ...
0
votes
1
answer
51
views
Running Streamlit scripts through Systemd on a Raspberry Pi
I want to run my Streamlit app on boot with my Raspberry Pi to make my web server fully autonomous and accessible on my local network when I plug in the pi. This way, I never have to manually run the ...
1
vote
0
answers
49
views
How to get an inhibitor lock for a service in C language?
I am making a service and I need to know when the system is about to shutdown, in order to perform a last action and finish the service.
Following Inhibitor Locks documentation (Taking Delay Locks) I ...