/*
 * Copyright 1990 by Baylor College of Medicine ALL RIGHTS RESERVED. 
 *
 * This program is subject to a license agreement between 
 * Baylor College of Medicine and MIT. Any use inconsistent with
 * said license and any use by persons other than the faculty, 
 * students and staff at MIT or any use on a computer not operated 
 * as part of the Athena Computing Environment (ACE) is expressly 
 * prohibited.
 */
#include <stdio.h>
#include <srvlib.h>
#include <pwd.h>

main(argc,argv)
	char *argv[] ;
{
	SrvContext *srv ;
	int i ;
	int port ;

	if (argc < 4)
	{
		fprintf(stderr,"Usage: %s <server name> <port> <database name>\n",argv[0]) ;
		exit(-1) ;
	}

	port = atoi(argv[2]);

	srv = srv_init(argv[1],port,argv[3]) ;
	if (srv == NULL)
	{
		fprintf(stderr,"Can not communicate with db server\n") ;
		exit(-1) ;
	}

	srv_shutdown_clients(srv);

	srv_close(srv);
}
