Windows service control operations¶
Windows service control operations refer to the specific command-line instructions used to manage the state of background services on Windows operating systems. These commands are typically executed within a command prompt with administrator privileges.^[600-developer-operation-maintenance-zabbix-zabbix-agentd.md]
Common Operations¶
The primary commands for stopping and starting services utilize the net utility.
- Stopping a service: To halt a running service, the command
net stop "Service Name"is used^[600-developer-operation-maintenance-zabbix-zabbix-agentd.md]. If the service name contains spaces, it must be enclosed in quotation marks. - Starting a service: To launch a stopped service, the command
net start "Service Name"is used^[600-developer-operation-maintenance-zabbix-zabbix-agentd.md].
Examples¶
Specific examples of these commands in a development or operations context include managing the Zabbix Agent or Tomcat services^[600-developer-operation-maintenance-zabbix-zabbix-agentd.md]:
REM Stop and start the Zabbix Agent
net stop "Zabbix Agent"
net start "Zabbix Agent"
REM Stop and start Tomcat8
net stop Tomcat8
net start Tomcat8
Related Concepts¶
- [[Systemd]] (The Linux equivalent for service management)
- [[Zabbix]]
- [[Tomcat]]
Sources¶
^[600-developer-operation-maintenance-zabbix-zabbix-agentd.md]