Setting the TZ ENV variable prevents every gettimeofday call from reading /etc/timezone
This commit is contained in:
parent
2d749f0b66
commit
c9d7087c91
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue