Annotation of StartupItems/Zope/Zope, revision 1.2
1.1 casties 1: #!/bin/sh
2:
3: . /etc/rc.common
4:
5: ##
6: # Start up the ZOPE database server on Mac OS X / Darwin
1.2 ! casties 7: # (adapted from Marc Lyanage's PostgreSQL StartupItem)
1.1 casties 8: #
9: # License
10: # -------
11: #
12: # The PostgreSQL BSD-style license applies to this file
13: #
14:
1.2 ! casties 15: ZDIR=/Volumes/extern/zopeInstance
1.1 casties 16:
17: StartService ()
18: {
19:
20: if [ "${ZOPE:=-YES-}" = "-YES-" ]; then
21:
22: ConsoleMessage "Starting Zope server"
23: $ZDIR/bin/zopectl start
24: fi
25:
26: }
27:
28: StopService()
29: {
30:
31: ConsoleMessage "Stopping Zope server"
32: $ZDIR/bin/zopectl stop
33: #x=`/bin/ps axc | /usr/bin/grep postgres`
34: #if /bin/test "$x"
35: #then
36: # set $x
37: # kill -9 $x
38: #fi
39:
40: }
41:
42: RestartService ()
43: {
44: StopService
45: StartService
46: }
47:
48:
49: RunService "$1"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>