Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2017 21:19:40 -0600
From:      Adam Vande More <amvandemore@gmail.com>
To:        Chris Stankevitz <chris@stankevitz.com>
Cc:        Polytropon <freebsd@edvax.de>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: passing -t to newsyslog
Message-ID:  <CA%2BtpaK2-KU_eptu9Yi-C2Q1-6V6Qds_4dXpuVd%2B43ypnMCYR3A@mail.gmail.com>
In-Reply-To: <269158b4-7b03-a509-adf7-7aab106a8dbf@stankevitz.com>
References:  <37474b63-e395-b1e2-6dcf-114dfaa36fc1@stankevitz.com> <20170222033008.6550f098.freebsd@edvax.de> <269158b4-7b03-a509-adf7-7aab106a8dbf@stankevitz.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 21, 2017 at 8:36 PM, Chris Stankevitz <chris@stankevitz.com>
wrote:

>
> 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.


There is no law preventing you from editing /etc/crontab.  I imagine that
bit of advice is there so the system's crontab isn't broken.

Setting correct locale may also fulfill your desires assuming LC_TIME is
read.

-- 
Adam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BtpaK2-KU_eptu9Yi-C2Q1-6V6Qds_4dXpuVd%2B43ypnMCYR3A>