[Veritas-bu] modified install_client for Linux
2001-12-12 10:29:20
Subject: |
[Veritas-bu] modified install_client for Linux |
From: |
wbreyha AT gmx DOT net (Wolfgang Breyha) |
Date: |
Wed, 12 Dec 2001 16:29:20 +0100 |
--=====================_1308842005==_
Content-Type: text/plain; charset="us-ascii"
Hi!
I've modified the install_client script for Linux/Redhat to work with Redhat
7.x/xinetd installations, too.
Attached are the xinetd.d definitions which should be untared in
/usr/openv/netbackup/clients/Linux/Redhat.
At the end of the mail is the GNU-"diff -u" output for "install_client".
The first section of the diff is for installing the client to /opt instead of
/usr and linking /usr/openv -> /opt/openv. The second section is the patch for
xinetd. Apply what you need.
My Linux-Client Version is "NetBackup-RedHat 3.4patchNB_34_2"
Maybe some of you can need this, too.
Greetings from Vienna, Austria,
Wolfgang Breyha
IT.SE.UX UTA/netway
--- install_client.orig Wed Dec 12 16:07:28 2001
+++ install_client Wed Dec 12 16:07:18 2001
@@ -238,6 +241,10 @@
/bin/rm -rf /tmp/makebpdirs.${CLIENT}
/bin/echo "#!/bin/sh
+ if [ ! -d /opt/openv/ ]; then
+ /bin/mkdir /opt/openv
+ /bin/ln -s /opt/openv /usr/openv
+ fi
if [ ! -d /usr/openv/netbackup ]; then
if [ ! -d /usr/openv ]; then
/bin/mkdir /usr/openv
@@ -703,48 +710,68 @@
fi
fi
-bpcd_inetd=`$RSH ${CLIENT} grep bpcd $R_INETD_CONF </dev/null`
+if remote_file_exists $CLIENT /etc/inetd.conf
+then
-if [ X"${bpcd_inetd}" = X ] ; then
- $RSH ${CLIENT} "/bin/echo \"${bpcd_inetd_entry}\" >>$R_INETD_CONF"
</dev/null
-fi
+ bpcd_inetd=`$RSH ${CLIENT} grep bpcd $R_INETD_CONF </dev/null`
-vopied_inetd=`$RSH ${CLIENT} grep vopied $R_INETD_CONF </dev/null`
+ if [ X"${bpcd_inetd}" = X ] ; then
+ $RSH ${CLIENT} "/bin/echo \"${bpcd_inetd_entry}\"
>>$R_INETD_CONF" </dev/null
+ fi
-if [ X"${vopied_inetd}" = X ] ; then
- $RSH ${CLIENT} "/bin/echo \"${vopied_inetd_entry}\" >>$R_INETD_CONF"
</dev/null
-fi
-
-bpjava_inetd=`$RSH ${CLIENT} grep bpjava-msvc $R_INETD_CONF </dev/null`
-
-if [ X"${bpjava_inetd}" = X ] ; then
- $RSH ${CLIENT} "/bin/echo \"${bpjava_inetd_entry}\" >>$R_INETD_CONF"
</dev/null
-fi
-
-# NCR--Add bpcd or vopied to the /etc/inet/inetd.local file if necessary.
-if [ "$HARDWARE" = "NCR" ] ; then
- if [ "$R_INETD_CONF" = "/etc/inet/inetd.conf" ] ; then # NCR 3.0
- R_INETD_CONF_LOCAL=/etc/inet/inetd.local
- if remote_file_exists $CLIENT $R_INETD_CONF_LOCAL
- then
- bpcd_inetd=`$RSH ${CLIENT} egrep "'^bpcd'" $R_INETD_CONF_LOCAL
</dev/null`
- vopied_inetd=`$RSH ${CLIENT} egrep "'^vopied'" $R_INETD_CONF_LOCAL
</dev/null`
- bpjava_inetd=`$RSH ${CLIENT} egrep "'^bpjava-msvc'"
$R_INETD_CONF_LOCAL </dev/null`
- else
- bpcd_inetd=""
- vopied_inetd=""
- bpjava_inetd=""
- fi
- if [ X"${bpcd_inetd}" = X ] ; then
- $RSH ${CLIENT} "/bin/echo \"${bpcd_inetd_entry}\"
>>$R_INETD_CONF_LOCAL" </dev/null
- fi
- if [ X"${vopied_inetd}" = X ] ; then
- $RSH ${CLIENT} "/bin/echo \"${vopied_inetd_entry}\"
>>$R_INETD_CONF_LOCAL" </dev/null
- fi
- if [ X"${bpjava_inetd}" = X ] ; then
- $RSH ${CLIENT} "/bin/echo \"${bpjava_inetd_entry}\"
>>$R_INETD_CONF_LOCAL" </dev/null
- fi
- fi
+ vopied_inetd=`$RSH ${CLIENT} grep vopied $R_INETD_CONF </dev/null`
+
+ if [ X"${vopied_inetd}" = X ] ; then
+ $RSH ${CLIENT} "/bin/echo \"${vopied_inetd_entry}\"
>>$R_INETD_CONF" </dev/null
+ fi
+
+ bpjava_inetd=`$RSH ${CLIENT} grep bpjava-msvc $R_INETD_CONF </dev/null`
+
+ if [ X"${bpjava_inetd}" = X ] ; then
+ $RSH ${CLIENT} "/bin/echo \"${bpjava_inetd_entry}\"
>>$R_INETD_CONF" </dev/null
+ fi
+
+ # NCR--Add bpcd or vopied to the /etc/inet/inetd.local file if
necessary.
+ if [ "$HARDWARE" = "NCR" ] ; then
+ if [ "$R_INETD_CONF" = "/etc/inet/inetd.conf" ] ; then # NCR 3.0
+ R_INETD_CONF_LOCAL=/etc/inet/inetd.local
+ if remote_file_exists $CLIENT $R_INETD_CONF_LOCAL
+ then
+ bpcd_inetd=`$RSH ${CLIENT} egrep "'^bpcd'"
$R_INETD_CONF_LOCAL </dev/null`
+ vopied_inetd=`$RSH ${CLIENT} egrep "'^vopied'"
$R_INETD_CONF_LOCAL </dev/null`
+ bpjava_inetd=`$RSH ${CLIENT} egrep "'^bpjava-msvc'"
$R_INETD_CONF_LOCAL </dev/null`
+ else
+ bpcd_inetd=""
+ vopied_inetd=""
+ bpjava_inetd=""
+ fi
+ if [ X"${bpcd_inetd}" = X ] ; then
+ $RSH ${CLIENT} "/bin/echo \"${bpcd_inetd_entry}\"
>>$R_INETD_CONF_LOCAL" </dev/null
+ fi
+ if [ X"${vopied_inetd}" = X ] ; then
+ $RSH ${CLIENT} "/bin/echo \"${vopied_inetd_entry}\"
>>$R_INETD_CONF_LOCAL" </dev/null
+ fi
+ if [ X"${bpjava_inetd}" = X ] ; then
+ $RSH ${CLIENT} "/bin/echo \"${bpjava_inetd_entry}\"
>>$R_INETD_CONF_LOCAL" </dev/null
+ fi
+ fi
+ fi
+elif remote_file_exists $CLIENT /etc/xinetd.conf
+then
+ if remote_file_exists $CLIENT /etc/xinetd.d/bpcd
+ then true; else
+ $RCP ${SOURCE_DIR}/xinetd.d/bpcd ${CLIENT}:/etc/xinetd.d/
+ fi
+ if remote_file_exists $CLIENT /etc/xinetd.d/bpjava-msvc
+ then true; else
+ $RCP ${SOURCE_DIR}/xinetd.d/bpjava-msvc ${CLIENT}:/etc/xinetd.d/
+ fi
+ if remote_file_exists $CLIENT /etc/xinetd.d/vopied
+ then true; else
+ $RCP ${SOURCE_DIR}/xinetd.d/vopied ${CLIENT}:/etc/xinetd.d/
+ fi
+ inetd=`$RSH ${CLIENT} /bin/ps aux </dev/null|grep xinetd|grep -v
grep|awk '{print $2}'`
+ $RSH ${CLIENT} kill -SIGUSR2 $inetd </dev/null
fi
if [ $InstallJava = 1 ] ; then
--=====================_1308842005==_
Content-Type: application/octet-stream; name="xinetd.tar.gz";
x-mac-type="477A6970"; x-mac-creator="477A6970"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="xinetd.tar.gz"
H4sIAFByFzwAA+3WTU+DMBgHcK7tp2ji0UzKe2Kymzt4nfFMOugmjrWkLThj/O6Wjb2Y6HZwYKLP
78LoSp+G9g+sC8FNfpO7Tn8oDWlCqT1udEdvd75tS0IaxXHgx75DPS8MQodEPc5pr9aGKUIcJaU5
1U+aJ66GmNCw1rv1n1VZ3lMN6lEan1h/P/EP69/+7/l+lDiE9jSfT/75+l+RnM9ZXZpbIgXWXDVF
xkm7GfAbRvOSLTRCYzKdPD5MMNIyW3KTmteK20ZtFGcr0sHohRWm7SwkRrUdqv3d3lZ7nR13e+7W
Wrmy4qJx7cabsWxZV+6sEJv9h1EpF6kU6ZwVZa04uh4TW3d6f4dRXmg2K3k3/jvGv33n/oaj/D+z
ho1WuskuXeNc/oPwKP9hYPsHURxB/ofwXf73m2Hwx8Chctc/ZcpWH5ORUUzoggsDz4mL2ee/kVXB
+/kCOPv+j8Oj7782/7YF3v+D+Dr/283Qe/TbwHelINEAAAAAAAAAAAAAAAAAAAAA/NwHXRP5WgAo
AAA=
--=====================_1308842005==_
Content-Type: text/plain; charset="us-ascii"
--
/ Those of you who think they know everything are \
/ very annoying to those of us who do. -- Unknown \
\ Wolfgang Breyha <wbreyha AT gmx DOT net> - http://mash.nwy.at /
\ Systems Engineering UTA/netway - Vienna - Austria /
--=====================_1308842005==_--
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Veritas-bu] modified install_client for Linux,
Wolfgang Breyha <=
|
|
|