Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 211597 Details for
Bug 275014
[ebuild] New package: sys-fs/cachefilesd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
a small fix for the init script
cachefilesd.rc (text/plain), 1.55 KB, created by
Enrico Tagliavini
on 2009-11-30 16:08:00 UTC
(
hide
)
Description:
a small fix for the init script
Filename:
MIME Type:
Creator:
Enrico Tagliavini
Created:
2009-11-30 16:08:00 UTC
Size:
1.55 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2009 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-fs/cachefilesd/cachefilesd/files/cachefilesd.rc ,v 1.0 2000/11/10 18:45:10 [Enrico] Exp $ > > > >depend() { > need localmount > use logger >} > > >checkxattr() >{ > # it is fixed for now but it can be easly get from the config file > local testpath="/var/fscache" > local testfile="${testpath}/xattr-test" > touch ${testfile} > # creates a file in the testpath and tries to set an attribute on it to check > # if the support is avaible > attr -s test -V xattr ${testfile} > /dev/null > local ret=$? > rm ${testfile} > [ ${ret} -ne "0" ] && eerror "xattr support missing on the ${testpath} filesystem" > return ${ret} >} > >start() { > ebegin "Starting cachefilesd" > checkxattr || return $? > # check if the cachefiles modules is loaded (or builtin) > if [ ! -c /dev/cachefiles ] ; then > local ret > einfo "/dev/cachefiles doesn't exist, trying to modprobe cachefiles" > modprobe cachefiles > ret=$? > [ $ret -ne "0" ] && > eerror "cachefiles modules cannot be loaded so cachefilesd >cannot be started, aborting. Did you build fscache in your >kernel? Note that you need a 2.6.30 or better kernel" && > return $ret > fi > start-stop-daemon --start --exec /sbin/cachefilesd --pidfile /var/run/cachefilesd.pid > eend $? "Failed to start cachefilesd. Check the system log to see the error" > >} > >stop() { > ebegin "Stopping cachefilesd" > start-stop-daemon --stop --exec /sbin/cachefilesd --pidfile /var/run/cachefilesd.pid > eend $? "Failed to stop cachefilesd" >} >
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 Raw
Actions:
View
Attachments on
bug 275014
:
195418
|
195421
|
195422
|
209869
|
209874
|
210436
|
210437
|
211597
|
213770
|
213774
|
229209
|
229491
|
231523
|
231525
|
231527