freebsd-ports/www/py-webware/files/webkit.sh.tmpl
Hye-Shik Chang d40981d556 Add port for py-webware 0.8.1,
A suite of software components for developing object-oriented,
web-based applications.

PR:		42295
Submitted by:	Stefan Schwarzer <sschwarzer@sschwarzer.net>
Reminded by:	linimon (thanks!)
2004-01-10 10:19:59 +00:00

38 lines
777 B
Bash

#!/bin/sh
# Warning
# -------
#
# Please edit the files in
# %%WEBKIT_HOME_DIR%%/Configs/
# to suit your needs. Using them as they are may cause problems.
# This file is adapted from databases/postgresql7/files/pgsql.sh.tmpl
#
# $FreeBSD$
WEBKIT_HOME_DIR=%%WEBKIT_HOME_DIR%%
case $1 in
start)
[ -x ${WEBKIT_HOME_DIR}/AppServer ] && {
su -l webware -c "exec ${WEBKIT_HOME_DIR}/AppServer" \
>/dev/null 2>&1 &
echo -n ' webkit'
}
;;
stop)
[ -f ${WEBKIT_HOME_DIR}/appserverpid.txt ] && {
su -l webware -c \
"/bin/kill `cat ${WEBKIT_HOME_DIR}/appserverpid.txt`" \
>/dev/null 2>&1
echo -n ' webkit'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
exit 1
;;
esac