Skip to content
Permalink
Browse files

system-syslog: T1938: Firewall logging not working

  • Loading branch information
hagbard-01 committed Jan 7, 2020
1 parent c05063b commit 3863e5dc24a622090f52c13f8aa04e5c9f00341a
Showing with 5 additions and 8 deletions.
  1. +5 −8 src/conf_mode/system-syslog.py
@@ -19,6 +19,7 @@
import sys
import os
import re
import subprocess
import jinja2

from vyos.config import Config
@@ -313,15 +314,11 @@ def verify(c):


def apply(c):
if not c and os.path.exists('/var/run/rsyslogd.pid'):
os.system("sudo systemctl stop syslog.socket")
os.system("sudo systemctl stop rsyslog")
else:
if not os.path.exists('/var/run/rsyslogd.pid'):
os.system("sudo systemctl start rsyslog >/dev/null")
else:
os.system("sudo systemctl restart rsyslog >/dev/null")
if not c:
subprocess.call(['sudo', 'systemctl', 'stop', 'syslog'])
return 0

subprocess.call(['sudo', 'systemctl', 'restart', 'syslog'])

if __name__ == '__main__':
try:

0 comments on commit 3863e5d

Please sign in to comment.
You can’t perform that action at this time.