Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
c1bef282
Commit
c1bef282
authored
Oct 28, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
createbytask.int.sh: tune logrotate only for the project
parent
a1bfa149
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
createbytask.int.sh
vz/azbyka/createbytask.int.sh
+17
-1
No files found.
vz/azbyka/createbytask.int.sh
View file @
c1bef282
...
...
@@ -127,10 +127,26 @@ EOF
tune_logrotate
()
{
ERRLOGNAME
=
${
ACONF
}
_error.log
CUSLOGNAME
=
${
ACONF
}
_access.log
# TODO: ErrorLog is set in apache conf, so use *.log here
cat
<<
EOF
>/etc/logrotate.d/apache-home-local.tmpCB
/home/
$AUSER
/log/*.log {
/home/
$AUSER
/log/
$CUSLOGNAME
{
missingok
rotate 3
size 3000k
notifempty
sharedscripts
#create 0644 root apache2
compress
nodelaycompress
postrotate
/sbin/service httpd2 condreload >/dev/null
endscript
}
/home/
$AUSER
/log/
$ERRLOGNAME
{
missingok
rotate 3
size 3000k
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment