0

I would like to make sure all our services have Restart=always.

A list of services with the Restart value would be fine too, I could use grep on that.

bbigras
  • 276
  • 1
  • 7

1 Answers1

0

Use drop-in config files to override this value.

For unit thing.service create /etc/systemd/system/thing.service.d/restart.conf containing

[Service]
Restart=always
John Mahowald
  • 32,050
  • 2
  • 19
  • 34
  • My question is more about if there's a command line tool to get the current value of the restart attribute. So I can easily audit that it's set correctly system wide. – bbigras Jun 04 '20 at 21:42