From 8c44fa7fb35f8f42621de06f8a8db5db5a83c193 Mon Sep 17 00:00:00 2001 From: hagbard Date: Tue, 24 Jul 2018 12:40:14 -0700 Subject: T736: import order changed, invoke-rc.d replaced by systemctl command --- src/conf_mode/syslog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/conf_mode/syslog.py b/src/conf_mode/syslog.py index 3cfc0e5ff..e4101a13b 100755 --- a/src/conf_mode/syslog.py +++ b/src/conf_mode/syslog.py @@ -18,8 +18,8 @@ import sys import os -import jinja2 import re +import jinja2 from vyos.config import Config from vyos import ConfigError @@ -254,7 +254,7 @@ def apply(c): if os.path.exists('/etc/rsyslog.d/vyatta-log.conf'): os.remove('/etc/rsyslog.d/vyatta-log.conf') - os.system("sudo invoke-rc.d rsyslog restart >/dev/null") + os.system("sudo systemctl restart rsyslog >/dev/null") if __name__ == '__main__': try: -- cgit v1.2.3