Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit c4da24d

Browse files
committed
#102: Adds timezone handling to systemd unit file template.
1 parent e04b3ec commit c4da24d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Summary of release changes.
2121
- Adds `inspect`, `reload` and `top` Makefile targets.
2222
- Adds improved `clean` Makefile target; includes exited containers and dangling images.
2323
- Adds lock/state file to wrapper script.
24-
- Adds `SYSTEM_TIMEZONE` handling to Makefile, scmi and docker-compose templates.
24+
- Adds `SYSTEM_TIMEZONE` handling to Makefile, scmi, systemd unit and docker-compose templates.
2525
- Adds system time zone validation to healthcheck.
2626
- Removes support for long image tags (i.e. centos-7-2.x.x).
2727

src/etc/systemd/system/centos-ssh-memcached@.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Environment="MEMCACHED_OPTIONS=-U 0"
6464
Environment="SYSCTL_NET_CORE_SOMAXCONN=1024"
6565
Environment="SYSCTL_NET_IPV4_IP_LOCAL_PORT_RANGE=1024 65535"
6666
Environment="SYSCTL_NET_IPV4_ROUTE_FLUSH=1"
67+
Environment="SYSTEM_TIMEZONE=UTC"
6768

6869
# Initialisation: Load image from local storage if available, otherwise pull.
6970
ExecStartPre=/bin/bash -c \
@@ -127,6 +128,7 @@ ExecStart=/bin/bash -c \
127128
--env \"MEMCACHED_CACHESIZE=${MEMCACHED_CACHESIZE}\" \
128129
--env \"MEMCACHED_MAXCONN=${MEMCACHED_MAXCONN}\" \
129130
--env \"MEMCACHED_OPTIONS=${MEMCACHED_OPTIONS}\" \
131+
--env \"SYSTEM_TIMEZONE=${SYSTEM_TIMEZONE}\" \
130132
$(if [[ ${DOCKER_PORT_MAP_TCP_11211} != NULL ]]; \
131133
then \
132134
if /bin/grep -qE \

0 commit comments

Comments
 (0)