forked from Tendrl/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugzilla: 1654183 tendrl-bug-id: Tendrl#455 Signed-off-by: GowthamShanmugasundaram <[email protected]>
- Loading branch information
1 parent
3daf5b8
commit 63f1268
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/var/log/tendrl/api/*.log | ||
{ | ||
su tendrl-api tendrl-api | ||
size=100M | ||
rotate 10 | ||
missingok | ||
compress | ||
notifempty | ||
create 0664 tendrl-api tendrl-api | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,7 @@ install -Dm 0644 config/apache.vhost.sample $RPM_BUILD_ROOT%{_sysconfdir}/httpd/ | |
install -Dm 0644 config/puma/*.rb $RPM_BUILD_ROOT%{install_dir}/config/puma/ | ||
install -Dm 0644 config/initializers/*.rb $RPM_BUILD_ROOT%{install_dir}/config/initializers/ | ||
install -Dm 0644 firewalld/tendrl-api.xml $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/services/tendrl-api.xml | ||
install -Dm 0644 config/tendrl-api_logrotate.conf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/tendrl-api_logrotate.conf | ||
|
||
# Symlink writable directories onto /var | ||
ln -s %{log_dir} $RPM_BUILD_ROOT%{install_dir}/log | ||
|
@@ -121,6 +122,7 @@ systemctl enable tendrl-api >/dev/null 2>&1 || : | |
%{install_dir}/ | ||
%{doc_dir}/ | ||
%{_unitdir}/tendrl-api.service | ||
%{_sysconfdir}/logrotate.d/tendrl-api_logrotate.conf | ||
%config(noreplace) %attr(0640, root, %{app_group}) %{config_file} | ||
%config(noreplace) %{_prefix}/lib/firewalld/services/tendrl-api.xml | ||
|
||
|
@@ -129,6 +131,9 @@ systemctl enable tendrl-api >/dev/null 2>&1 || : | |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/tendrl.conf | ||
|
||
%changelog | ||
* Fri Jan 18 2019 Gowtham Shanmugasundaram <[email protected]> - 1.6.3-8 | ||
- Log rotation for tendrl log files | ||
|
||
* Fri Jul 27 2018 Shirshendu Mukherjee <[email protected]> - 1.6.3-7 | ||
- Bugfix for recursion when non-json 'data' attr is present | ||
|
||
|