#!/usr/local/bin/perl
# restart - restarts Vend in UNIX server mode
# 
# Modded to just stop and start
# Support may come for multi-server
#
$VendRoot = '/ext/minivend';
## END CONFIGURABLE VARIABLES

$ENV{PATH} = "/bin:/usr/bin:$VendRoot/bin";
$ENV{IFS}  = " ";

# Untaint alphanuerics, periods, slashes, and minus signs
# for options
my $tmp;
for(@ARGV) {
	m{([-./\w]+)};
	$tmp = $1;
	$_ = $tmp;
}

system("$VendRoot/bin/stop");

#sleep 1;

system("$VendRoot/bin/start_inet @ARGV");
