Managing Services

orcharhino services like foreman or pulp are managed using systemd. As a result, orcharhino services can be managed like any other system service using systemctl [start|stop|restart|status] <service_name>.

However, we recommend using the foreman-maintain service utility, which operates on all orcharhino services (or a subset) at once. This utility ensures that services are stopped and started in the correct order and no services are omitted or forgotten. Restarting all orcharhino services ensures that any changes to configuration files take effect.

To restart all orcharhino services:

foreman-maintain service restart

To stop all orcharhino services:

foreman-maintain service stop

To start all orcharhino services:

foreman-maintain service start

To show whether a service is enabled or disabled by systemd (only enabled services automatically start when booting the system):

foreman-maintain service list

To enable all orcharhino services (does not change the current start/stop state of the service):

foreman-maintain service enable

To disable all orcharhino services (does not change the current start/stop state of the service):

foreman-maintain service disable

To show the current state of services (similar to systemctl status <service_name>):

foreman-maintain service status

You can provide foreman-maintain with an allowlist using the --only flag or a blocklist using the --exclude flag:

foreman-maintain service {start|stop|restart|enable|disable|list|status} --only <service_name1,service_name2>
foreman-maintain service {start|stop|restart|enable|disable|list|status} --exclude <service_name1,service_name2>

For more information, see foreman-maintain service --help.