summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-04-18 19:51:53 +0200
committerChristian Breunig <christian@breunig.cc>2025-04-18 19:54:12 +0200
commitb5406516ccd845eeb3b33529b31ca81a319f16d7 (patch)
tree01aea1d20fc8bea176b8b309349f05eee179b138 /src
parent50d1e137a5fdad0c253fe9882f86030b7abc6b2b (diff)
downloadvyos-1x-b5406516ccd845eeb3b33529b31ca81a319f16d7.tar.gz
vyos-1x-b5406516ccd845eeb3b33529b31ca81a319f16d7.zip
syslog: T7367: use generic systemd syslog.service over rsyslog.service
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/system_host-name.py2
-rwxr-xr-xsrc/conf_mode/system_syslog.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/system_host-name.py b/src/conf_mode/system_host-name.py
index fef034d1c..de4accda2 100755
--- a/src/conf_mode/system_host-name.py
+++ b/src/conf_mode/system_host-name.py
@@ -175,7 +175,7 @@ def apply(config):
# Restart services that use the hostname
if hostname_new != hostname_old:
- tmp = systemd_services['rsyslog']
+ tmp = systemd_services['syslog']
call(f'systemctl restart {tmp}')
# If SNMP is running, restart it too
diff --git a/src/conf_mode/system_syslog.py b/src/conf_mode/system_syslog.py
index 414bd4b6b..bdab09f3c 100755
--- a/src/conf_mode/system_syslog.py
+++ b/src/conf_mode/system_syslog.py
@@ -35,7 +35,7 @@ rsyslog_conf = '/run/rsyslog/rsyslog.conf'
logrotate_conf = '/etc/logrotate.d/vyos-rsyslog'
systemd_socket = 'syslog.socket'
-systemd_service = systemd_services['rsyslog']
+systemd_service = systemd_services['syslog']
def get_config(config=None):
if config: