From dcc685616bd79ff0148aee2c280623662a1ba05a Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Wed, 26 Apr 2023 19:03:26 +0200 Subject: [PATCH] sockets and targets are now not restarted on changes --- plugins/modules/socket.py | 1 + plugins/modules/target.py | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/modules/socket.py b/plugins/modules/socket.py index 8ad9263..a479537 100644 --- a/plugins/modules/socket.py +++ b/plugins/modules/socket.py @@ -41,6 +41,7 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore ), required_one_of=(("stream", "datagram", "sequential", "fifo"),), ) + restartable = False def prepare(self): self.unitfile = (SYSTEMD_SERVICE_CONFIG / self.get("name")).with_suffix(".socket") diff --git a/plugins/modules/target.py b/plugins/modules/target.py index 8e275ce..6372383 100644 --- a/plugins/modules/target.py +++ b/plugins/modules/target.py @@ -27,6 +27,7 @@ class TargetModule(SystemdUnitModule, SystemdReloadMixin): ), ), ) + restartable = False def prepare(self): self.unitfile = (SYSTEMD_SERVICE_CONFIG / self.get("name")).with_suffix(".target")