Date: Tue, 21 Feb 2017 18:36:17 -0800 From: Chris Stankevitz <chris@stankevitz.com> To: Polytropon <freebsd@edvax.de> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: passing -t to newsyslog Message-ID: <269158b4-7b03-a509-adf7-7aab106a8dbf@stankevitz.com> In-Reply-To: <20170222033008.6550f098.freebsd@edvax.de> References: <37474b63-e395-b1e2-6dcf-114dfaa36fc1@stankevitz.com> <20170222033008.6550f098.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2/21/17 6:30 PM, Polytropon wrote: > Configure newsyslog command line flags as intended by addind an > entry to /etc/rc.conf, for example: > > newsyslog_enable="YES" > newsyslog_flags="-t <format>" > > See /etc/defaults/rc.conf for newsyslog-related examples. Maybe > you also want to add the options -C and -N (which are the default > if you don't specify anything) because /etc/rc.conf will override > (instead of append to) the settings in /etc/defaults/rc.conf. > See "man rc.conf" and "man newsyslog" for details. There is > also /etc/newsyslog.conf for settings you might want to tweak. Polytropon, I want "-t" to be passed when newsyslog is run hourly... not when it is run once when the system boots for the purpose of creating log files. Per "man rc.conf": newsyslog_enable is used to run newsyslog one time at boot to create missing log files. newsyslog_enable does not cause newsyslog to continuously run. Per /etc/crontab: newsyslog is run periodically via en entry in /etc/crontab. newsyslog is called without any arguments. Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?269158b4-7b03-a509-adf7-7aab106a8dbf>