Revision 63b44eed
Added by Jim Pingle over 8 years ago
src/etc/inc/services.inc | ||
---|---|---|
2300 | 2300 |
echo gettext("Starting SNMP daemon... "); |
2301 | 2301 |
} |
2302 | 2302 |
|
2303 |
/* Make sure a printcap file exists or else bsnmpd will log errors. See https://redmine.pfsense.org/issues/6838 */ |
|
2304 |
if (!file_exists('/etc/printcap')) { |
|
2305 |
@file_put_contents('/etc/printcap', "# Empty file to prevent bsnmpd from logging errors.\n"); |
|
2306 |
} |
|
2307 |
|
|
2303 | 2308 |
/* generate snmpd.conf */ |
2304 | 2309 |
$fd = fopen("{$g['varetc_path']}/snmpd.conf", "w"); |
2305 | 2310 |
if (!$fd) { |
Also available in: Unified diff
Create a dummy /etc/printcap when starting bsnmpd so it it will not log errors. Fixes #6838