Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] systemd race condition problems



Hi All,

I'm having trouble with httpd and my subversion repository setup. I'm 
using mod_dav_svn apache module to access my repository through httpd. 
So here's the rub. I have everything configured and when I go to update 
a file, I get an error that a particular file is not readable. 
(permission denied)

[Sat Aug 30 08:05:27.432294 2014] [:error] [pid 2063] (20014)Internal 
error: [client 71.163.254.54:49330] Can't open file 
'/export/telacode/base/SVNRepositories/TelaCodeRepository/format': 
Permission denied


The odd bit is the file is world readable.

[root at telacode ~]# ls -l 
/export/telacode/base/SVNRepositories/TelaCodeRepository/format
-r--r--r--. 1 softadmin telacoderepository 2 Feb 12  2007 
/export/telacode/base/SVNRepositories/TelaCodeRepository/format


The solution to my problem is to restart apache with the command 
'apachectl restart'. Then I can update my repository through the http 
mod_dav_svn.

The file system is located on a raid 5 array

[root at telacode ~]# df /export
Filesystem      1K-blocks      Used  Available Use% Mounted on
/dev/md3       1892209456 129889412 1664627680   8% /export

and I'm thinking that the process which mounts/activates the file system 
is slower than the apache service startup process. (rhel 7 now uses 
systemd instead of sysVinit).

So, any ideas on how to delay apache startup so that it is guaranteed to 
start after the /export file system is fully mounted and available to 
the system?

Thanks. Steve.



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org