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 is a system management daemon designed for Linux and programmed exclusively for the Linux API. For systems using it, it is the first process which is executed in user space during the Linux startup process. Therefore, systemd serves as the root of the user space's process tree.

2384 questions
0
votes
0 answers

"rootless" docker gets permission denied, but account running docker does not - why?

I am running docker "rootless" according to this guide: https://docs.docker.com/engine/security/rootless/ The user which actually runs docker is svc_test. When I try and start a docker container which has diretory mounts which don't exists - the…
Newskooler
  • 3,973
  • 7
  • 46
  • 84
0
votes
0 answers

Automatic clenaup of Posix Semaphores, System V alternative

According to my research, there is a automatic cleanup mechanism on /dev/shm directory, made by systemd, with removeipc configuration. Will systemd remove my posix semaphores (under /dev/shm) at runtime of my application even if I don't unlink them…
tango-1
  • 330
  • 1
  • 10
0
votes
1 answer

How to prevent all docker containers from automatically restarting on boot?

I often deploy docker containers for development on my laptop and then shutdown my computer forgetting to shut down the docker containers. To my surprise, many reboots later these containers are still running. How can I change this behavior so that…
Matthew D. Scholefield
  • 2,977
  • 3
  • 31
  • 42
0
votes
2 answers

Catching SIGINT (Ctrl+C) signal sent from systemd to a python daemon/service

EDIT: Narrowed down problem from original version, originally assumed all SIGINT overrides were being ignored, but it's actually just the subprocess one, edited to reflect this. I'd like to have python shutdown safely when receiving the SIGINT…
0
votes
0 answers

My C# Systemd service show inactive(dead) after starting

I made a .sh file to run my c# service. Inside sh file folder setup is #!/bin/bash /usr/bin/dotnet /opt/aid-dotnet/publish/IncidentDetection.dll And My Service file is in /etc/systemd/system Name of service is…
0
votes
1 answer

systemd ignores a systemd-notify call that a service is sending

I have a systemd service I am writing. the service code is basically this: systemd-notify READY=1 while : ; do systemd-notify WATCHDOG=1 sleep 5 done The service config file has the following configured (among other…
einzuk
  • 29
  • 4
0
votes
0 answers

Using nice command on gunicorn service workers

I have a service: [Unit] Description=tweetsift After=network.target [Service] User=root Group=root WorkingDirectory=/var/www/html ExecStart=sudo /usr/bin/nice -n -20 sudo -u root sudo gunicorn -w 4 -b 0.0.0.0:5000…
lasvegas
  • 39
  • 7
0
votes
1 answer

How do I set open file limits for a systemd slice

I'm trying to increase the open file descriptors limit for a transient scope (enable_e0d20b64-6e48-4e38-a718-6ae53745eddb.scope), but I'm not able to. Here's the hierarchy of the slice and scope units: ├─azure.slice │ ├─waagent.service │ │ ├─18305…
victorbrca
  • 77
  • 1
  • 5
0
votes
1 answer

"cassandra.service" fails when I try to create a "systemd" service for it

I am trying to create a systemd cassandra.service. I have downloaded binary codes and installed it on Ubuntu 22.04 within home/a/dons/cassandra directory. Then tried to create the following file /etc/systemd/system/cassandra.service that I founded…
best_of_man
  • 643
  • 2
  • 15
0
votes
1 answer

Unrecognized option: --httpsCertificate=/opt/certs/project.crt in Jenkins Systemd

361.4 on Linux. i have a Nginx Proxy using SSL. I'm trying to expose Jenkins via this SSL Proxy. In order for this i have copied ssl Certificate and key of nginx to /opt/certs/project.crt & /opt/certs/project.key. I have changed ownership to…
0
votes
0 answers

How to read DNS Servers/ DNS Domain details using C sd-bus apis

I want to read the data available in Link 2; mainly DNS Servers and DNS Domains. I am not able to figure out how to read those data using c sd bus api. test@ubuntu:~/Desktop/$systemd-resolve --status Global DNSSEC NTA: 10.in-addr.arpa …
0
votes
0 answers

Yarn start returns error when executed in a service (Linux Server)

I need to run in the background a web app programmed in react and node which is hosted on a linux server. To do this I have created a service in /etc/systemd/system that does the following: Description=Load React-Node…
0
votes
2 answers

Issues running working python script from systemd on Raspberry Pi

I have a python script, using pygame and pyautogui which works when run through terminal or any IDLE on my Raspberry Pi 3 Model B V1.2. The script opens a webpage, and reads joystick inputs through pygame. I want the script to run at boot after a…
atohal
  • 1
  • 3
0
votes
0 answers

Why are there so many ". mount" files in the cgroup path "/sys/fs/cgroup/memory/system.slice"?

Why are there so many. mount files in the cgroup path? i checked systemd config but get nothing to do enter image description here
jason gao
  • 1
  • 1
0
votes
0 answers

Running a Python script as an /etc/systemd/system service

I've written a Python script that collects video for a specific amount of time, while also showing a frame of the images being recorded. The script is intended to close at the conclusion of one video session and then immediately get restarted by a…
portsample
  • 1,986
  • 4
  • 19
  • 35