Revert "make stat_publisher a daemon"

This reverts commit ced6cf2f88a31bd9a1958cf328e9b4a00c9ebda2.