Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
emosbaugh committed Jan 16, 2025
1 parent e53c9da commit 698d220
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pkg/manager/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ const (
)

var (
_serviceName = DefaultServiceName
_serviceName string
)

func init() {
SetServiceName(DefaultServiceName)
}

// ServiceName returns the name of the systemd service for the manager service.
func ServiceName() string {
return _serviceName
Expand Down
2 changes: 1 addition & 1 deletion pkg/manager/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func TestSystemdUnitFilePath(t *testing.T) {
}()

// Test with default service name
expected := filepath.Join(tmpDir, "manager.service")
expected := filepath.Join(tmpDir, "manager-manager.service")
actual := SystemdUnitFilePath()
assert.Equal(t, expected, actual, "default service name path mismatch")

Expand Down

0 comments on commit 698d220

Please sign in to comment.