From 50d1e137a5fdad0c253fe9882f86030b7abc6b2b Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 18 Apr 2025 19:49:48 +0200 Subject: syslog: T7367: ensure rsyslog is registered as default systemd syslog service Systemd states: The default syslog implementation should make syslog.service a symlink to itself, so that this socket activates the right actual syslog service. --- smoketest/scripts/cli/test_system_syslog.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'smoketest/scripts/cli') diff --git a/smoketest/scripts/cli/test_system_syslog.py b/smoketest/scripts/cli/test_system_syslog.py index 6eae3f19d..f3e1f65ea 100755 --- a/smoketest/scripts/cli/test_system_syslog.py +++ b/smoketest/scripts/cli/test_system_syslog.py @@ -14,6 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +import os import unittest from base_vyostest_shim import VyOSUnitTestSHIM @@ -59,6 +60,11 @@ class TestRSYSLOGService(VyOSUnitTestSHIM.TestCase): self.cli_delete(base_path) self.cli_commit() + # The default syslog implementation should make syslog.service a + # symlink to itself + self.assertEqual(os.readlink('/etc/systemd/system/syslog.service'), + '/lib/systemd/system/rsyslog.service') + # Check for running process self.assertFalse(process_named_running(PROCESS_NAME)) -- cgit v1.2.3