question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`func start` on Linux won't stop upon recieving SIGTERM

See original GitHub issue

If I execute func start on Linux and then send a termination request (kill -s SIGTERM <pid>), the local runner will ignore the request.

Sending a termination signal like this should result in the program closing. Instead, the process stays open indefinitely.

Interestingly, SIGINT works just fine.

I’m running Linux and I’ve tested this with both a Node project and a Java project.

This is currently preventing the Azure Functions Gradle Plugin from shutting down down the azureFunctionsRun task correctly, which is a huge usability problem for that plugin. However, the root issue remains in func start.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

2reactions
robmoocommented, Aug 22, 2022

Is there any update on this issue? We are getting this issue as well in our build pipelines when trying to run integration tests

0reactions
paulsmithkccommented, Jan 18, 2023

Link #3222

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure functions core tools: func start on linux agent won't ...
func start on linux agent won't stop after receiving a SIGTERM command: -We have a build pipeline that runs a node application
Read more >
blocking function accept() restarts when SIGINT occurs ...
In one of the pthreads I have a call to accept() function. I have a signal handler which is invoked upon receiving of...
Read more >
systemd killmode: send SIGTERM to child processes?
I'm trying to systemctl stop a shell script that runs a few subcommands. However, because the shell script traps several signals, the script ......
Read more >
macos - Is there a way to prevent SIGKILL after SIGTERM ...
Yes, this is definitely possible. If you start your service properly via launchd, you can define the amount of time you need for...
Read more >
When pressed ctrl+c only break out of current function and ...
E.g. asynchronous processes started in a script ignore SIGINT . This way they don't react to Ctrl + c despite being in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found