Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 17856 Details for
Bug 28940
Add daemontools support to init script for xinetd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Woops. This is the patch. The earlier patch was actually the script itself.
xinetd-patch (text/plain), 1.25 KB, created by
Mark Francis
on 2003-09-16 23:26:50 UTC
(
hide
)
Description:
Woops. This is the patch. The earlier patch was actually the script itself.
Filename:
MIME Type:
Creator:
Mark Francis
Created:
2003-09-16 23:26:50 UTC
Size:
1.25 KB
patch
obsolete
>--- xinetd 2003-09-17 13:25:13.000000000 +1000 >+++ xinetd-new 2003-09-17 13:15:35.000000000 +1000 >@@ -5,20 +5,34 @@ > > opts="start stop reload restart dump check" > >+DAEMONTOOLSDIR="/var/daemontools/xinetd" >+ > depend() { > need net > } > > start() { >- ebegin "Starting xinetd" >- start-stop-daemon --start --quiet --exec /usr/sbin/xinetd \ >- -- -pidfile /var/run/xinetd.pid ${XINETD_OPTS} >- eend $? >+ if [ -x /usr/bin/svc ] && [ -x "${DAEMONTOOLSDIR}/run" ] \ >+ && [ ! -f "${DAEMONTOOLSDIR}/noinit" ] >+ then >+ ebegin "Starting supervised xinetd" >+ /usr/bin/pgrphack /usr/bin/supervise "$DAEMONTOOLSDIR" & >+ else >+ ebegin "Starting xinetd" >+ start-stop-daemon --start --quiet --exec /usr/sbin/xinetd \ >+ -- -pidfile /var/run/xinetd.pid ${XINETD_OPTS} >+ fi >+ eend $? > } > > stop() { > ebegin "Stopping xinetd" >- start-stop-daemon --stop --quiet --pidfile /var/run/xinetd.pid >+ if [ -x /usr/bin/svok ] && /usr/bin/svok "$DAEMONTOOLSDIR" >+ then >+ /usr/bin/svc -dx "$DAEMONTOOLSDIR" >+ else >+ start-stop-daemon --stop --quiet --pidfile /var/run/xinetd.pid >+ fi > eend $? > } > >@@ -39,3 +53,10 @@ > killall -IOT xinetd &>/dev/null > eend $? > } >+ >+status() { >+ if [ -x /usr/bin/svok ] && /usr/bin/svok "$DAEMONTOOLSDIR" >+ then >+ einfo `/usr/bin/svstat "$DAEMONTOOLSDIR"` >+ fi >+}
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 28940
:
17851
|
17852
| 17856