Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 17851 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]
Patch for xinetd init script to support daemontools if installed
xinetd (text/plain), 1.32 KB, created by
Mark Francis
on 2003-09-16 23:19:10 UTC
(
hide
)
Description:
Patch for xinetd init script to support daemontools if installed
Filename:
MIME Type:
Creator:
Mark Francis
Created:
2003-09-16 23:19:10 UTC
Size:
1.32 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/sys-apps/xinetd/files/xinetd.rc6,v 1.13 2003/05/19 16:48:39 mholzer Exp $ > >opts="start stop reload restart dump check" > >DAEMONTOOLSDIR="/var/daemontools/xinetd" > >depend() { > need net >} > >start() { > 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" > 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 $? >} > >reload(){ > ebegin "Reloading configuration" > killall -HUP xinetd &>/dev/null > eend $? >} > >dump(){ > ebegin "Dumping configuration" > killall -USR1 xinetd &>/dev/null > eend $? >} > >check(){ > ebegin "Performing Consistency Check" > 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