Revert "Revert "make stat_publisher a daemon""

This reverts commit 363d49677d58c92e31db4e0f7eefdbeb1aad68a9.