Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 304963 Details for
Bug 263687
Generalize the init script for dev-python/twisted
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Improved patch.
twistd.init.patch (text/plain), 1.17 KB, created by
Tom Prince
on 2012-03-12 01:31:29 UTC
(
hide
)
Description:
Improved patch.
Filename:
MIME Type:
Creator:
Tom Prince
Created:
2012-03-12 01:31:29 UTC
Size:
1.17 KB
patch
obsolete
>--- /etc/init.d/twistd 2012-02-23 01:10:00.000000000 -0500 >+++ /tmp/twistd 2012-03-11 20:53:39.767591160 -0400 >@@ -1,5 +1,7 @@ > #!/sbin/runscript > >+: ${TWISTD_PIDFILE:='/var/run/${RC_SVCNAME}.pid'} >+ > depend() { > need net > } >@@ -7,19 +9,19 @@ > start() { > if [[ -z "${TWISTD_OPTS}" ]]; then > eerror "TWISTD_OPTS is not set!" >- eerror "You need to configure twistd in /etc/conf.d/twistd." >+ eerror "You need to configure twistd in /etc/conf.d/${RC_SVCNAME}" > return 1 > fi > export PYTHONPATH >- ebegin "Starting twistd" >- start-stop-daemon --start --quiet --pidfile /var/run/twistd.pid \ >- --exec /usr/bin/twistd -- --pidfile /var/run/twistd.pid \ >+ ebegin "Starting ${RC_SVCNAME}" >+ start-stop-daemon --start --quiet --pidfile ${TWISTD_PIDFILE} \ >+ --exec /usr/bin/twistd -- --pidfile ${TWISTD_PIDFILE} \ > ${TWISTD_OPTS} >- eend $? "Failed to start twistd" >+ eend $? "Failed to start ${RC_SVCNAME}" > } > > stop() { >- ebegin "Stopping twistd" >- start-stop-daemon --stop --quiet --pidfile /var/run/twistd.pid >- eend $? "Failed to stop twistd" >+ ebegin "Stopping ${RC_SVCNAME}" >+ start-stop-daemon --stop --quiet --pidfile ${TWISTD_PIDFILE} >+ eend $? "Failed to stop ${RC_SVCNAME}" > }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263687
:
186177
| 304963