Add simple subprocess execution

This commit adds the ability to run a subcommand through Litestream.
Shutting down the subcommand will cause Litestream to gracefully
shutdown. Litestream will forward interrupt signals and wait for
the subprocess to shutdown.
This commit is contained in:
Ben Johnson
2021-05-24 18:55:58 -06:00
parent c06997789b
commit 8fb9c910f0
5 changed files with 68 additions and 11 deletions

1
go.mod
View File

@@ -8,6 +8,7 @@ require (
github.com/Azure/go-autorest/autorest v0.9.0 // indirect
github.com/aws/aws-sdk-go v1.27.0
github.com/davecgh/go-spew v1.1.1
github.com/mattn/go-shellwords v1.0.11 // indirect
github.com/mattn/go-sqlite3 v1.14.5
github.com/pierrec/lz4/v4 v4.1.3
github.com/pkg/sftp v1.13.0 // indirect