COSD (class of service daemon process) waits for the event notifications and processes the events that it is registered for. There was an error during event handling initialization.
The COSD_UNEXPECTED_EXIT message is logged each time the class of service encounters an initialization error for an event sent to it.
When a COSD_UNEXPECTED_EXIT event occurs, a message similar to the following is reported:
cosd: COSD_UNEXPECTED_EXIT: Error: Invalid argument
This event will cause the cosd daemon to terminate immediately. It will then be restarted by JunOS. Therefore usually you will see the COSD_UNEXPECTED_EXIT message associated with the following syslog example entries:
init: class-of-service (PID 1061) exited with status=255
init: class-of-service (PID 5323) started
The cause of the COSD_UNEXPECTED_EXIT event is due to an internal software failure occurring.
Examine the following output to help determine the cause of this message:
show log cosd
show log messages
Look for any related events that occurred at or just before the COSD_UNEXPECTED_EXIT message.