Product SiteDocumentation Site

3.4. Software Collection Initscript Support

Ensure that users can directly manage any services provided by the Software Collection or one of the associated applications with the system default tools, like service or chkconfig.
To avoid possible name conflicts with the system versions of the services that are part of the Software Collection, make sure to adjust the %install section of the spec file as follows:

%install
install -p -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{?scl:%_root_sysconfdir}%{!?scl:%_sysconfdir}/rc.d/init.d/%{?scl_prefix}service_name
With this configuration in place, you can then refer to the version of the service included in the Software Collection as follows:
%{?scl_prefix}service_name