The first thing I noticed is that the startup (init) script takes a good long time to complete, and leaves an error message:
- Code: Select all
[root@ns init.d]# service clamd restart
Restarting clamd (via systemctl): Job for clamd.service failed. See 'systemctl status clamd.service' and 'journalctl -n' for details.
[FAILED]
Reading through the clamd.log, we see the following info:
- Code: Select all
Sat Dec 7 14:42:53 2013 -> Running as user defang (UID 503, GID 503)
Sat Dec 7 14:42:53 2013 -> Log file size limited to 20971520 bytes.
Sat Dec 7 14:42:53 2013 -> Reading databases from /var/share/clamav
Sat Dec 7 14:42:53 2013 -> Not loading PUA signatures.
Sat Dec 7 14:42:53 2013 -> Bytecode: Security mode set to "TrustSigned".
Sat Dec 7 14:43:05 2013 -> Loaded 3006535 signatures.
Sat Dec 7 14:43:09 2013 -> LOCAL: Unix socket file /tmpfs/clamd.socket
Sat Dec 7 14:43:09 2013 -> LOCAL: Setting connection queue length to 20
Sat Dec 7 14:43:09 2013 -> Limits: Global size limit set to 52428800 bytes.
Sat Dec 7 14:43:09 2013 -> Limits: File size limit set to 26214400 bytes.
Sat Dec 7 14:43:09 2013 -> Limits: Recursion level limit set to 10.
Sat Dec 7 14:43:09 2013 -> Limits: Files limit set to 500.
Sat Dec 7 14:43:09 2013 -> Limits: Core-dump limit is 0.
Sat Dec 7 14:43:09 2013 -> Archive support enabled.
Sat Dec 7 14:43:09 2013 -> Algorithmic detection enabled.
Sat Dec 7 14:43:09 2013 -> Portable Executable support enabled.
Sat Dec 7 14:43:09 2013 -> ELF support enabled.
Sat Dec 7 14:43:09 2013 -> Mail files support enabled.
Sat Dec 7 14:43:09 2013 -> OLE2 support enabled.
Sat Dec 7 14:43:09 2013 -> PDF support enabled.
Sat Dec 7 14:43:09 2013 -> HTML support enabled.
Sat Dec 7 14:43:09 2013 -> Self checking every 900 seconds.
Sat Dec 7 14:43:09 2013 -> ERROR: Can't save PID in file /var/run/clamd.pid
Sat Dec 7 14:43:09 2013 -> Listening daemon: PID: 5833
Sat Dec 7 14:43:09 2013 -> MaxQueue set to: 200
Sat Dec 7 14:43:09 2013 -> Set stacksize to 8454144
Sat Dec 7 14:58:09 2013 -> No stats for Database check - forcing reload
Sat Dec 7 14:58:10 2013 -> Reading databases from /var/share/clamav
Sat Dec 7 14:58:25 2013 -> Database correctly reloaded (3006535 signatures)
Sat Dec 7 15:13:25 2013 -> SelfCheck: Database status OK.
Sat Dec 7 15:28:25 2013 -> SelfCheck: Database status OK.
Sat Dec 7 15:43:25 2013 -> SelfCheck: Database status OK.
The interesting thing to notice is that the Clamd Daemon IS running, eventhough the startup indicates a failure.
Why?
Why is the Dameon having an issue writing the PID file?
Should I ignore this issue (I really don't want to).
Any suggestions?