Skip to content

Commit e9b0b06

Browse files
committed
fix: update file paths for server ID and PID file to use 'nodepulse' instead of 'node-pulse'
1 parent 378296d commit e9b0b06

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

internal/config/serverid.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ func EnsureServerID(cfg *Config) error {
5252
func GetServerIDPath() string {
5353
// Try standard locations
5454
locations := []string{
55-
"/var/lib/node-pulse/server_id",
56-
"/etc/node-pulse/server_id",
57-
filepath.Join(os.Getenv("HOME"), ".node-pulse", "server_id"),
55+
"/var/lib/nodepulse/server_id",
56+
"/etc/nodepulse/server_id",
57+
filepath.Join(os.Getenv("HOME"), ".nodepulse", "server_id"),
5858
"./server_id", // Fallback to current directory
5959
}
6060

internal/pidfile/pidfile.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ import (
1010
)
1111

1212
const (
13-
daemonPidFile = ".node-pulse/pulse.pid"
13+
daemonPidFile = ".nodepulse/nodepulse.pid"
1414
)
1515

1616
// GetPidFilePath returns the PID file path based on user privileges
1717
func GetPidFilePath() string {
1818
if os.Geteuid() == 0 {
1919
// Root: use /var/run
20-
return "/var/run/pulse.pid"
20+
return "/var/run/nodepulse.pid"
2121
}
2222
// Normal user: use home directory
2323
home, err := os.UserHomeDir()
2424
if err != nil {
2525
// Fallback to current directory
26-
return "pulse.pid"
26+
return "nodepulse.pid"
2727
}
2828
return filepath.Join(home, daemonPidFile)
2929
}

0 commit comments

Comments
 (0)