#!/bin/sh # # Startup script for the ADS Services # For more information, please see: # http://ads.harvard.edu/mirror # # To install this script under RedHat linux, do the following (as root): # cp init.d_ads /etc/init.d/ads # chmod 744 /etc/init.d/ads # chkconfig --add ads # chkconfig ads on # # To install the startup procedure under solaris, do the following (as root): # cp init.d_ads /etc/init.d/ads # chmod 744 /etc/init.d/ads # ln -s /etc/init.d/ads /etc/rc3.d/S93ads # # chkconfig: 5 86 16 # description: NASA Astrophysics Data System services # case "$1" in 'start') # load shared memory segments under ads's uid su - ads -c '$HOME/mirror/local/ads_startup' ;; 'stop') # remove shared memory segments su - ads -c '$HOME/mirror/local/ads_shutdown' ;; *) echo "Usage: $0 start|stop" 1>&2 ;; esac