From: Jeremy Tan Date: Sun, 15 Sep 2013 14:01:50 +0000 (+0800) Subject: Amend syslog config (remove need to chmod) X-Git-Url: https://git.ucc.asn.au/?p=matches%2FMCTX3420.git;a=commitdiff_plain;h=c8927cc6bb45a41c3cfe911ae62468fe5eb7149d Amend syslog config (remove need to chmod) --- 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