Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
649
Issues
649
List
Boards
Labels
Service Desk
Milestones
Merge Requests
212
Merge Requests
212
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
5e24e264
Commit
5e24e264
authored
Jun 11, 2010
by
Timo Teräs
Committed by
Natanael Copa
Aug 04, 2010
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/sysklogd: fix rotation of log files
fixes
#358
parent
caba6544
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
main/sysklogd/APKBUILD
main/sysklogd/APKBUILD
+1
-1
main/sysklogd/sysklogd.daily
main/sysklogd/sysklogd.daily
+4
-3
No files found.
main/sysklogd/APKBUILD
View file @
5e24e264
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
sysklogd
pkgver
=
1.5
pkgrel
=
4
pkgrel
=
6
pkgdesc
=
"System and kernel log daemons"
url
=
"http://www.infodrom.org/projects/sysklogd/"
license
=
"GPL BSD"
...
...
main/sysklogd/sysklogd.daily
View file @
5e24e264
...
...
@@ -17,13 +17,14 @@ syslogd_listfiles() {
# the sed (in order)-
# strips comments;
# collapses spaces/tabs to 1 space;
# deletes the "-" in front of the filename;
# deletes the "-" in front of the filename;
# deletes whitespace before ';'
# deletes lines that have the "skip" facility
# deletes the facility (leaving just the filename)
# deletes lines that are not filenames with leading "/"
while
read
a
;
do
echo
"
$a
"
;
done
<
$CONF
|
\
sed
-n
"/^
*#/D; /^[ ]*
$/
D; s/[
]
\+
/ /g;
\
s+ -/+ /+g; /^.*
\(
$skip
\)
[^ ]* /D;
\
sed
-n
"/^
[
\t
]*#/D; /^[
\t
]*
$/
D; s/[
\t
]
\+
/ /g;
\
s+ -/+ /+g;
s/ *; */;/;
/^.*
\(
$skip
\)
[^ ]* /D;
\
s/^[^ ]* //; /^[^
\\
/]/D; P"
|
\
sort
|
uniq
}
...
...
Mika Havela
@mhavela
mentioned in issue
#358 (closed)
·
Jul 12, 2019
mentioned in issue
#358 (closed)
mentioned in issue #358
Toggle commit list
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