From: George Livsey <george () Mach2 ! allbiz ! com>
To: tru64-unix-managers
Subject: How do I restart IP aliases in rc.config?
Date: Thu, 22 Aug 1996 16:39:55 +0000 [thread overview]
Message-ID: <96076337821608.tru64-unix-managers.marc@archive.invalid> (raw)
I had the same problem with virtual domains so I did the following:
1. Created a script called /sbin/init.d/vdomains:
FAILFLAG=0
if [ -f /etc/vdomains.config ] ; then
/etc/vdomains.config
else
echo "$0 ERROR: /etc/vdomains.config defaults file MISSING"
exit 1
fi
2. Made a symbolic link from /sbin/vdomains to /sbin/rc3.d/S03vdomains
Your's may be some other number... I simply numbered it S03 so
that it would execute after inet.
3. Wrote the script /etc/vdomains.config and made it executable.
Here's that script:
ifconfig tu0 alias 205.219.8.50 # Captain Harry's
ifconfig tu0 alias 205.219.8.51 # Wildlife Research Center
ifconfig tu0 alias 205.219.8.52 # SportTrader.Com
This may not be elegant, but it was quick and dirty. Now all I need to do
to add a virtual domain is edit the /etc/vdomains.config script, shutdown
and reboot. You could, of course, do better by writing a script that would
send a HUP to all dependent daemons and so reload without a shutdown. It
would need to remove any changed ifconfigs and add the new ones. If
anyone has the time to write such a script. I'd like to see a copy myself.
-------
/
/ _ __ _____ _____ ____ ___ _____
/ / /____/ / / / / /___/ /____/
/ / /____ /____/ / / /____
------- ___/
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2
mQCNAy69xcMAAAEEAMRyOQiqogbZlOfsFBbee+aLHQ6KYFTfYvyAxvhI4dKQZAD6
3Pz4PEo+5Rl/GKjSXaDO90NN2bQIxdqpVgdtm3DATRbprEw4YkDqozQtEdlNM9kB
CRcQIvK7COEh29bPOBITxjumL/JmSysiZaVp1THEvHbsBexG6+n/GGI20p2JAAUR
tC9HZW9yZ2UgTC4gTGl2c2V5IDxnZW9yZ2VsQHN0YXJiYXNlLm5lb3NvZnQuY29t
Pg==
=m8x9
-----END PGP PUBLIC KEY BLOCK-----
next reply other threads:[~1996-08-22 16:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-22 16:39 George Livsey [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-08-22 13:21 How do I restart IP aliases in rc.config? Craig Rodrigues
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox