Removed extraneous output from init.d/xcat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1266 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
8b9be733ef
commit
43cc06b6de
52
xCAT-client-2.0/pods/man8/makehosts.8.pod
Normal file
52
xCAT-client-2.0/pods/man8/makehosts.8.pod
Normal file
@ -0,0 +1,52 @@
|
||||
=head1 NAME
|
||||
|
||||
B<makedns> - sets up /etc/hosts from the xCAT hosts table.
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
B<makehosts> [B<-n>] [I<noderange>]
|
||||
|
||||
B<makehosts> {B<-h>|B<--help>}
|
||||
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
B<makehosts> updates the /etc/hosts file based on entries in the hosts table in the xCAT database.
|
||||
If your node hostnames and IP addresses follow a regular pattern, you can use just a few regular expressions
|
||||
in the hosts table and then easily generate /etc/hosts using makehosts.
|
||||
|
||||
|
||||
=head1 OPTIONS
|
||||
|
||||
=over 6
|
||||
|
||||
=item B<-n>
|
||||
|
||||
Completely replace the /etc/hosts file, losing any previous content. If this option is not specified,
|
||||
it will only replace the lines in the file that correspond to the nodes in the specified noderange.
|
||||
|
||||
=back
|
||||
|
||||
|
||||
=head1 EXAMPLES
|
||||
|
||||
=over 2
|
||||
|
||||
=item *
|
||||
|
||||
If the xCAT hosts table contains:
|
||||
|
||||
"compute","|node(\d+)|1.2.3.($1+0)|","|(.*)|($1).cluster.net|",,
|
||||
|
||||
Assuming the group "compute" contains node01, node02, etc., then in /etc/hosts they will be given
|
||||
IP addresses of 1.2.3.1, 1.2.3.2, etc.
|
||||
|
||||
=back
|
||||
|
||||
=head1 SEE ALSO
|
||||
|
||||
hosts(5)
|
||||
|
||||
=head1 AUTHOR
|
||||
|
||||
Egan Ford E<lt>egan@us.ibm.comE<gt>
|
Binary file not shown.
Binary file not shown.
@ -11,11 +11,16 @@
|
||||
# Short-Description: xCATd
|
||||
# Description: xCAT management service
|
||||
### END INIT INFO
|
||||
|
||||
# This avoids the perl locale warnings
|
||||
if [ -z $LANG ] && [ -z $LC_ALL ]; then
|
||||
export LANG=C
|
||||
fi
|
||||
|
||||
if [ -r /etc/sysconfig/xcat ]; then
|
||||
. /etc/sysconfig/xcat
|
||||
fi
|
||||
|
||||
|
||||
MStatus()
|
||||
{
|
||||
ps ax|grep -v grep|grep xcatd: >& /dev/null
|
||||
@ -37,7 +42,7 @@ if [ -f /lib/lsb/init-functions ]; then
|
||||
LOG_FAILURE=log_failure_msg
|
||||
LOG_WARNING=log_warning_msg
|
||||
elif [ -f /etc/init.d/functions ]; then
|
||||
echo RH
|
||||
#echo RH
|
||||
. /etc/init.d/functions
|
||||
START_DAEMON=daemon
|
||||
STATUS=MStatus
|
||||
|
Loading…
Reference in New Issue
Block a user