Skip to content

Commit a11d539

Browse files
authored
fix(healthcheck): pgrep is not available (#20)
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
1 parent 5ae0a16 commit a11d539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apt-get update \
1212
&& rm -rf /var/lib/apt/lists/* \
1313
&& chmod +x /usr/local/bin/*
1414

15-
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD pgrep -f openvpn || exit 1
15+
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD grep -q openvpn /proc/1/cmdline || exit 1
1616

1717
EXPOSE 1194/udp
1818

0 commit comments

Comments
 (0)