Skip to content

Commit 48f420f

Browse files
authored
Merge pull request #87 from say-paul/add-network-dependency
add network depencency for default-healtchecks
2 parents b4207b6 + 7257aba commit 48f420f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

greenboot.spec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ mkdir -p %{buildroot}%{_unitdir}
9191
mkdir -p %{buildroot}%{_tmpfilesdir}
9292
install -DpZm 0755 usr/lib/greenboot/check/required.d/* %{buildroot}%{_prefix}/lib/%{name}/check/required.d
9393
install -DpZm 0755 usr/lib/greenboot/check/wanted.d/* %{buildroot}%{_prefix}/lib/%{name}/check/wanted.d
94+
install -DpZm 0644 usr/lib/systemd/system/greenboot-healthcheck.service.d/10-network-online.conf %{buildroot}%{_unitdir}/greenboot-healthcheck.service.d/10-network-online.conf
9495

9596
%post
9697
%systemd_post greenboot-healthcheck.service
@@ -131,9 +132,10 @@ install -DpZm 0755 usr/lib/greenboot/check/wanted.d/* %{buildroot}%{_prefix}/lib
131132
%dir %{_sysconfdir}/%{name}/red.d
132133

133134
%files default-health-checks
134-
%{_prefix}/lib/%{name}/check/required.d/01_repository_dns_check.sh
135135
%{_prefix}/lib/%{name}/check/wanted.d/01_update_platforms_check.sh
136136
%{_prefix}/lib/%{name}/check/required.d/02_watchdog.sh
137+
%{_prefix}/lib/%{name}/check/required.d/01_repository_dns_check.sh
138+
%{_unitdir}/greenboot-healthcheck.service.d/10-network-online.conf
137139

138140
%changelog
139141
* Thu Jul 24 2025 Sayan Paul <paul.sayan@gmail.com> - 0.16-1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[Unit]
2+
After=network-online.target
3+
Wants=network-online.target

0 commit comments

Comments
 (0)