Skip to main content

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.

-1 votes
0 answers
10 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 ...
synalice's user avatar
  • 325
-1 votes
0 answers
15 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 ...
Govinda Padaki's user avatar
1 vote
0 answers
21 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 ...
user3518295's user avatar
-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-...
FRACS's user avatar
  • 1
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 ...
David Mulder's user avatar
  • 7,847
0 votes
0 answers
27 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/...
user3518295's user avatar
-1 votes
0 answers
30 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 ...
SaifulDipak's user avatar
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 ...
Christian's user avatar
  • 3,822
-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 ...
U. Windl's user avatar
  • 4,069
0 votes
1 answer
50 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 ...
keshmaster81's user avatar
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 ...
Tux's user avatar
  • 13
-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] ...
FreelanceConsultant's user avatar
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() ...
Nudin's user avatar
  • 371
1 vote
2 answers
93 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 ...
gomme600's user avatar
0 votes
1 answer
59 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 ...
Gyorgy Szekely's user avatar

15 30 50 per page
1
2 3 4 5
164