blob: d1526095c5fe4d01798c04e4c9c271a24612598a (
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
54
55
56
57
58
59
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-zope/zope/files/2.7.2/zope.initd,v 1.2 2004/07/24 23:45:46 batlogg Exp $
opts="start stop restart kill quit reload status help"
depend() {
need net
}
start() {
ebegin "Starting Zope in INSTANCE_HOME"
INSTANCE_HOME/bin/zopectl start
eend $?
}
stop() {
ebegin "Stopping Zope in INSTANCE_HOME"
INSTANCE_HOME/bin/zopectl stop
eend $?
}
restart() {
ebegin "Restarting Zope in INSTANCE_HOME"
INSTANCE_HOME/bin/zopectl restart
eend $?
}
kill() {
ebegin "Killing Zope in INSTANCE_HOME"
INSTANCE_HOME/bin/zopectl kill
eend $?
}
quit() {
ebegin "Quitting Zope Daemon Manager INSTANCE_HOME"
INSTANCE_HOME/bin/zopectl quit
eend $?
}
reload() {
ebegin "Reloading Zope config in INSTANCE_HOME"
INSTANCE_HOME/bin/zopectl reload
eend $?
}
status() {
ebegin "Status of Zope in INSTANCE_HOME"
INSTANCE_HOME/bin/zopectl status
eend $?
}
help() {
ebegin "Help for Zope Daemon Manager in INSTANCE_HOME"
INSTANCE_HOME/bin/zopectl help
eend $?
}
|