From 0ad56783c38de5985992a17919ceeff66c3db6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6cherl=20Peter?= Date: Thu, 14 Nov 2024 15:40:56 +0100 Subject: [PATCH] Replaces bin/restart by bin/cli kill and removes sleep command --- compose/bin/xdebug | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compose/bin/xdebug b/compose/bin/xdebug index 24f8cd4c2..03e964fa4 100755 --- a/compose/bin/xdebug +++ b/compose/bin/xdebug @@ -21,8 +21,7 @@ xdebug_toggle() { xdebug_enable() { if [[ $S == 1 ]]; then bin/root sed -i -e 's/^xdebug.mode = off/xdebug.mode = debug/g' /usr/local/etc/php/php.ini - sleep 1 - bin/restart phpfpm + bin/cli kill -USR2 1 echo "Xdebug debug mode has been enabled." else echo "Xdebug debug mode is already enabled." @@ -32,8 +31,7 @@ xdebug_enable() { xdebug_disable() { if [[ $S == 0 ]]; then bin/root sed -i -e 's/^xdebug.mode = debug/xdebug.mode = off/g' /usr/local/etc/php/php.ini - sleep 1 - bin/restart phpfpm + bin/cli kill -USR2 1 echo "Xdebug debug mode has been disabled." else echo "Xdebug debug mode is already disabled."