mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-08-28 04:46:42 -04:00
Move daemon code to dedicated package
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package daemon
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
var binPath, _ = os.Executable() // store binary path
|
||||
var socketPath = "/tmp/" + filepath.Base(binPath) + "-rcwd.sock" // store UNIX socket path
|
||||
Reference in New Issue
Block a user