Skip to content

Task does not pass SIGQUIT to php-fpm #2155

Open
@davidbarratt

Description

@davidbarratt

Description

I'm having this problem with php-fpm on macos

Running

 php-fpm --force-stderr --nodaemonize

on the command line works just fine and Command+C kills it as you would expect, but putting the command in a task causes it to fail (even if interactive is true)

It looks like this is because php-fpm uses SIGQUIT and that doesn't get propogated correctly.

It might be helpful if Taskfile were to allow users to configure the stop signal kind of like Docker's STOPSIGNAL? That's how they fixed this problem over there.

Version

3.42.1

Operating system

macOS

Experiments Enabled

No response

Example Taskfile

version: "3"
output: prefixed

tasks:
  nginx:
    internal: true
    cmd: nginx -c etc/nginx/nginx.conf -p $PWD

  php:
    internal: true
    cmd: php-fpm --force-stderr --fpm-config ./etc/php/php-fpm.conf

  dev:
    desc: |
      Runs a dev server.
    deps:
      - nginx
      - php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions