Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 258975 Details for
Bug 350213
net-p2p/deluge uses single rc script for two daemons
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
New init.d file for deluged
deluged.init (text/plain), 2.06 KB, created by
Cameron Tacklind
on 2011-01-05 19:09:11 UTC
(
hide
)
Description:
New init.d file for deluged
Filename:
MIME Type:
Creator:
Cameron Tacklind
Created:
2011-01-05 19:09:11 UTC
Size:
2.06 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License, v2 or later ># $Header: /var/cvsroot/gentoo-x86/net-p2p/deluge/files/deluged.init,v 1.6 2010/10/02 15:36:03 armin76 Exp $ > >depend() { > need net >} > >checkconfig() { > if [ "${DELUGED_USER}" = "" ] ; then > eerror "Please edit /etc/conf.d/${SVCNAME}" > eerror "You have to specify a user to run deluged as, as we will not run it as root!" > eerror "Modify DELUGED_USER to your needs (you can also add a group, after a colon)" > return 1 > fi > > if [ "${DELUGED_USER%:*}" != "${DELUGED_USER}" ] ; then > DELUGED_GROUP=${DELUGED_USER#*:} > DELUGED_USER=${DELUGED_USER%:*} > fi > > if ! getent passwd "${DELUGED_USER}" >/dev/null ; then > eerror "Please edit /etc/conf.d/${SVCNAME}" > eerror "Your user has to exist!" > return 1 > fi > > if [ "${DELUGED_GROUP}" = "" ] ; then > return 0 > fi > > if ! getent group "${DELUGED_GROUP}" >/dev/null ; then > eerror "Please edit /etc/conf.d/${SVCNAME}" > eerror "Your group has to exist too!" > return 1 > fi > return 0 >} > >PIDFILE="/var/run/${SVCNAME}.pid" >if [ "${RC_COSMETIC_NAME}" = "" ]; then > RC_COSMETIC_NAME="Deluged" > if [ "${SVCNAME}" != "deluged" ]; then > RC_COSMETIC_NAME="${RC_COSMETIC_NAME} (${SVCNAME})" > fi >fi > >start() { > checkconfig || return $? > if [ "${DELUGED_HOME}" = "" ] ; then > DELUGED_USER_HOME=$(getent passwd "${DELUGED_USER}" | cut -d ':' -f 6) > else > DELUGED_USER_HOME=${DELUGED_HOME} > fi > > if [ "${DELUGED_CONFIG_DIR}" = "" ] ; then > DELUGED_CONFIG_DIR="${DELUGED_USER_HOME}/.config/deluge/" > fi > > DELUGED_OPTS="${DELUGED_OPTS} -U ${DELUGED_USER}" > DELUGED_OPTS="${DELUGED_OPTS} -P ${PIDFILE}" > DELUGED_OPTS="${DELUGED_OPTS} -c ${DELUGED_CONFIG_DIR}" > > if [ "${DELUGED_GROUP}" != "" ] ; then > DELUGED_OPTS="${DELUGED_OPTS} -g ${DELUGED_GROUP}" > fi > > ebegin "Starting ${RC_COSMETIC_NAME}" > start-stop-daemon --start --name deluged --pidfile ${PIDFILE} --exec /usr/bin/deluged -- ${DELUGED_OPTS} > eend $? >} > >stop() { > ebegin "Stopping ${RC_COSMETIC_NAME}" > start-stop-daemon --stop --name deluged --pidfile ${PIDFILE} > 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 350213
:
258495
|
258969
|
258971
|
258973
| 258975 |
258976
|
258978
|
258979
|
259879
|
259880