"option -m, --multiple-agents can only be used with one of the service options, see -h, --help for more information",
** Copyright (C) 2001-2025 Zabbix SIA
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
"golang.org/x/sys/windows/svc"
"golang.org/x/sys/windows/svc/eventlog"
"golang.org/x/sys/windows/svc/mgr"
"golang.zabbix.com/agent2/internal/agent"
"golang.zabbix.com/agent2/internal/agent/keyaccess"
"golang.zabbix.com/agent2/internal/agent/scheduler"
"golang.zabbix.com/agent2/internal/monitor"
"golang.zabbix.com/sdk/errs"
"golang.zabbix.com/sdk/log"
"golang.zabbix.com/sdk/zbxflag"
const usageMessageExampleConfPath = `C:\zabbix\zabbix_agent2.conf`
startTypeAutomatic = "automatic"
startTypeDelayed = "delayed"
startTypeManual = "manual"
startTypeDisabled = "disabled"
serviceName = "Zabbix Agent 2"
svcMultipleAgentFlag bool
winServiceWg sync.WaitGroup
fatalStopWg sync.WaitGroup