mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-10-29 06:58:15 -04:00
Implement serving passphrase from daemon
This commit is contained in:
1 parent
a5108bc6cc
commit
dc262c87e8
5 files changed
+35
-15
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package daemon
|
||||
|
||||
import "os"
|
||||
|
||||
func daemonIsOpen() bool {
|
||||
// check if socketPath exists and is a file
|
||||
fileInfo, err := os.Stat(socketPath)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
return !fileInfo.IsDir()
|
||||
}
|
||||
Reference in new issue
Block a user