File tree Expand file tree Collapse file tree 4 files changed +44
-0
lines changed
Expand file tree Collapse file tree 4 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/lib
261261mkdir -p ${RPM_BUILD_ROOT}%{_datadir }/%{name }-management/setup
262262mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir }/log/%{name }/management
263263mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir }/%{name }/management
264+ mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir }/systemd/system/%{name }-management.service.d
264265mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir }/run
265266mkdir -p ${RPM_BUILD_ROOT}%{_datadir }/%{name }-management/setup/wheel
266267
@@ -309,6 +310,7 @@ install -D utils/target/cloud-utils-%{_maventag}-bundled.jar ${RPM_BUILD_ROOT}%{
309310
310311install -D packaging/centos7/cloud-ipallocator.rc ${RPM_BUILD_ROOT}%{_initrddir }/%{name }-ipallocator
311312install -D packaging/centos7/cloud.limits ${RPM_BUILD_ROOT}%{_sysconfdir }/security/limits.d/cloud
313+ install -D packaging/centos7/filelimit.conf ${RPM_BUILD_ROOT}%{_sysconfdir }/systemd/system/%{name }-management.service.d
312314install -D packaging/systemd/cloudstack-management.service ${RPM_BUILD_ROOT}%{_unitdir }/%{name }-management.service
313315install -D packaging/systemd/cloudstack-management.default ${RPM_BUILD_ROOT}%{_sysconfdir }/default/%{name }-management
314316install -D server/target/conf/cloudstack-sudoers ${RPM_BUILD_ROOT}%{_sysconfdir }/sudoers.d/%{name }-management
Original file line number Diff line number Diff line change 1+ # Licensed to the Apache Software Foundation (ASF) under one
2+ # or more contributor license agreements. See the NOTICE file
3+ # distributed with this work for additional information
4+ # regarding copyright ownership. The ASF licenses this file
5+ # to you under the Apache License, Version 2.0 (the
6+ # "License"); you may not use this file except in compliance
7+ # with the License. You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing,
12+ # software distributed under the License is distributed on an
13+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+ # KIND, either express or implied. See the License for the
15+ # specific language governing permissions and limitations
16+ # under the License.
17+
18+ # should go in /etc/systemd/system/cloudstack-management.service.d/
19+ [Service]
20+ LimitNOFILE=500000
Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}-management/lib
243243mkdir -p ${RPM_BUILD_ROOT}%{_datadir }/%{name }-management/setup
244244mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir }/log/%{name }/management
245245mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir }/%{name }/management
246+ mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir }/systemd/system/%{name }-management.service.d
246247mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir }/run
247248mkdir -p ${RPM_BUILD_ROOT}%{_datadir }/%{name }-management/setup/wheel
248249
@@ -291,6 +292,7 @@ install -D utils/target/cloud-utils-%{_maventag}-bundled.jar ${RPM_BUILD_ROOT}%{
291292
292293install -D packaging/centos8/cloud-ipallocator.rc ${RPM_BUILD_ROOT}%{_initrddir }/%{name }-ipallocator
293294install -D packaging/centos8/cloud.limits ${RPM_BUILD_ROOT}%{_sysconfdir }/security/limits.d/cloud
295+ install -D packaging/centos8/filelimit.conf ${RPM_BUILD_ROOT}%{_sysconfdir }/systemd/system/%{name }-management.service.d
294296install -D packaging/systemd/cloudstack-management.service ${RPM_BUILD_ROOT}%{_unitdir }/%{name }-management.service
295297install -D packaging/systemd/cloudstack-management.default ${RPM_BUILD_ROOT}%{_sysconfdir }/default/%{name }-management
296298install -D server/target/conf/cloudstack-sudoers ${RPM_BUILD_ROOT}%{_sysconfdir }/sudoers.d/%{name }-management
Original file line number Diff line number Diff line change 1+ # Licensed to the Apache Software Foundation (ASF) under one
2+ # or more contributor license agreements. See the NOTICE file
3+ # distributed with this work for additional information
4+ # regarding copyright ownership. The ASF licenses this file
5+ # to you under the Apache License, Version 2.0 (the
6+ # "License"); you may not use this file except in compliance
7+ # with the License. You may obtain a copy of the License at
8+ #
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # Unless required by applicable law or agreed to in writing,
12+ # software distributed under the License is distributed on an
13+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+ # KIND, either express or implied. See the License for the
15+ # specific language governing permissions and limitations
16+ # under the License.
17+
18+ # should go in /etc/systemd/system/cloudstack-management.service.d/
19+ [Service]
20+ LimitNOFILE=500000
You can’t perform that action at this time.
0 commit comments