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,449
questions
0
votes
0
answers
20
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
18
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
27
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
24
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
29
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
98
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
14
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
49
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
47
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 ...
-2
votes
1
answer
46
views
How to start, stop and restart a set of systemd service units as a group?
I have created a systemd "target" which allows starting of a group of services together. However, it does not work when trying to stop the group of services.
my_target.target:
[Unit]
...
-1
votes
0
answers
38
views
nix - systemd service mounting rclone can't mount
I am trying to create a systemd service using home-manager using rclone to mount a remote service, but it refuses to allow me to mount. I can mount manually, so it is not clear to me where it goes ...
2
votes
0
answers
50
views
Continuously read journald with Python
I wrote a monitoring plugin that reads the systemd-journal for a given unit and process it.
My code looks like this:
# Once on start of the monitoring
from systemd import journal
j = journal.Reader()
...
1
vote
2
answers
92
views
How to pass sba(sv) arguments via qdbus
I'm having a problem with qdbus. I need to pass sba(sv) to the SetUnitProperties method.
I am only able to pass sba{sv} by using a dictonary. I can't find any documentation or examples on how to pass ...
0
votes
1
answer
58
views
Getting DBus notifications of systemd service crashes?
I have linux application that consists of multiple processes, one of them is a "supervisor" process that takes actions if the others crash. All of the processes in the application are ...
-1
votes
1
answer
50
views
Incompatible flags (0x1c) error with systemd 237 journal files on systemd 244 & 245
Description:
I am experiencing an issue where journal files written by systemd 237 are not readable by systemd 244.5 & 245. When attempting to use journalctl to view the journals produced on the ...