1 | #!/bin/sh |
---|
2 | # Zope zopectl script, from: |
---|
3 | # http://www.zope.org/Members/jonms/MacOSXService |
---|
4 | |
---|
5 | ZOPEHOME=%%ZOPEBASE%% |
---|
6 | PATH=.:$PATH |
---|
7 | |
---|
8 | case "$1" in |
---|
9 | start) |
---|
10 | echo -n "Starting Zope" |
---|
11 | $ZOPEHOME/start -u %%ZOPEUSER%% -p %%CGIBINDIR%%/Zope.cgi \ |
---|
12 | >> $ZOPEHOME/var/error.log 2>&1 & |
---|
13 | echo ". Please wait a few moments for Zope to fully start." |
---|
14 | ;; |
---|
15 | stop) |
---|
16 | echo -n "Stopping Zope" |
---|
17 | $ZOPEHOME/stop && rm -f $ZOPEHOME/var/pcgi.pid \ |
---|
18 | $ZOPEHOME/var/pcgi.soc |
---|
19 | echo ". Please wait a few moments for Zope to fully stop." |
---|
20 | ;; |
---|
21 | restart) |
---|
22 | $0 stop |
---|
23 | sleep 3 |
---|
24 | $0 start |
---|
25 | ;; |
---|
26 | reload) |
---|
27 | $0 restart |
---|
28 | ;; |
---|
29 | *) |
---|
30 | echo "Usage: zopectl [start|stop|restart|reload]" |
---|
31 | exit 1 |
---|
32 | ;; |
---|
33 | esac |
---|
34 | |
---|
35 | exit 0 |
---|