Skip to content
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/
@@ -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/'):
os.system("sudo systemctl stop syslog.socket")
os.system("sudo systemctl stop rsyslog")
if not os.path.exists('/var/run/'):
os.system("sudo systemctl start rsyslog >/dev/null")
os.system("sudo systemctl restart rsyslog >/dev/null")
if not c:['sudo', 'systemctl', 'stop', 'syslog'])
return 0['sudo', 'systemctl', 'restart', 'syslog'])

if __name__ == '__main__':

0 comments on commit 3863e5d

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