fix: cell-ntp restart loop — add SYS_TIME cap, clear stale PID, remove log perms

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 14:37:56 -04:00
parent cbdefbd110
commit 03d100b776
2 changed files with 3 additions and 5 deletions
-4
View File
@@ -13,10 +13,6 @@ server pool.ntp.org iburst
# Local stratum for this server
local stratum 10
# Log settings
logdir /var/log/chrony
log measurements statistics tracking
# Key file for authentication (optional)
# keyfile /etc/chrony/chrony.keys
+3 -1
View File
@@ -62,7 +62,9 @@ services:
networks:
cell-network:
ipv4_address: 172.20.0.5
command: ["/bin/sh", "-c", "apk add --no-cache chrony && exec chronyd -d -f /etc/chrony/chrony.conf -n"]
cap_add:
- SYS_TIME
command: ["/bin/sh", "-c", "apk add --no-cache chrony && rm -f /var/run/chrony/chronyd.pid && exec chronyd -d -f /etc/chrony/chrony.conf -n"]
# Email Server - Postfix + Dovecot
mail: