blob: ea41fb4e16ac1dda147af71be9a46e1a007aa29f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/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
|