From 74e5d2f8254e3b3c43136321c6ec16f73668de8b Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 18 Aug 2024 09:39:38 +0300 Subject: [PATCH] systemd/reflector: restart on failure --- etc/systemd/system/reflector.service.d/restart-on-failure.conf | 1 + etc/systemd/system/service.d/restart-on-failure.conf | 3 +++ 2 files changed, 4 insertions(+) create mode 120000 etc/systemd/system/reflector.service.d/restart-on-failure.conf create mode 100644 etc/systemd/system/service.d/restart-on-failure.conf diff --git a/etc/systemd/system/reflector.service.d/restart-on-failure.conf b/etc/systemd/system/reflector.service.d/restart-on-failure.conf new file mode 120000 index 00000000..d33410dd --- /dev/null +++ b/etc/systemd/system/reflector.service.d/restart-on-failure.conf @@ -0,0 +1 @@ +../service.d/restart-on-failure.conf \ No newline at end of file diff --git a/etc/systemd/system/service.d/restart-on-failure.conf b/etc/systemd/system/service.d/restart-on-failure.conf new file mode 100644 index 00000000..f7e514d4 --- /dev/null +++ b/etc/systemd/system/service.d/restart-on-failure.conf @@ -0,0 +1,3 @@ +[Service] +Restart=on-failure +RestartSec=5s