passing -t to newsyslog
Chris Stankevitz
chris at stankevitz.com
Wed Feb 22 02:36:19 UTC 2017
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
More information about the freebsd-questions
mailing list