Skip to content

Commit 36e9f76

Browse files
committed
ceph.spec.in: cleanup sysctl_apply check
sysctl_apply macro is supported on systemd since v215 [1]. This macro should be supported from Centos 7.2 and above, since we use C9 to build (and 8 is EOL) - we can cleanup this check. [1] systemd/systemd@b532bde Signed-off-by: Matan Breizman <[email protected]>
1 parent 4f653e1 commit 36e9f76

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ceph.spec.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,11 +2340,7 @@ fi
23402340
if [ $1 -eq 1 ] ; then
23412341
/usr/bin/systemctl start ceph-osd.target >/dev/null 2>&1 || :
23422342
fi
2343-
%if 0%{?sysctl_apply}
2344-
%sysctl_apply 90-ceph-osd.conf
2345-
%else
2346-
/usr/lib/systemd/systemd-sysctl %{_sysctldir}/90-ceph-osd.conf > /dev/null 2>&1 || :
2347-
%endif
2343+
%sysctl_apply 90-ceph-osd.conf
23482344

23492345
%preun osd
23502346
%if 0%{?suse_version}

0 commit comments

Comments
 (0)