From 1a54a15fbb8f5f8d21820e7996376e6a4910dd04 Mon Sep 17 00:00:00 2001 From: Hong Hung Date: Wed, 24 Jan 2024 02:39:06 -0800 Subject: [PATCH] changed quit to point to a script that calls docker to kill the process --- Dockerfile | 1 + executables/quitBwb/quitBwb-linux_arm64 | Bin executables/quitBwb/quitBwb-linux_armhf | Bin executables/quitBwb/quitBwb-mac_x64 | Bin executables/quitBwb/quitBwb-win_x64.exe | Bin executables/quitBwb/resources.neu | Bin 35859 -> 35845 bytes scripts/killBwb.sh | 5 +++++ 7 files changed, 6 insertions(+) mode change 100644 => 100755 executables/quitBwb/quitBwb-linux_arm64 mode change 100644 => 100755 executables/quitBwb/quitBwb-linux_armhf mode change 100644 => 100755 executables/quitBwb/quitBwb-mac_x64 mode change 100644 => 100755 executables/quitBwb/quitBwb-win_x64.exe create mode 100755 scripts/killBwb.sh diff --git a/Dockerfile b/Dockerfile index 553dfd38..9e64e44c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -170,6 +170,7 @@ COPY dev-files/geany/ /root/.config/ COPY scripts/setExecutablesArch.sh /usr/local/bin/setExecutablesArch.sh RUN setExecutablesArch.sh /usr/local/bin/executables $TARGETARCH +COPY scripts/killBwb.sh /usr/local/bin/killBwb.sh WORKDIR /data CMD /startup.sh && /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf diff --git a/executables/quitBwb/quitBwb-linux_arm64 b/executables/quitBwb/quitBwb-linux_arm64 old mode 100644 new mode 100755 diff --git a/executables/quitBwb/quitBwb-linux_armhf b/executables/quitBwb/quitBwb-linux_armhf old mode 100644 new mode 100755 diff --git a/executables/quitBwb/quitBwb-mac_x64 b/executables/quitBwb/quitBwb-mac_x64 old mode 100644 new mode 100755 diff --git a/executables/quitBwb/quitBwb-win_x64.exe b/executables/quitBwb/quitBwb-win_x64.exe old mode 100644 new mode 100755 diff --git a/executables/quitBwb/resources.neu b/executables/quitBwb/resources.neu index 87e7dcaa801b52768c00d332a2c950fdff9b3aca..5eaffc0dfaca5a915890bd8ec1c5f672ee18de18 100644 GIT binary patch delta 209 zcmbO{gQ;}}(}oxpW+O|>$?+^U4yMV82C0cDi3Y|=#>SS$=H>>LCdtN@DM^V2X-0`D z2F8Y#7Rg2_re-NACdNsrrsig;$p%Tr$>s)0$)=VTCX;V7DpGEU4XXhY(5!q$oyoIU m&oLRAftZ`8u{{dp%FfKmaVk&JE6$kQ8R3t_-TX2_%NPLCV?SvC delta 223 zcmZpj!8CaW(}oxpW@AI+$?+^U4o2q5iN*#=X(pDYi5BKYCKkpi7HOvD#!2QWNr{Fa zPNGqwWwKFHvT>?qs)>n_acZKaVX{H8WpZ+gaca`!+l-2o8)Cz1z+`DLIiFEy@+{VK sOvVNv=H_W^j{*e?vNLmX6pBj=Qj5wmi}Q<8CO1X+V~TFR9ie3m0QYr9_y7O^ diff --git a/scripts/killBwb.sh b/scripts/killBwb.sh new file mode 100755 index 00000000..47f3572d --- /dev/null +++ b/scripts/killBwb.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +#find hostname +hostid=$(head -1 /proc/self/cgroup | cut -d/ -f3) +docker kill $hostid \ No newline at end of file