Skip to main content

New answers tagged

0 votes

Service start request repeated too quickly, refusing to start limit

In my case, running Saltstack to install the package, copy files and start the service, the root cause was the configuration file for the service needing to have rw------- (0600) permissions. I was ...
user67073's user avatar
0 votes

get notification when systemd-monitored service enters failed state

The OnFailure= service way is the most "systemd way" I think. Other ways: ExecStopPost= will execute after the service is stopped, where you can then check $SERVICE_RESULT with bash. ...
qwr's user avatar
  • 111
1 vote

Wait to start an app running on one server until another app on another server is fully up and running

You can't rely on Systemd solving this for you; systemd is only aware of what happens locally. You have two alternatives: Modify your application to enter a waiting state while checking if the ...
vidarlo's user avatar
  • 10.2k
0 votes

systemd-cryptenroll for LUKS volume with detached header

cryptenroll can be executed on header itself systemd-cryptenroll --tpm2-device=auto /boot/header.img If that didn't work you can try: Use luksOpen to open partition cryptsetup -q luksOpen "${...
avi9526's user avatar
  • 175
0 votes

In RHEL how does one set a default global DNS server using systemd NetworkManager instead of on a per nmcli connection basis?

Did you check the Red Hat Enterprise Linux documentation? It has an entire chapter covering this. Chapter 21. Manually configuring the /etc/resolv.conf file By default, NetworkManager dynamically ...
Esa Jokinen's user avatar
0 votes

How to run a command as systemd DynamicUser

nsenter can be easier to use than systemd-run as you don't have to repeat all the properties from the service file back to command line. This requires the service to be running. sudo nsenter -ae -S ...
balki's user avatar
  • 133

Top 50 recent answers are included