Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 30910 Details for
Bug 41508
Zope-2.7.0 is the latest STABLE release
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
proposed replacement for net-zope/zope/files/2.7.0/zope.initd
zope.initd (text/plain), 2.09 KB, created by
Carter Smithhart
on 2004-05-07 00:39:37 UTC
(
hide
)
Description:
proposed replacement for net-zope/zope/files/2.7.0/zope.initd
Filename:
MIME Type:
Creator:
Carter Smithhart
Created:
2004-05-07 00:39:37 UTC
Size:
2.09 KB
patch
obsolete
>#!/sbin/runscript ># Zope rc-script for Gentoo Linux ># Copyright 2002-2003 by Jason Shoemaker ># Distributed under the terms of the GNU General Public License, v2 or later. ># $Header: /home/cvsroot/gentoo-x86/net-zope/zope/files/2.6.4/zope.initd,v 1.1 2004/03/14 12:32:15 lanius Exp $ > >python=python >ZINST_DIR= >ZOPE_OPTS= >EVENT_LOG_FILE= >PIDFILE=${ZINST_DIR}/var/zope.pid > >depend() >{ > need net >} > ># Since zope doesn't delete its .pid file when done, we have to determine its ># status. Zope can be shutdown from a browser...this bypasses init.d. > ># Need to export these conf.d variables so that (env) can use them > ># Check if the file exist. then send file to stdout. ># Parameters: ># $1 = /path/to/pid.file ># Outputs: > >read_pid() >{ > if [ -f "${1}" ] ; then > cat ${1} > fi >} > ># Check if we have a living PID, if not delete the PID FILE ># Parameters: ># $1 = /path/to/pid.file ># Returns: ># 0 if alive pid file remains ># 1 if dead pid file removed ># 2 if no pid file found > >check_pid_status() >{ > local RESULT=2 # assume no pid file will be found > local PID=$(read_pid ${1}) > > if [ -n "${PID}" ] ; then > ps --no-headers ${PID} > /dev/null 2>&1 > if [ "${?}" -eq 0 ] ; then > RESULT=0 > else > rm -f ${1} > RESULT=1 > fi > fi > > return ${RESULT} >} > ># Parameters: ># None ># Returns: ># 0 true ># 1 false and echos /pathname/to/pid/file > >is_zope_dead() >{ > local RESULT= > > check_pid_status ${PIDFILE} > RESULT=${?} > if [ "${RESULT}" -eq 0 ] ; then > echo "${PIDFILE}" > RESULT=10 > break # found a live pid > fi > > if [ "${RESULT}" -eq 10 ] ; then > RESULT=1 > else > RESULT=0 > fi > > return ${RESULT} >} > >status() >{ > if is_zope_dead ; then > eerror "--> Zope is dead." > else > einfo "--> Zope is alive." > fi > return ${?} >} > >start() >{ > ebegin "Starting zope" > start-stop-daemon --start --quiet --exec ${ZINST_DIR}/bin/runzope --make-pidfile --pidfile ${PIDFILE} > ${EVENT_LOG_FILE} 2>&1 & > eend $? "Failed to start zope" >} > > >stop() >{ > ebegin "Stopping zope" > start-stop-daemon --stop --quiet --pidfile ${PIDFILE} > eend $? "Failed to stop zope" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 41508
:
28323
|
30905
|
30906
|
30907
|
30909
| 30910 |
33521
|
33950
|
33951
|
33952
|
34055
|
34059
|
34078
|
35340
|
35399
|
35770
|
35771
|
35865