Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
b24bd31f
Commit
b24bd31f
authored
Jun 21, 2012
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build-vm: 06syslog should differ from VE's one
There's no need to disable console as it's emulated too, and it still can be helpful or just convenient.
parent
11d4f406
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
06syslog
features.in/build-vm/image-scripts.d/06syslog
+2
-6
No files found.
features.in/build-vm/image-scripts.d/06syslog
View file @
b24bd31f
#!/bin/sh -e
# tweak syslog configuration to:
# - avoid logging to a nonexistent tty;
# - avoid hard sync logging (one is better off doing
# remote syslog if you do care for reliable data anyways)
# tweak syslog configuration to avoid hard sync logging (one is better off
# doing remote syslog if you do care for reliable data anyways)
# credits: vvk@, thresh@ (2010)
CONFIG
=
/etc/syslog.conf
[
!
-f
"
$CONFIG
"
]
||
\
sed
-i
\
-e
's,/dev/tty12,/var/log/syslog/console,'
\
-e
's,^.*/var/log/syslog/console$,#&,'
\
-e
's,-/var/log/,/var/log/,g'
\
-e
's,/var/log/,-/var/log/,g'
\
"
$CONFIG
"
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