1 |
/* syslogd - log system messages |
/* syslogd - log system messages |
2 |
* |
* |
3 |
* Copyright (c) 1983, 1988, 1993, 1994 |
* Copyright (c) 1983, 1988, 1993, 1994, 2002 |
4 |
* The Regents of the University of California. All rights reserved. |
* The Regents of the University of California. All rights reserved. |
5 |
* |
* |
6 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
135 |
# include <syslog-int.h> |
# include <syslog-int.h> |
136 |
#endif |
#endif |
137 |
|
|
|
#include <version.h> |
|
|
|
|
138 |
const char *ConfFile = PATH_LOGCONF; /* Default Configuration file. */ |
const char *ConfFile = PATH_LOGCONF; /* Default Configuration file. */ |
139 |
const char *PidFile = PATH_LOGPID; /* Default path to tuck pid. */ |
const char *PidFile = PATH_LOGPID; /* Default path to tuck pid. */ |
140 |
char ctty[] = PATH_CONSOLE; /* Default console to send message info. */ |
char ctty[] = PATH_CONSOLE; /* Default console to send message info. */ |
329 |
--help Display this help and exit\n\ |
--help Display this help and exit\n\ |
330 |
-V, --version Output version information and exit"); |
-V, --version Output version information and exit"); |
331 |
|
|
332 |
fprintf (stdout, "\nSubmit bug reports to %s.\n", inetutils_bugaddr); |
fprintf (stdout, "\nSubmit bug reports to %s.\n", PACKAGE_BUGREPORT); |
333 |
} |
} |
334 |
exit (err); |
exit (err); |
335 |
} |
} |
452 |
/* Not reached. */ |
/* Not reached. */ |
453 |
|
|
454 |
case 'V': /* Version. */ |
case 'V': /* Version. */ |
455 |
printf ("syslogd (%s) %s\n", inetutils_package, inetutils_version); |
printf ("syslogd (%s) %s\n", PACKAGE_NAME, PACKAGE_VERSION); |
456 |
exit (0); |
exit (0); |
457 |
|
|
458 |
case '?': |
case '?': |
1771 |
} |
} |
1772 |
|
|
1773 |
if (AcceptRemote) |
if (AcceptRemote) |
1774 |
logmsg (LOG_SYSLOG | LOG_INFO, "syslogd (" inetutils_package \ |
logmsg (LOG_SYSLOG | LOG_INFO, "syslogd (" PACKAGE_NAME \ |
1775 |
" " inetutils_version "): restart (remote reception)", |
" " PACKAGE_VERSION "): restart (remote reception)", |
1776 |
LocalHostName, ADDDATE); |
LocalHostName, ADDDATE); |
1777 |
else |
else |
1778 |
logmsg (LOG_SYSLOG | LOG_INFO, "syslogd (" inetutils_package \ |
logmsg (LOG_SYSLOG | LOG_INFO, "syslogd (" PACKAGE_NAME \ |
1779 |
" " inetutils_version "): restart", LocalHostName, ADDDATE); |
" " PACKAGE_VERSION "): restart", LocalHostName, ADDDATE); |
1780 |
dbg_printf ("syslogd: restarted\n"); |
dbg_printf ("syslogd: restarted\n"); |
1781 |
} |
} |
1782 |
|
|