Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 258976 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 deluge-web
deluge-web.init (text/plain), 1.67 KB, created by
Cameron Tacklind
on 2011-01-05 19:09:24 UTC
(
hide
)
Description:
New init.d file for deluge-web
Filename:
MIME Type:
Creator:
Cameron Tacklind
Created:
2011-01-05 19:09:24 UTC
Size:
1.67 KB
patch
obsolete
>#!/sbin/runscript > >depend() { > need net >} > >checkconfig() { > if [ "${DELUGE_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 DELUGE_USER to your needs (you can also add a group, after a colon)" > return 1 > fi > > if [ "${DELUGE_USER%:*}" != "${DELUGE_USER}" ] ; then > DELUGE_GROUP=${DELUGE_USER#*:} > DELUGE_USER=${DELUGE_USER%:*} > fi > > if ! getent passwd "${DELUGE_USER}" >/dev/null ; then > eerror "Please edit /etc/conf.d/${SVCNAME}" > eerror "Your user has to exist!" > return 1 > fi > > if [ "${DELUGE_GROUP}" = "" ] ; then > return 0 > fi > > if ! getent group "${DELUGE_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" > >start() { > checkconfig || return $? > if [ "${DELUGE_HOME}" = "" ] ; then > DELUGE_USER_HOME=$(getent passwd "${DELUGE_USER}" | cut -d ':' -f 6) > else > DELUGE_USER_HOME=${DELUGE_HOME} > fi > > if [ "${DELUGE_CONFIG_DIR}" = "" ] ; then > DELUGE_CONFIG_DIR="${DELUGE_USER_HOME}/.config/deluge/" > fi > > DELUGE_OPTS="${DELUGE_OPTS} -f" > DELUGE_OPTS="${DELUGE_OPTS} -U ${DELUGE_USER}" > DELUGE_OPTS="${DELUGE_OPTS} -P ${PIDFILE}" > DELUGE_OPTS="${DELUGE_OPTS} -c ${DELUGE_CONFIG_DIR}" > > if [ "${DELUGE_GROUP}" != "" ] ; then > DELUGE_OPTS="${DELUGE_OPTS} -g ${DELUGE_GROUP}" > fi > > ebegin "Starting Deluge Web UI" > start-stop-daemon --start --name deluge-web --pidfile ${PIDFILE} --exec /usr/bin/deluge-web -- ${DELUGE_OPTS} > eend $? >} > >stop() { > ebegin "Stopping Deluge Web UI" > start-stop-daemon --stop --name deluge-web --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