Revision 6f931ad2
Added by Phil Davis over 11 years ago
etc/inc/service-utils.inc | ||
---|---|---|
49 | 49 |
function write_rcfile($params) { |
50 | 50 |
global $g; |
51 | 51 |
|
52 |
safe_mkdir(RCFILEPREFIX); |
|
52 | 53 |
$rcfile_fullname = RCFILEPREFIX . $params['file']; |
53 | 54 |
if (!file_exists($rcfile_fullname) && !is_link($rcfile_fullname) && !touch($rcfile_fullname)) |
54 | 55 |
return false; |
Also available in: Unified diff
Make sure /usr/local/etc/rc.d exists
On 2.2-ALPHA (i386)built on Mon Apr 21 13:01:11 CDT 2014 (for example) there was /usr/local/etc but not /usr/local/etc/rc.d - when I tried to install bandwidthd, that called write_rcfile() which failed because /usr/local/etc/rc.d did not already exist.
Best to check for it and make it if it does not exist.
(I am guessing that the 2.1.n image builds already had /usr/local/etc/rc.d bnefore any packages were installed, otherwise this problem should have already been an issue prior to 2.2)