public function actionStartDaemon() { $isRunning = Setting::get('services.daemon.isRunning', false); if (!$isRunning) { ServiceManager::startDaemon(); } }
public function afterAction($action) { ## Make sure service daemon is started if (!ServiceManager::checkDaemon()) { ServiceManager::startDaemon(); } parent::afterAction($action); return true; }