]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/main.c
AFP statistics via dbus IPC
[netatalk.git] / etc / afpd / main.c
index a66e4a86f47dae01bd3a23d6a05a5db8bbc2b07e..2265047958dc35f5b56512f272b129d0984652fd 100644 (file)
@@ -38,6 +38,7 @@
 #include "fork.h"
 #include "uam_auth.h"
 #include "afp_zeroconf.h"
+#include "afpstats.h"
 
 #define AFP_LISTENERS 32
 #define FDSET_SAFETY  5
@@ -326,6 +327,11 @@ int main(int ac, char **av)
     /* set limits */
     (void)setlimits();
 
+#ifdef HAVE_DBUS_GLIB
+    /* Run dbus AFP statics thread */
+    (void)afpstats_init(server_children);
+#endif
+
     afp_child_t *child;
     int recon_ipc_fd;
     pid_t pid;