[Bio] / askkb / service / stop_service.tt Repository:
ViewVC logotype

View of /askkb/service/stop_service.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (annotate)
Wed May 1 00:43:10 2013 UTC (6 years, 7 months ago) by brettin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
 changed use of kb_service_name to kb_service_dir when in dir context

#!/bin/sh
export KB_TOP=[% kb_top %]
export KB_RUNTIME=[% kb_runtime %]
export PATH=$KB_TOP/bin:$KB_RUNTIME/bin:$PATH
export PERL5LIB=$KB_TOP/lib
export KB_SERVICE_DIR=$KB_TOP/services/[% kb_service_dir %]

pid_file=$KB_SERVICE_DIR/service.pid

if [ ! -f $pid_file ] ; then
	echo "No pid file $pid_file found for service [% kb_service_name %]" 1>&2
	exit 1
fi

pid=`cat $pid_file`

kill $pid

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3