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
2 answers

Container name changes after system restart

I am starting and stopping container using systemd unit file service as. Taking container name as hello podman ps shows hello in output Auto generate unit file for hello podman generate systemd --new --files --name hello The unit file…
Shivam Papat
  • 457
  • 4
  • 14
0
votes
1 answer

Centos 7 increase telnet connection limit above 64

Telnet connections are getting refused after 64, system wide. This message is filling up /var/log/messages. systemd: telnet.socket: Too many incoming connections (64) How do I increase it from the default 64?
ourmandave
  • 1,505
  • 2
  • 15
  • 49
0
votes
1 answer

Export logs using Rsyslog in various formats

I am trying to export kernel logs (/var/log/messages) to remote Syslog servers using rsyslog. I am required to export in various standard formats like RFC3339, RFC3164, and RFC5424. Can someone please tell me how to solve this issue? I believe this…
0
votes
1 answer

which systemd TYPE of service to use at machine start i some code has to stay forever

at the system start, using a systemd service, I want to lauch a bash to run forever, executing an action every 5 seconds. Its code is simple (do_every_5_segons.sh) while true do {read some JSON from internet} >> $myLogFile 2>&1 …
Mikel Vergy
  • 121
  • 5
0
votes
1 answer

Systemd says my service is active and started, but I receive no output

I'm trying to run a bot on a VPS and im able to get a systemd service create so as to be able to run my python code automatically if the server were to ever reboot for any reason. The service is enabled, the status is showing as active when I check…
kah
  • 45
  • 5
0
votes
1 answer

"service xxx start" (ONLY the "start") not working on Redhat

We have been using an open-source OCSP responder (OpenCA OCSP Responder), and I am trying to get it working on RHEL 7. The project is quite old, and I don't think is being maintained actively anymore. Anyway, I was able to get it to work on RHEL 7…
user555303
  • 1,146
  • 3
  • 20
  • 44
0
votes
1 answer

Systemd consumer service starts before broker (RabbitMQ )

I have a RabbitMQ server set up on my raspberry Pi and I want the same device to run a consumer to handle messages to one of my queues. I first tried executing it from the crontab but realized later that running it as a systemd service may be a…
JabbaThePadd
  • 97
  • 1
  • 7
0
votes
1 answer

How to only show output from shell script that is running as a service?

I write a shell script and installed it on systemctl to run on startup, everything works fine, however if i run "systemctl status myservice" it shows all my script source code instead only the outputs of my script my script looks similar to this (as…
josephp88
  • 11
  • 1
0
votes
1 answer

Systemd script throws an error of bad-setting

I tried to run the node application in production environment with nohup. below is my script file, service file and error report hemant@zero-ui:/etc/systemd/system$ cat /home/hemant/zeroui.sh #!/bin/bash sudo -i cd zero-ui nohup yarn dev…
Hemant
  • 1
  • 1
  • 3
0
votes
3 answers

Why is setting 'echo V > /dev/watchdog1' not working when inside a 'systemd' service?

If I manually stop my service and then execute echo V > /dev/watchdog1, the watchdog stops properly. If I do the same echo command in my systemd service, I get: watchdog did not stop! ExecStopPost=echo V > /dev/watchdog1 Why is the behavior not…
David
  • 1,241
  • 20
  • 36
0
votes
1 answer

Systemd unit file escaping issue

I am wanting to generate a secret key for a django project, that runs using podman run --new, so it generates a new container from scratch when the machine is restarted. I have the following bash code, which runs correctly in a terminal, but I…
miller the gorilla
  • 860
  • 1
  • 7
  • 19
0
votes
0 answers

What to consider when writing distribution-independent Linux applications?

I wish to write a graphical tool with which one could configure and query information about a Linux system. In order to achieve some independence from the underlying Linux distribution, I am planning to require that the target system uses systemd,…
reign
  • 71
  • 6
0
votes
1 answer

System service job I created isn't running properly

I created a system service file the I want to execute a command whenever the program stops running or or computer restarts. I want "pocket start" to run always. When I type it in the terminal, it kicks off a job that runs in the background that…
0
votes
1 answer

Docker container failing with "failed to start a thread for the new session" error

I have created a web crawling solution using python and selenium which is running inside a docker container in a m4.2xlarge EC2 instance. It also uses multiprocessing with Pool method with Pool(processes=(config.no_of_cpus)) as pool: …
Saurabh Saxena
  • 3,005
  • 10
  • 31
  • 46
0
votes
1 answer

Docker container list shows empty after reboot the linux server (rhel 8)

I have configured podman with systemd service in my Linux server(rhel 8). I have enabled the automatic restart option to the container after rebooting the Linux server(rhel 8) followed these…
Elango R
  • 137
  • 8