Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@
// specific language governing permissions and limitations
// under the License.

//go:build windows
//go:build !unix

package instance

import (
"runtime"

"github.com/elastic/elastic-agent-libs/logp"
)

// doReexec is a noop on Windows, it only logs a message explaining it.
func (b *Beat) doReexec() error {
logger := logp.L().Named("ssl.cert.reloader")
logger.Info("reloading certs/reexecing is not supported on Windows. %s will not restart", b.Info.Beat)
logger.Info("reloading certs/reexecing is not supported on %s. %s will not restart", runtime.GOOS, b.Info.Beat)
return nil
}
2 changes: 1 addition & 1 deletion libbeat/cmd/instance/beat_reexec_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

//go:build !windows
//go:build unix

package instance

Expand Down