Run multiple instances by attaching to original

Fixes #1. When another instance is detected, a command is sent over the
socket for the original to write to stdout and to a temporary file, which is then
tailed by the new instance. Can be overridden with --replace.
This commit is contained in:
2020-09-28 23:48:51 +01:00
parent b97a950582
commit 78ce37db9f
5 changed files with 101 additions and 38 deletions

4
go.mod
View File

@@ -4,5 +4,9 @@ go 1.15
require (
github.com/godbus/dbus/v5 v5.0.3
github.com/hpcloud/tail v1.0.0
github.com/spf13/pflag v1.0.5
golang.org/x/sys v0.0.0-20200928205150-006507a75852 // indirect
gopkg.in/fsnotify.v1 v1.4.7 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
)