Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 44249 Details for
Bug 71703
multipath-tools-0.3.7.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gentoo patch for the init.d script for multipathd
multipath-tools-gentoo-init.patch (text/plain), 1.35 KB, created by
Richard Westwell
on 2004-11-18 15:20:23 UTC
(
hide
)
Description:
gentoo patch for the init.d script for multipathd
Filename:
MIME Type:
Creator:
Richard Westwell
Created:
2004-11-18 15:20:23 UTC
Size:
1.35 KB
patch
obsolete
>--- multipathd/multipathd.init.org 2004-11-11 23:00:54.000000000 +0000 >+++ multipathd/multipathd.init 2004-11-18 22:54:13.690950296 +0000 >@@ -1,35 +1,41 @@ >-#!/bin/sh >+#!/sbin/runscript > >-PATH=/bin:/usr/bin:/sbin:/usr/sbin >-DAEMON=/usr/bin/multipathd >-PIDFILE=/var/run/multipathd.pid >+depend() { >+ need modules >+} > >-test -x $DAEMON || exit 0 >+start() { >+ PIDFILE="/var/run/multipathd.pid" >+ ebegin "Starting multipath daemon: multipathd" >+ /usr/bin/multipathd >/dev/null 2>&1 >+ >+ while : >+ do >+ cnt=$(($cnt + 1)) >+ if [ -f ${PIDFILE} ]; then >+ ret=0 >+ break >+ fi > >-case "$1" in >- start) >- echo -n "Starting multipath daemon: multipathd" >- $DAEMON >- echo "." >- ;; >- stop) >- echo -n "Stopping multipath daemon: multipathd" >- echo "." >- if [ -f $PIDFILE ] >+ if [ $cnt -eq 5 ]; then >+ eerror "Unable to start multipathd" >+ ret=1 >+ break >+ fi >+ sleep 1 >+ done >+ eend $ret >+} >+ >+stop () { >+ PIDFILE="/var/run/multipathd.pid" >+ ebegin "Stopping multipath daemon: multipathd" >+ if [ -f ${PIDFILE} ] > then >- kill `cat $PIDFILE` >+ kill `cat ${PIDFILE}` > else >- echo "multipathd not running: Nothing to stop..." >+ eerror "multipathd not running: Nothing to stop..." >+ return 1 > fi >- ;; >- force-reload|restart) >- $0 stop >- $0 start >- ;; >- *) >- echo "Usage: /etc/init.d/multipathd {start|stop|restart|force-reload}" >- exit 1 >- ;; >-esac >- >-exit 0 >+ 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 71703
:
44248
| 44249 |
44855
|
45645
|
52074
|
52512
|
55616