We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b573f13 commit edd0838Copy full SHA for edd0838
1 file changed
internal/daemon/daemon.go
@@ -55,6 +55,11 @@ func (d *Daemon) Run() error {
55
sigCh := make(chan os.Signal, 1)
56
signal.Notify(sigCh, syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP)
57
58
+ // Ensure runtime directory exists
59
+ if err := os.MkdirAll(filepath.Dir(d.socketPath), 0755); err != nil {
60
+ return fmt.Errorf("failed to create runtime directory: %w", err)
61
+ }
62
+
63
// Write PID file
64
pidPath := filepath.Join(filepath.Dir(d.socketPath), "devproxy.pid")
65
os.WriteFile(pidPath, []byte(fmt.Sprintf("%d", os.Getpid())), 0644)
0 commit comments