426486ce05
This provides an example patch script for restarting kubelet and isolcpus_plugin services. TESTING: - PASS: Verified restart of kubelet and isolcpus_plugin services with designer patch install and remove. Story: 2008760 Task: 44541 Signed-off-by: Jim Gauld <james.gauld@windriver.com> Change-Id: Idf624051b7238f39c4238ad72a7d7ffe14395b8b
27 lines
542 B
RPMSpec
27 lines
542 B
RPMSpec
Name: EXAMPLE_KUBELET
|
|
Summary: StarlingX In-Service kubelet Patch Script Example
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: Wind River <info@windriver.com>
|
|
Source0: kubelet-restart-example
|
|
|
|
%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
|