summaryrefslogtreecommitdiffstats
path: root/www/zope210/files/zope28.sh.in
blob: 899982321f2ba18d257d8e9d28346ae7ca172cc1 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh

# Start or stop zope
# $FreeBSD$

# PROVIDE: zope28
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD shutdown
#
prefix=%%PREFIX%%

# Define these zope28_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#       /etc/rc.conf.d/zope28
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
zope28_enable=${zope28_enable:-"NO"} # Enable zope
zope28_instances=${zope28_instances:-""} # List of instancehome dirs

. %%RC_SUBR%%

name="zope28"
rcvar=`set_rcvar`
load_rc_config $name

if checkyesno zope28_enable; then

	case "$1" in
		start)
			echo "Starting Zope 2.8"
		;;
		stop)
			echo "Stopping Zope 2.8"
		;;
		restart)
			echo "Restarting Zope 2.8"
		;;
		*)
			echo "Unknown action \"$1\""
		;;
	esac

	for instance in $zope28_instances
	do
		if [ -r ${instance}/etc/zope.conf -a -x ${instance}/bin/zopectl ]; then
			echo -n "       Instance ${instance} -> "
			${instance}/bin/zopectl $1
		fi
	done
fi
OpenPOWER on IntegriCloud