Chapter 68. Checking the State of Services
The manager and agent services are controlled by the systemd system manager:
ppemis the manager service.ppem-agentis the agent service.
To view the state of services, use the
systemctlutility:# systemctl status ppem ● ppem.service - PostgresPro Enterprise Manager Loaded: loaded (/lib/systemd/system/ppem.service; enabled; preset: enabled) Active: active (running) since Sat 2024-11-16 15:43:01 MSK; 48min ago Main PID: 53582 (ppem-manager) Tasks: 7 (limit: 3512) Memory: 226.9M CPU: 8.445s CGroup: /system.slice/ppem.service └─53582 /usr/sbin/ppem-manager -config /etc/ppem-manager.ymlThe status output contains the following:
ppem.serviceis the name and description of the service.The dot indicator (●) uses colors to highlight the service state:
White is the neutral
inactiveordeactivatingstate.Red is the
failedorerrorstate.Green is the normal
active,reloadingoractivatingstate.
Loadedis the service configuration state indicating that the configuration is uploaded to memory and that this is the normal state.Activeis the service running state, indicating that the service has successfully started and is currently operational.The start time and running duration are also displayed.
Main PIDis the ID and name of the main process in the list of OS processes.Tasksis the total number of processes and streams generated by the main process.Memoryis usage of memory.CPUis usage of CPU time.CGroupis the control group where service processes are placed.After the main section, the last service messages will also be displayed.
When operating correctly, the manager and agent services are in the
Activestate.