SCIENTIFIC-LINUX-DEVEL Archives

January 2015

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stephan Wiesand <[log in to unmask]>
Reply To:
Stephan Wiesand <[log in to unmask]>
Date:
Wed, 14 Jan 2015 14:51:10 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Hi,

> On 13 Jan 2015, at 23:56, Chad William Seys <[log in to unmask]> wrote:
> 
> Hi,
> The package openafs-1.6-sl-client 1.6.10-0.152.pre1.el7 creates the
> directory /var/cache/afs ,
> but its configuration files /etc/sysconfig/afs and /usr/vice/etc/cacheinfo
> the cache directory is called /cache .

% rpm2cpio openafs-1.6-sl-1.6.10-0.152.pre1.el7.x86_64.rpm | cpio -id 
21904 blocks
% grep CACHEDIR ./etc/sysconfig/afs
CACHEDIR=/var/cache/afs

and this is what gets propagated into cacheinfo. Seems consistent to me. What am I missing?

> I do not have a separate partition mounted at /cache, so perhaps this is the
> oddity which exposes this mismatch in where the cache is thought to be.
> Perhaps the openafs-client package should create /cache if it does not
> exist? (Possibly instead of /var/cache/afs.)

If you change the sysconfig file, why not also create the directory?

I'm not sure the init script should create the cache directory. NB with SELinux, there's quite a bit more to do than just "mkdir".

But it should probably bail out if the cache directory doesn't exist.

Thoughts welcome.

> I was sent here by patriehecky from the SL forums.

Well done, Pat ;-)

Stephan
> 
> Thanks,
> Chad. 
> 
> P.S.  Sorry for multiple copies.  The web form did not give very good 
> feedback, so I was uncertain whether the submit there worked.

ATOM RSS1 RSS2