From c8927cc6bb45a41c3cfe911ae62468fe5eb7149d Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Sun, 15 Sep 2013 22:01:50 +0800 Subject: [PATCH] Amend syslog config (remove need to chmod) --- server-configs/README.txt | 1 - server-configs/rsyslog.d/30-mctxserv.conf | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server-configs/README.txt b/server-configs/README.txt index f7f00ef..2b1c107 100644 --- a/server-configs/README.txt +++ b/server-configs/README.txt @@ -2,4 +2,3 @@ To get syslog and nginx to work correctly: * Update nginx with the latest config file * Copy the config file to /etc/rsyslog.d/ * Restart rsyslog with /etc/init.d/rsyslog restart -* chmod the log file: chmod 644 /var/log/mctxserv.log diff --git a/server-configs/rsyslog.d/30-mctxserv.conf b/server-configs/rsyslog.d/30-mctxserv.conf index 8798b6f..ff4b097 100644 --- a/server-configs/rsyslog.d/30-mctxserv.conf +++ b/server-configs/rsyslog.d/30-mctxserv.conf @@ -1 +1,3 @@ +$FileCreateMode 0644 if $programname == 'mctxserv' then /var/log/mctxserv.log +$FileCreateMode 0640 -- 2.20.1