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 generally recommend using the foreman-maintain service utility, which will operate on all orcharhino services at once. Using this utility will ensure services are stopped and started in the proper order and no services will be omitted or forgotten. Running a full orcharhino service restart will also ensure that any configuration file changes (since the relevant service was started) will 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 will 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 also run foreman-maintain for a single service using the --only flag, or exclude services using the --exclude flag:

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

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