-
Couldn't load subscription status.
- Fork 0
Description
As currently implemented, appsignal-wrap sends data to AppSignal on the background, while concurrently passing through the process' standard output and error. However, when the process it wraps exits, it must still continue to run for a while, in order to send the last log lines and/or the last cron check-ins to AppSignal.
Ideally, appsignal-wrap would exit as soon as the process it wraps exits (allowing, for example, for its usage in shell scripts to not slow down the overall shell script run) while the data related to its execution is sent to AppSignal by a separate daemonized process.
In the integrations, we implement this sort of behaviour through the extension, the agent and an UNIX socket. But in this case, we might be able to have the appsignal-wrap process spawn a fork of itself that is daemonized, and to communicate with that fork by writing to its standard input.