Questions tagged [systemd]

systemd is a modern replacement for the traditional Linux init. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

systemd, created by Lennart Poettering and Kay Sievers, is a modern replacement for the traditional Linux init, whether System-V or BSD-style initscripts. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

1471 questions
0
votes
2 answers

Can another process signal systemd to restart a service?

We have a service which is managed by systemd. I'm looking for a way to programatically restart that service on demand - for instance, by sending a signal, writing to a file, or messaging over a socket. Context: the systemd managed service maintains…
Nathan Long
  • 1,545
  • 7
  • 22
  • 38
0
votes
1 answer

Is it possible for a systemd service to update itself?

Hey faultless server folks, I'd like to write a systemd service that can update itself. Specifically, every 5 minutes it should look at Amazon S3 for new versions of its binary and .service files. If they've been updated, it should download and…
0
votes
0 answers

Why is this self-made systemd service failed on CentOS 8.3 as "Failed with result 'protocol'"?

First, this issue becomes a problem only on CentOS8, while it works well on CentOS7. This is the version: # cat /etc/redhat-release CentOS Linux release 8.3.2011 I tried to make a service to execute bash commands to change route. Here is the…
George Y
  • 528
  • 6
  • 16
0
votes
1 answer

How to restart a web application via SystemD if not responding?

When using Supervisor there are a couple of plugins available that are able to restart an application if it's using to much memory (-> memory leak at e.g. some Java-tools) or if the application is not responding (even though it's not officially…
frlan
  • 573
  • 1
  • 8
  • 27
0
votes
0 answers

System failed, please help me interpret last console messages (screen capture)

This server runs several processes of satellite imagery, it has 256GB of RAM, 12TB disk, 64 CPU cores Intel(R) Xeon(R) Gold 6226R CPU @ 2.90GHz. It should not fail with this charge but it does sometimes. This is a screen capture of a typical…
0
votes
1 answer

How can I artificially induce corrupt ext4 filesystem without data loss?

I am trying to deal with a very rare corner case where my system has a minor corruption in the ext4 filesystem. This trigger systemd's emergency.service and I am trying to alter the behavior of it to automatically fix the fs. Anyhow, is there any…
Liam Kelly
  • 124
  • 6
0
votes
1 answer

Networkctl: Manual VLAN IP Link

I've a network interface eth0 that carries my main network as untagged traffic and a "management" network with tagged traffic with the id 18. This is how it's…
TCB13
  • 1,166
  • 1
  • 14
  • 34
0
votes
2 answers

systemd service definition for SAP (or any other application) start

I have issues to configure a systemd service for starting and stopping SAP (or any other appliaction). I am new to configuring systemd services and please have mercy asking "stupid" questions. What I want/plan: The appliaction in this case SAP is…
Franz
  • 3
  • 2
0
votes
0 answers

How to configure service log format?

I have a service, for example : [Unit] Description=My…
bux
  • 626
  • 2
  • 6
  • 20
0
votes
0 answers

How can I make postgres startup on connection - and shutdown after a period of being out of use?

In the day time I do software development where I use Postgres via Django on Ubuntu. In the evening the computer is my personal laptop (still running Ubuntu). How can I make Postgres startup when it receives a connection, and shut down if there is…
Stuart Axon
  • 101
  • 1
0
votes
1 answer

How to constraint already running interactive processes with cgroup2

My home-server is running some aged hardware (Core i5-3450, software RAID1 on SATA disks) and often has problems when I run performance-intensive things like a compile-job besides "normal" services that run in the background (DNS, Web, DHCP, Mail,…
0
votes
0 answers

Using systemd-run To Limit I/O on cPanel for Grep Command

When I run the grep command on Linux on my cPanel-based shared hosting account, I hit an I/O resource limit, it says on the cPanel. I tried to research how to limit resources on a command that I run and came across systemd-run. I don't know if…
ServerChecker
  • 1,518
  • 2
  • 14
  • 35
0
votes
1 answer

Systemd service for Sinatra + Thin keeps restarting

I have systemd service for a Sinatra app running with Thin server behind an Nginx reverse proxy. It works fine but because it receives a lot of traffic i'm seeing a lot of nginx errors about being unable to connect to upstream. Upon inspecting the…
Julien
  • 242
  • 1
  • 3
  • 13
0
votes
1 answer

systemd RequiresMountsFor multiline syntax

I know that this is a valid systemd unit configuration file syntax: [Unit] RequiresMountsFor=/mnt/foo /mnt/bar ... Recently, I've seen a multiline variant of the above: [Unit] RequiresMountsFor=/mnt/foo RequiresMountsFor=/mnt/bar ... Are these two…
Attila Csipak
  • 143
  • 1
  • 10
0
votes
1 answer

Multiple instances of systemd unit not writing to log files

I'm trying to create a systemd unit file that will take an argument for a php script. The small php script: Devs are working on the real script. All I…
DevOpsSauce
  • 348
  • 1
  • 5
  • 22