Daemon script for controller.