Dansguardian startup problems - 2.12.0.3 pkg v.0.1.8 - pfSense 2.1
-
Having an odd issue anytime I reboot pfSense and DansGuardian. That is, DG will not start, nor will it restart via the Services page. The system.log reports the following:
php: /pkg_edit.php: The command '/usr/local/etc/rc.d/dansguardian.sh start' returned exit code '127', the output was '/usr/local/etc/rc.d/dansguardian.sh: not found'
Looking at dansguardian.sh, I discovered the file is CRLF terminated and not LF terminated which is causing the system to try to execute "/bin/sh[CR]" to process the script. Stripping the CR's allows the service to run properly.
This script is replaced on every boot, requiring me to strip the CR's out again. Any suggestions?