- /* w/ a configuration file, we can force a re-read if we want */
- nologin++;
- if ((nologin + 1) & 1) {
- AFPConfig *config;
-
- syslog(LOG_INFO, "re-reading configuration file");
- for (config = configs; config; config = config->next)
- if (config->server_cleanup)
- config->server_cleanup(config);
-
- configfree(configs, NULL);
- if (!(configs = configinit(&default_options))) {
- syslog(LOG_ERR, "config re-read: no servers configured");
- afp_exit(1);
- }
- FD_ZERO(&save_rfds);
- for (config = configs; config; config = config->next) {
- if (config->fd < 0)
- continue;
- FD_SET(config->fd, &save_rfds);
- }
- } else {
- syslog(LOG_INFO, "disallowing logins");
- auth_unload();
- }
- break;
+ /* w/ a configuration file, we can force a re-read if we want */
+ nologin++;
+ if ((nologin + 1) & 1) {
+ AFPConfig *config;
+
+ LOG(log_info, logtype_afpd, "re-reading configuration file");
+ for (config = configs; config; config = config->next)
+ if (config->server_cleanup)
+ config->server_cleanup(config);
+
+ configfree(configs, NULL);
+ if (!(configs = configinit(&default_options))) {
+ LOG(log_error, logtype_afpd, "config re-read: no servers configured");
+ afp_exit(1);
+ }
+ FD_ZERO(&save_rfds);
+ for (config = configs; config; config = config->next) {
+ if (config->fd < 0)
+ continue;
+ FD_SET(config->fd, &save_rfds);
+ }
+ } else {
+ LOG(log_info, logtype_afpd, "disallowing logins");
+ auth_unload();
+ }
+ break;