From 85b7b4fea9a5e9fdcfe138ec1f1816594fee70ea Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sun, 14 May 2023 12:50:33 +0100 Subject: T5224: Stop syslog.socket alongside syslog.service Avoids the following warning, and any external service from re-activating syslog via systemd socket activation: frebib@vyos# commit [ system syslog ] DEBUG/COMMAND returned (err): Warning: Stopping syslog.service, but it can still be activated by: syslog.socket DEBUG/COMMAND cmd 'systemctl stop syslog.service' Signed-off-by: Joe Groocock --- src/conf_mode/system-syslog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/conf_mode') diff --git a/src/conf_mode/system-syslog.py b/src/conf_mode/system-syslog.py index 4995ccb40..cf34bad2e 100755 --- a/src/conf_mode/system-syslog.py +++ b/src/conf_mode/system-syslog.py @@ -126,9 +126,10 @@ def generate(syslog): return None def apply(syslog): + systemd_socket = 'syslog.socket' systemd_service = 'syslog.service' if not syslog: - call(f'systemctl stop {systemd_service}') + call(f'systemctl stop {systemd_service} {systemd_socket}') return None # we need to restart the service if e.g. the VRF name changed -- cgit v1.2.3