From 39dffa89390955cf256da28a5bbf6ef78794b5d0 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 4 Jan 2024 12:35:48 +0200 Subject: [PATCH] systemd service.d: move common explanations from never-fail.conf to README.md --- etc/systemd/system/service.d/README.md | 11 +++++++++++ etc/systemd/system/service.d/never-fail.conf | 3 --- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 etc/systemd/system/service.d/README.md diff --git a/etc/systemd/system/service.d/README.md b/etc/systemd/system/service.d/README.md new file mode 100644 index 00000000..12e5082a --- /dev/null +++ b/etc/systemd/system/service.d/README.md @@ -0,0 +1,11 @@ +# systemd unit overrides + +These are meant to be in `/etc/systemd/system/whatever.service.d/` and thus +override the behaviour of the unit either in `/etc/systemd/system` or +`/lib/systemd/system`. + +See `../*.d/` for services that either symlink here or other inspiration for +using overrides. + +**_DON'T PLACE THESE IN ACTUAL `/etc/systemd/system/service.d` OR THEY MIGHT +AFFECT ALL SERVICES CAUSING UNEXPECTED BEHAVIOUR!_** diff --git a/etc/systemd/system/service.d/never-fail.conf b/etc/systemd/system/service.d/never-fail.conf index ef36dc7a..f2a53613 100644 --- a/etc/systemd/system/service.d/never-fail.conf +++ b/etc/systemd/system/service.d/never-fail.conf @@ -1,6 +1,3 @@ -# This file stops services from failing and will keep attempting to always -# restart them. Regardless of the location in my dotfiles, I would not place -# it here in the actual /etc [Service] Restart=always RestartSec=5s