Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 217618 Details for
Bug 273138
Update OpenRC detection in existing init.d scripts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
net-p2p/fms: Init script proposed fix
fms.patch (text/plain), 819 bytes, created by
Trevor Summers Smith
on 2010-01-27 17:54:35 UTC
(
hide
)
Description:
net-p2p/fms: Init script proposed fix
Filename:
MIME Type:
Creator:
Trevor Summers Smith
Created:
2010-01-27 17:54:35 UTC
Size:
819 bytes
patch
obsolete
>--- fms 2010-01-25 13:18:15.000000000 -0500 >+++ fms.new 2010-01-25 13:17:53.000000000 -0500 >@@ -3,9 +3,14 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/net-p2p/fms/files/fms,v 1.3 2009/02/12 18:07:25 tommy Exp $ > >+# Check for OpenRC/Baselayout 2 - see bug #270646 >+is_openrc() { >+ [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ] >+} >+ > start() { > ebegin "Starting FMS" >- if [[ -f /etc/init.d/sysfs ]]; then >+ if is_openrc; then > start-stop-daemon -S -u freenet:freenet -d /var/freenet/fms -b -x /usr/bin/fms > eend $? > else >@@ -17,7 +22,7 @@ > > stop() { > ebegin "Stopping FMS" >- if [[ -f /etc/init.d/sysfs ]]; then >+ if is_openrc; then > start-stop-daemon -K -u freenet:freenet -d /var/freenet/fms /usr/bin/fms > eend $? > else
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 273138
: 217618 |
217619
|
217621
|
217622
|
217625
|
217627