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:
@@ -13,10 +13,6 @@ server pool.ntp.org iburst
|
|||||||
# Local stratum for this server
|
# Local stratum for this server
|
||||||
local stratum 10
|
local stratum 10
|
||||||
|
|
||||||
# Log settings
|
|
||||||
logdir /var/log/chrony
|
|
||||||
log measurements statistics tracking
|
|
||||||
|
|
||||||
# Key file for authentication (optional)
|
# Key file for authentication (optional)
|
||||||
# keyfile /etc/chrony/chrony.keys
|
# keyfile /etc/chrony/chrony.keys
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -62,7 +62,9 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
cell-network:
|
cell-network:
|
||||||
ipv4_address: 172.20.0.5
|
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
|
# Email Server - Postfix + Dovecot
|
||||||
mail:
|
mail:
|
||||||
|
|||||||
Reference in New Issue
Block a user