Setting the TZ ENV variable prevents every gettimeofday call from reading /etc/timezone

This commit is contained in:
Isaac Connor 2015-10-01 11:47:12 -04:00
parent 2d749f0b66
commit c9d7087c91
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ command="$ZM_PATH_BIN/zmpkg.pl"
start() { start() {
echo -n "Starting $prog: " echo -n "Starting $prog: "
export TZ=:/etc/localtime
mkdir -p "$RUNDIR" && chown www-data:www-data "$RUNDIR" mkdir -p "$RUNDIR" && chown www-data:www-data "$RUNDIR"
mkdir -p "$TMPDIR" && chown www-data:www-data "$TMPDIR" mkdir -p "$TMPDIR" && chown www-data:www-data "$TMPDIR"
$command start $command start

View File

@ -23,6 +23,7 @@ command="$ZM_PATH_BIN/zmpkg.pl"
start() { start() {
echo -n "Starting $prog: " echo -n "Starting $prog: "
export TZ=:/etc/localtime
mkdir -p $RUNDIR && chown www-data:www-data $RUNDIR mkdir -p $RUNDIR && chown www-data:www-data $RUNDIR
mkdir -p $TMPDIR && chown www-data:www-data $TMPDIR mkdir -p $TMPDIR && chown www-data:www-data $TMPDIR
$command start $command start