Skip to content

Commit

Permalink
Add a line to set the TZ variable in the env before spawning zonemind…
Browse files Browse the repository at this point in the history
…er. This prevents /etc/localtime from being stat'd on every logging call.
  • Loading branch information
connortechnology committed Sep 29, 2016
1 parent ef6b3d0 commit 8d6217f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc/zoneminder.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ExecStart=@BINDIR@/zmpkg.pl start
ExecReload=@BINDIR@/zmpkg.pl restart
ExecStop=@BINDIR@/zmpkg.pl stop
PIDFile="@ZM_RUNDIR@/zm.pid"
Environment=TZ=:/etc/localtime

[Install]
WantedBy=multi-user.target
Expand Down

0 comments on commit 8d6217f

Please sign in to comment.