// SPDX-License-Identifier: GPL-3.0-or-later

//go:build windows

package service

// detectInitSystem on Windows always returns the Windows Service Manager.
func detectInitSystem() InitSystem {
	return InitWindows
}

// newManager creates the appropriate Manager for the given init system.
func newManager(initSys InitSystem) (Manager, error) {
	switch initSys {
	case InitWindows:
		return &windowsManager{}, nil
	default:
		return nil, ErrUnsupportedInitSystem
	}
}
