From e01547cbe497794ade2e3f9e9abc9eb3d98bc386 Mon Sep 17 00:00:00 2001 From: Sander Alberink Date: Fri, 5 Feb 2016 14:08:43 +0100 Subject: [PATCH] Update timezone to GMT, reduce SHM requirement to 512M Increase the SHM to 2048 if you need to support H.264 cameras --- utils/docker/phpdate.ini | 2 +- utils/docker/start.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/docker/phpdate.ini b/utils/docker/phpdate.ini index 50f2cca0f..d35b47361 100644 --- a/utils/docker/phpdate.ini +++ b/utils/docker/phpdate.ini @@ -1,5 +1,5 @@ [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone -date.timezone = Europe/Amsterdam +date.timezone = GMT diff --git a/utils/docker/start.sh b/utils/docker/start.sh index 4b6c0e379..0772f7b9b 100644 --- a/utils/docker/start.sh +++ b/utils/docker/start.sh @@ -1,8 +1,10 @@ #!/bin/bash # Prepare proper amount of shared memory +# For H.264 cameras it may be necessary to increase the amout of shared memory +# to 2048 megabytes. umount /dev/shm -mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=2048M tmpfs /dev/shm +mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=512M tmpfs /dev/shm # Start MySQL /usr/bin/mysqld_safe &