My favorites
▼
|
Sign in
liub-open-source
[LIUB] Open source applications and scripts
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
scripts
/
netconsole_monitor_set.sh
r23
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash -
#=======================================================================
#
# FILE: netconsole_monitor_set.sh
# USAGE: ./netconsole_monitor_set.sh
# DESCRIPTION: Set netconsole for monitor machine
# REQUIREMENTS: netconsole
# BUGS: N/A
# NOTES: N/A
# AUTHOR: Ali Ayoub
# EMAIL: ali@mellanox.com
# COMPANY: N/A
# CREATED: 09.17.2010-15:25:49
# REVISION: 1.0
#=======================================================================
if ( ps -lefc | grep syslog | grep syslogd | grep '\-m 0 \-r \-x' -q); then
echo "-I- Already set"
exit 0
fi
egrep -v '^$|^#|SYSLOGD_OPTIONS=' /etc/sysconfig/syslog > /etc/sysconfig/syslog.new
echo 'SYSLOGD_OPTIONS="-m 0 -r -x"' >> /etc/sysconfig/syslog.new
\cp /etc/sysconfig/syslog /etc/sysconfig/syslog.orig
\mv /etc/sysconfig/syslog.new /etc/sysconfig/syslog
chkconfig syslog on
/etc/init.d/syslog restart
rc=$?
echo "-I- Done [$rc]."
exit $rc
Show details
Hide details
Change log
r3
by Ali.Ayoub on Sep 17, 2010
Diff
add netconsole scripts
Go to:
.../scripts/netconsole_devel_set.sh
...nk/scripts/netconsole_monitor.sh
...cripts/netconsole_monitor_set.sh
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 981 bytes, 32 lines
View raw file
File properties
svn:executable
*
Powered by
Google Project Hosting