#!/bin/sh # # Start/Stop/HUP/etc MARS_NWE server # # Copyright 2000 Wilmer van der Gaast (lintux@lintux.cx) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA . $WEBSERVE_ROOT/cgi-bin/functions . $WEBSERVE_ROOT/smart.conf checkrefer echo Content-Type: text/html echo case $1 in start ) $NWSERV_BIN < /dev/null 2> /dev/null > /dev/null & ;; stop ) cat << EOF Stopping MARS_NWE Please wait while MARS_NWE is shutting down...
EOF
		$NWSERV_BIN -k
		cat << EOF
MARS_NWE is down now. You can click here to restart MARS_NWE. EOF exit ;; hup ) $NWSERV_BIN -h < /dev/null 2> /dev/null > /dev/null & ;; esac cat $WEBSERVE_ROOT/start.html