stopDaemon stops the watch daemon
(root string)
| 1336 | |
| 1337 | // stopDaemon stops the watch daemon |
| 1338 | func stopDaemon(root string) { |
| 1339 | if !hookWatchIsRunning(root) { |
| 1340 | return |
| 1341 | } |
| 1342 | exe, err := hookExecutablePath() |
| 1343 | if err != nil { |
| 1344 | return |
| 1345 | } |
| 1346 | cmd := hookExecCommand(exe, "watch", "stop", root) |
| 1347 | cmd.Run() |
| 1348 | } |
| 1349 | |
| 1350 | // extractFilePathFromStdin reads JSON from stdin and extracts file_path |
| 1351 | func extractFilePathFromStdin() (string, error) { |
no outgoing calls