- lprintf(1, PACKAGE_STRING "\n");
- lprintf(1, "Copyright (C) 1996-2010 by the Citadel development team.\n"
- "This software is distributed under the terms of the "
- "GNU General Public License.\n\n"
- );
-
-
- /* initialize the International Bright Young Thing */
+ syslog(LOG_NOTICE, "%s", PACKAGE_STRING);
+ syslog(LOG_NOTICE, "Copyright (C) 1996-2024 by the citadel.org team");
+ syslog(LOG_NOTICE, " ");
+ syslog(LOG_NOTICE, "This program is open source software. Use, duplication, or disclosure");
+ syslog(LOG_NOTICE, "is subject to the terms of the GNU General Public License, version 3.");
+ syslog(LOG_NOTICE, " ");
+
+ /* run from the webcit home directory */
+ if (chdir(webcitdir) != 0) {
+ syslog(LOG_ERR, "webcit: %s: %m", webcitdir);
+ exit(errno);
+ }