summaryrefslogtreecommitdiff
path: root/www/zope/files/zope.sh.in
blob: 6e461541a6254c8aa5016e6122419d73ea2cc9ab (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
#!/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 &
	echo -n " Zope"
	;;
stop)
	%%ZOPEBASEDIR%%/stop
	echo -n " Zope"
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	;;
esac

exit 0