Software >> OS >> Unix >> Linux >> RHEL >> Satellite >> How to manage Satellite 6 services

 

Managing Satellite 6.x services


## To list services

# katello-service list

(command output)
Redirecting to 'foreman-maintain service'
Running Service List
================================================================================
List applicable services:
dynflowd.service                              enabled
foreman-proxy.service                         enabled
httpd.service                                 enabled
postgresql.service                            enabled
pulp_celerybeat.service                       enabled
pulp_resource_manager.service                 enabled
pulp_streamer.service                         enabled
pulp_workers.service                          enabled
puppetserver.service                          enabled
qdrouterd.service                             enabled
qpidd.service                                 enabled
rh-mongodb34-mongod.service                   enabled
smart_proxy_dynflow_core.service              enabled
squid.service                                 enabled
tomcat.service                                enabled

All services listed                                                   [OK]


## To check services status

# katello-service status | egrep '[.]service|Active[:]'

(command output)
● rh-mongodb34-mongod.service - High-performance, schema-free document-oriented database
   Loaded: loaded (/usr/lib/systemd/system/rh-mongodb34-mongod.service; enabled; vendor preset: disabled)
   Active: failed (Result: signal) since Sat 2021-10-30 15:28:13 +08; 13min ago
Oct 30 15:28:13 sat6.myfaqbase.local systemd[1]: rh-mongodb34-mongod.service: main process exited, code=killed, status=9/KILL
Oct 30 15:28:13 sat6.myfaqbase.local systemd[1]: Unit rh-mongodb34-mongod.service entered failed state.
Oct 30 15:28:13 sat6.myfaqbase.local systemd[1]: rh-mongodb34-mongod.service failed.
● postgresql.service - PostgreSQL database server
   Loaded: loaded (/etc/systemd/system/postgresql.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:09:42 +08; 1h 31min ago
   CGroup: /system.slice/postgresql.service
● qdrouterd.service - Qpid Dispatch router daemon
   Loaded: loaded (/usr/lib/systemd/system/qdrouterd.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:09:39 +08; 1h 31min ago
   CGroup: /system.slice/qdrouterd.service
● qpidd.service - An AMQP message broker daemon.
   Loaded: loaded (/usr/lib/systemd/system/qpidd.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/qpidd.service.d
   Active: active (running) since Sat 2021-10-30 14:09:43 +08; 1h 31min ago
   CGroup: /system.slice/qpidd.service
● squid.service - Squid caching proxy
   Loaded: loaded (/usr/lib/systemd/system/squid.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:09:40 +08; 1h 31min ago
   CGroup: /system.slice/squid.service
● pulp_celerybeat.service - Pulp's Celerybeat
   Loaded: loaded (/usr/lib/systemd/system/pulp_celerybeat.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2021-10-30 15:29:26 +08; 12min ago
Oct 30 15:29:26 sat6.myfaqbase.local systemd[1]: pulp_celerybeat.service: main process exited, code=exited, status=1/FAILURE
Oct 30 15:29:26 sat6.myfaqbase.local systemd[1]: Unit pulp_celerybeat.service entered failed state.
Oct 30 15:29:26 sat6.myfaqbase.local systemd[1]: pulp_celerybeat.service failed.
● pulp_resource_manager.service - Pulp Resource Manager
   Loaded: loaded (/usr/lib/systemd/system/pulp_resource_manager.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:09:39 +08; 1h 31min ago
   CGroup: /system.slice/pulp_resource_manager.service
● pulp_streamer.service - The Pulp lazy content loading streamer
   Loaded: loaded (/usr/lib/systemd/system/pulp_streamer.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:09:39 +08; 1h 31min ago
   CGroup: /system.slice/pulp_streamer.service
● pulp_workers.service - Pulp Celery Workers
   Loaded: loaded (/usr/lib/systemd/system/pulp_workers.service; enabled; vendor preset: disabled)
   Active: active (exited) since Sat 2021-10-30 14:09:40 +08; 1h 31min ago
   CGroup: /system.slice/pulp_workers.service
● smart_proxy_dynflow_core.service - Foreman smart proxy dynflow core service
   Loaded: loaded (/usr/lib/systemd/system/smart_proxy_dynflow_core.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/smart_proxy_dynflow_core.service.d
   Active: active (running) since Sat 2021-10-30 14:10:00 +08; 1h 31min ago
   CGroup: /system.slice/smart_proxy_dynflow_core.service
Oct 30 14:10:00 sat6.myfaqbase.local systemd[1]: smart_proxy_dynflow_core.service: Supervising process 2728 which is not our child. We'll most likely not notice when it exits.
● tomcat.service - Apache Tomcat Web Application Container
   Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:09:39 +08; 1h 31min ago
   CGroup: /system.slice/tomcat.service
● dynflowd.service - Foreman jobs daemon
   Loaded: loaded (/usr/lib/systemd/system/dynflowd.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:10:21 +08; 1h 31min ago
   CGroup: /system.slice/dynflowd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:09:43 +08; 1h 31min ago
   CGroup: /system.slice/httpd.service
● puppetserver.service - puppetserver Service
   Loaded: loaded (/usr/lib/systemd/system/puppetserver.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:11:52 +08; 1h 29min ago
   CGroup: /system.slice/puppetserver.service
● foreman-proxy.service - Foreman Proxy
   Loaded: loaded (/usr/lib/systemd/system/foreman-proxy.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2021-10-30 14:09:54 +08; 1h 31min ago
   CGroup: /system.slice/foreman-proxy.service


## To stop all services

# katello-service stop

(command output)
Redirecting to 'foreman-maintain service'
Running Stop Services
================================================================================
Check if command is run as root user:                                 [OK]
--------------------------------------------------------------------------------
Stop applicable services:
Stopping the following service(s):

rh-mongodb34-mongod, postgresql, qdrouterd, qpidd, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, smart_proxy_dynflow_core, tomcat, dynflowd, httpd, puppetserver, foreman-proxy


## To start all services

# katello-service start



## To restart all services

# katello-service restart