There is a small error in /etc/init.d/openafs-client. The error is on line 14, the if statement. It checks if $OPTIONS equals the "AUTOMATIC" string, however the default setup in /etc/conf.d/openafs-client has the OPTIONS equal to "AUTOMATIC -nosettime -memcache -verbose" which is wrong. What I think was meant here is if $OPTIONS contains the string AUTOMATIC. I fixed it by changing line 14 to: if [[ -z "$OPTIONS" || "${OPTIONS%% *}" == "AUTOMATIC" ]]; then which does work. Reproducible: Always Steps to Reproduce: 1.emerge openafs 2.try to start openafs-client by issuing "/etc/init.d/openafs-client start" Actual Results: I get red exclamation points that the process has not started, and there is no way to start the application. Expected Results: The software should have started "afsd" the openafs client. No other information is necessary since this is a scripting issue.
If I look at my own clean install, the default setup in /etc/conf.d/openafs-client has OPTIONS set to "AUTOMATIC"... Are you sure you have a clean install?
(In reply to comment #1) > If I look at my own clean install, the default setup in > /etc/conf.d/openafs-client has OPTIONS set to "AUTOMATIC"... Are you sure you > have a clean install? > I believe that is because you have net-fs/openafs-1.4.6 installed. The current unmasked version is net-fs/openafs-1.4.6_p20080222, which is the one that I installed. Please try to upgrade and see if you find the same error.
Since all openafs-1.4.x version currently in the tree are supposed to install identical /etc/conf.d/openafs-client files, I would urge you to check again. Most likely this change was made locally on your system.
Would u mean that I edited /etc/conf.d/openafs-client manually? I specifically remember that I had to install openafs on another client machine, and I still got the same /etc/conf.d/openafs-client file. Regardless, should the script not look whether only the first word is AUTOMATIC, not whether the whole variable equals AUTOMATIC. I didnt change the script, but if someone else changed it, because it is a user-definable variable, they should be able to append to the $OPTIONS variable and it should still recognize the AUTOMATIC keyword. Im positive that I didnt manually change the variables. Not only that, I installed openafs on a clean genkernel system, there wasnt much installed.
I have just newly installed 1.4.6_p20080222 on a new system and I have: OPTIONS="AUTOMATIC"
The "AUTOMATIC" option was never supposed to be combined with extra user options. Either you have your options chosen automatically, or you specify them all. Supporting the combination seems more like trouble to me than like a useful feature. Sorry.