Eric MacDonald fdc2cc4ade Collectd+InfluxDb-RMON Replacement(ALL METRICS) P1
This update introduces a non-reboot patch example script for a service
whose patch modified its service file thereby requiring a system
daemon-reload as a precursor to the service process restart.
This new RPM was introduced in support of no-reboot patching of the
'influxdb' and 'collectd' processes ; so those are the default processes
used in this script.
Note that there is nothing that prevents a designer from using this as a
more general example script for any service that requires the same
patching operations after replacing the default process names with their
own.

Change-Id: I9f261509f16490f986722b47b0f92db4ef735609
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-03 11:00:35 -04:00

28 lines
558 B
RPMSpec

Name: EXAMPLE_SERVICE
Summary: TIS In-Service Patch Scripts Example that supports systemd reload
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: windriver
Group: base
Packager: Wind River <info@windriver.com>
Source0: service-process-restart
%install
install -Dp -m 700 %{S:0} %{buildroot}%{_patch_scripts}/%{name}
%description
%{summary}
%files
%defattr(-,root,root,-)
%{_patch_scripts}/*
%post
cp -f %{_patch_scripts}/%{name} %{_runtime_patch_scripts}/
exit 0
%preun
cp -f %{_patch_scripts}/%{name} %{_runtime_patch_scripts}/
exit 0