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!)
38 lines
777 B
Bash
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
|