Skip to content

fix: ddev-webserver process kill function was incorrect - #5107

Merged
rfay merged 1 commit into
ddev:masterfrom
rfay:20230707_fix_process_group_kill
Jul 10, 2023
Merged

rfay merged 1 commit into
ddev:masterfrom
rfay:20230707_fix_process_group_kill

Conversation

@rfay

@rfay rfay commented Jul 8, 2023 •

Copy link
Copy Markdown
Member

The Issue

During debugging we saw:

2023-07-07 20:47:42,159 INFO stopped: child_exit_monitor (terminated by SIGTERM)
+ trap - SIGTERM
+ kill -- --1
/pre-start.sh: line 1: kill: --1: arguments must be process or job IDs

Apparently in the situation of a failing web_extra_daemon things weren't handled correctly.

How This PR Solves The Issue

Use the correct syntax, kill -- -1 (-1 rather than --1)

Manual Testing Instructions

The previous error was created by making an error happen with something like this:

  web_extra_daemons:
    - name: "failit"
      command: "./failit.sh"
      directory: /var/www/html

and after ddev start, ddev logs showed the error.

This shouldn't happen now.

@github-actions

github-actions Bot commented Jul 8, 2023

Copy link
Copy Markdown

@rfay
rfay marked this pull request as ready for review July 9, 2023 12:30
@rfay
rfay requested a review from a team as a code owner July 9, 2023 12:30
@rfay
rfay merged commit f39c884 into ddev:master Jul 10, 2023
@rfay
rfay deleted the 20230707_fix_process_group_kill branch July 10, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants