blob: 66057530b549144025076805df24b1afe79483c8 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/sh
# Start or stop zope
# $FreeBSD$
# PROVIDE: zeo
# REQUIRE: DAEMON
# BEFORE: zope
# KEYWORD: FreeBSD shutdown
#
prefix=%%PREFIX%%
# Define these zope_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/zeo
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
zeo_enable=${zeo_enable:-"NO"} # Enable zeo server
zeo_instances=${zeo_instances:-""} # List of instancehome dirs
. %%RC_SUBR%%
name="zeo"
rcvar=`set_rcvar`
load_rc_config $name
extra_commands="status"
if checkyesno zeo_enable; then
for instance in $zeo_instances; do
required_files="${instance}/etc/${name}.conf ${instance}/bin/zeoctl"
zeo_command="${instance}/bin/zeoctl"
start_cmd="${zeo_command} start"
stop_cmd="${zeo_command} stop"
restart_cmd="${zeo_command} restart"
status_cmd="${zeo_command} status"
echo -n "Zeo instance ${instance} -> "
run_rc_command "$1"
done
fi
|