summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-07-24 12:40:14 -0700
committerhagbard <vyosdev@derith.de>2018-07-24 12:40:14 -0700
commit8c44fa7fb35f8f42621de06f8a8db5db5a83c193 (patch)
treee4f2d34d8c660c2ef664c0a3c201f890893d81de /src
parentfc4d5bc4a4ab3ebdf059fef6310cc9ea2a532594 (diff)
downloadvyos-1x-8c44fa7fb35f8f42621de06f8a8db5db5a83c193.tar.gz
vyos-1x-8c44fa7fb35f8f42621de06f8a8db5db5a83c193.zip
T736: import order changed, invoke-rc.d replaced by systemctl command
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/syslog.py4
1 files changed, 2 insertions, 2 deletions
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: