Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 262461 Details for
Bug 354859
net-misc/ices init script enhancement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ices init script
ices.initd (text/plain), 1.45 KB, created by
Vieri
on 2011-02-14 12:55:41 UTC
(
hide
)
Description:
ices init script
Filename:
MIME Type:
Creator:
Vieri
Created:
2011-02-14 12:55:41 UTC
Size:
1.45 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 2003-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License, v2 ># $Header: $ > >ICES_NAME=${SVCNAME##*.} >if [ -n "${ICES_NAME}" -a "${SVCNAME}" != "ices" ]; then > ICES_PID="/var/run/ices.${ICES_NAME}.pid" > ICES_CONF_DEFAULT="/etc/ices2/${ICES_NAME}.xml" >else > ICES_PID="/var/run/ices.pid" > ICES_CONF_DEFAULT="/etc/ices2/ices.xml" >fi >ICES_CONF=${ICES_CONF:-${ICES_CONF_DEFAULT}} >ICES_EXEC=${ICES_EXEC:-/usr/bin/ices} > >depend() { > need net >} > >checkconfig() { > if [ ! -e ${ICES_CONF} ] ; then > eerror "Please setup ${ICES_CONF} before starting ices" > eerror "There are sample configurations in /etc/ices2" > eerror "and more info in usr/share/doc/ices-<version>/" > return 1 > fi > > if egrep -iq "^ *<background> *1" "${ICES_CONF}" ; then > eerror "${ICES_CONF} must not set background to 1" > return 1 > fi > > if egrep -iq "^ *<pidfile>" "${ICES_CONF}" ; then > eerror "${ICES_CONF} must not set pidfile" > return 1 > fi >} > >start() { > checkconfig || return 1 > ebegin "Starting IceS 2 (${SVCNAME})" > start-stop-daemon --background --start \ > --make-pidfile --pidfile "${ICES_PID}" \ > --exec ${ICES_EXEC} "${ICES_CONF}" > eend $? >} > >stop() { > ebegin "Stopping IceS 2 (${SVCNAME})" > if [ -f ${ICES_PID} ]; then > start-stop-daemon --stop --pidfile "${ICES_PID}" > else > ewarn "Couldn't found ${ICES_PID}. Trying to stop over the process name ${SVCNAME}." > start-stop-daemon --stop --name ${SVCNAME} > fi > eend $? >}
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 354859
: 262461