Skip to content

Commit c75bc5a

Browse files
committed
fix: add init: false to config.yaml to fix s6-overlay v3 startup crash
s6-overlay v3 (used in HA base images) requires running as PID 1. Docker's default --init flag prevented this, causing: 's6-overlay-suexec: fatal: can only run as pid 1' Setting init: false in config.yaml disables Docker's default init so s6 correctly runs as PID 1. Dockerfile reverted to simple CMD. Ref: https://developers.home-assistant.io/blog/2022/05/12/s6-overlay-base-images/ Bump version to 0.2.3.
1 parent 9a3abd6 commit c75bc5a

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

meshcentral/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ RUN apk add --no-cache nodejs npm jq
77
# Install MeshCentral
88
RUN npm install -g meshcentral
99

10-
# Set up s6 service
11-
RUN mkdir -p /etc/services.d/meshcentral
12-
COPY run.sh /etc/services.d/meshcentral/run
13-
RUN chmod a+x /etc/services.d/meshcentral/run
10+
# Copy startup script
11+
COPY run.sh /run.sh
12+
RUN chmod a+x /run.sh
13+
14+
CMD ["/run.sh"]

meshcentral/config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "MeshCentral",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"slug": "meshcentral",
55
"description": "Self-hosted remote device management — monitor and control your PCs from Home Assistant",
66
"url": "https://github.com/andlo/ha-meshcentral-addon",
77
"arch": ["aarch64", "amd64", "armhf", "armv7", "i386"],
88
"startup": "application",
99
"boot": "auto",
10+
"init": false,
1011
"ports": {
1112
"443/tcp": 4430,
1213
"4433/tcp": 4433

0 commit comments

Comments
 (0)