-#ifndef LOG_LOCAL5
-#define LOG_LOCAL5 0
-#endif
- /* Syslog initialisieren */
- openlog( PACKAGE_NAME, LOG_CONS|LOG_PID, LOG_LOCAL5 );
-#endif
-
- /* Hello World! */
- Log( LOG_NOTICE, "%s started.", NGIRCd_Version );
-
- /* Informationen uebern den "Operation Mode" */
- Init_Txt[0] = '\0';
-#ifdef DEBUG
- if( NGIRCd_Debug )
- {
- strlcpy( Init_Txt, "debug-mode", sizeof Init_Txt );
- }
-#endif
- if( ! Is_Daemon )
- {
- if( Init_Txt[0] ) strlcat( Init_Txt, ", ", sizeof Init_Txt );
- strlcat( Init_Txt, "no-daemon-mode", sizeof Init_Txt );
- }
- if( NGIRCd_Passive )
- {
- if( Init_Txt[0] ) strlcat( Init_Txt, ", ", sizeof Init_Txt );
- strlcat( Init_Txt, "passive-mode", sizeof Init_Txt );
- }
-#ifdef SNIFFER
- if( NGIRCd_Sniffer )
- {
- if( Init_Txt[0] ) strlcat( Init_Txt, ", ", sizeof Init_Txt );
- strlcat( Init_Txt, "network sniffer", sizeof Init_Txt );
- }
+#ifdef LOG_DAEMON
+ openlog(PACKAGE, LOG_CONS|LOG_PID, LOG_DAEMON);
+#else
+ openlog(PACKAGE, LOG_CONS|LOG_PID, 0);