summaryrefslogtreecommitdiff
path: root/www/zope28/files/zope.sh.in
blob: 616a53f07eec51d5fb1533d4bc74e0e0bfec3c28 (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
#!/bin/sh

case "$1" in
start)
	umask 077
	nohup %%ZOPEBASEDIR%%/start \
	       -w %%ZOPE_HTTP_PORT%% \
	       -f %%ZOPE_FTP_PORT%% \
	       -m %%ZOPE_MONITOR_PORT%% \
	       -u %%ZOPE_USER%% \
	       -p %%CGIBINDIR%%/Zope.cgi \
	    >> %%ZOPEBASEDIR%%/var/zope-output 2>&1 &
	echo -n " Zope"
	;;
stop)
	%%ZOPEBASEDIR%%/stop
	echo -n " Zope"
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	;;
esac

exit 0