ADSM-L

Stoping the server through a script

2000-04-17 08:16:41
Subject: Stoping the server through a script
From: Scott Fluegge <sfluegge AT VENATORGROUP DOT COM>
Date: Mon, 17 Apr 2000 08:16:41 -0400
Question...

I am trying to write a script that can be put in rc.shutdown that will
gracefully bring down the adsm server.  That means I need to insure that there
are no tapes mounted.  I can write a script that will chack for mounts and even
un-mount tapes.  The problem I am having is checking for processes running and
then stoping them.  If I just unmount the tapes, and if something like
reclemation is running, another tape will just be mounted.

Does anyone know of a way to get the process numbers into a script?  There is no
unique entry on the process line (when "q pr" is used) that I can grep for as I
can with requests or mounts!

Any help would be greatly appreciated!

Thanks,

Scott