1) Choose a local directory to install rush.
/usr/local/rush is recommended.
Open a terminal window, and login as root, and extract the tar file as:
Extracting Rush Tar File
|
cd /usr/local
gunzip -c /tmp/rush-xxxxx.tar.gz | tar xvfp -
|
Note the importance of the tar 'p' flag, to preserve permissions.
To install the system on a large network, first install the software
on the license server(s), get everything working, then rcp(1) the
directory tree to all the other machines on your network.
If you install rush in another location, then you must be sure the $RUSH_DIR
environment variable points to the directory, and this variable must be set
a) before the daemon is started and b) in all user environments. You will
make life easier if you install rush in /usr/local/rush.
WARNING: As with all daemons and their config files, do *not* install the
rush directory or binaries on an NFS mounted drive. Keep rush binaries local
to each machine.
7) Start the daemon, and test it
Start the daemon by invoking the boot script:
/System/Library/StartupItems/Rush/Rush start
UPDATE -- OSX 10.2 users: if you get an error 'RUSHSERVER: unbound variable',
then edit the /etc/hostconfig and add a line that reads 'RUSHSERVER=-YES-', then
re-execute the above daemon start script.
Then ping the daemon to see if it's running:
% set path = ( /usr/local/rush/bin $path )
% rush -ping
imac: RUSHD 102.31h PID=7166 Boot=10/15/00,03:25:49 Online, 0 jobs, 0 procs
If you get an error:
% rush -ping +any
rodin: rush: rresvport(): Permission denied
bacon: rush: rresvport(): Permission denied
..then check the SUID bit on the rush(1) binary, and make sure the owner is root:
chmod 4755 /usr/local/rush/bin/rush
chown 0.0 /usr/local/rush/bin/rush
If you get a different error, check the daemon logs for problems, eg:
tail -f /usr/local/rush/var/rushd.log
To test if the daemon is working, you can run this test submit script,
just to verify jobs can be started, listed, and dumped:
/usr/local/rush/examples/test-submit
To submit a real job, similar to what TDs use, you can run
this test which includes
complete instructions for someone who has never used rush before.