diff options
author | Matthew Seaman <matthew@FreeBSD.org> | 2020-07-23 04:32:28 +0800 |
---|---|---|
committer | Matthew Seaman <matthew@FreeBSD.org> | 2020-07-23 04:32:28 +0800 |
commit | 12bb4bd7e6bad6628fe2ae3d023a0f10f1a9566b (patch) | |
tree | 0913f20f0e559cb17fc0bcbfcfc4a9d4e271d3c3 /sysutils | |
parent | c75505eec300ca6b8b54fd90ee26630dcb927d82 (diff) | |
download | freebsd-ports-gnome-12bb4bd7e6bad6628fe2ae3d023a0f10f1a9566b.tar.gz freebsd-ports-gnome-12bb4bd7e6bad6628fe2ae3d023a0f10f1a9566b.tar.zst freebsd-ports-gnome-12bb4bd7e6bad6628fe2ae3d023a0f10f1a9566b.zip |
Prevent rsyslogd from writing log messages about TZ being unset in the
environment.
This is a putely cosmetic change, as the default behaviour according
to tzset(3) is:
```
If TZ does not appear in the environment, the best available
approximation to local wall clock time, as specified by the
tzfile(5)-format file /etc/localtime is used.
```
Slightly modified from the patch supplied by zi to use the rc.subr(8)
'${name}_env' variable.
PR: 248185
Submitted by: zi
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/rsyslog8/Makefile | 1 | ||||
-rw-r--r-- | sysutils/rsyslog8/files/rsyslogd.in | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sysutils/rsyslog8/Makefile b/sysutils/rsyslog8/Makefile index cd783a3bd1d8..5575bdd65816 100644 --- a/sysutils/rsyslog8/Makefile +++ b/sysutils/rsyslog8/Makefile @@ -2,6 +2,7 @@ PORTNAME= rsyslog PORTVERSION= 8.2006.0 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.rsyslog.com/files/download/rsyslog/ diff --git a/sysutils/rsyslog8/files/rsyslogd.in b/sysutils/rsyslog8/files/rsyslogd.in index 8730470c65fc..bad242536ed7 100644 --- a/sysutils/rsyslog8/files/rsyslogd.in +++ b/sysutils/rsyslog8/files/rsyslogd.in @@ -17,6 +17,7 @@ load_rc_config $name : ${rsyslogd_enable:="NO"} : ${rsyslogd_pidfile:="/var/run/rsyslogd.pid"} : ${rsyslogd_config:="%%PREFIX%%/etc/rsyslog.conf"} +: ${rsyslogd_env:="TZ=/etc/localtime"} pidfile="${rsyslogd_pidfile}" command_args="-i ${pidfile} -f ${rsyslogd_config}" required_files="${rsyslogd_config}" |