Lines Matching refs:svc

239     Service* svc = ServiceList::GetInstance().FindService(args[1]);  in do_enable()  local
240 if (!svc) return Error() << "Could not find service"; in do_enable()
242 if (auto result = svc->Enable(); !result.ok()) { in do_enable()
377 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_restart() local
378 if (!svc) return Error() << "interface " << args[1] << " not found"; in do_interface_restart()
379 svc->Restart(); in do_interface_restart()
384 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_start() local
385 if (!svc) return Error() << "interface " << args[1] << " not found"; in do_interface_start()
386 if (auto result = svc->Start(); !result.ok()) { in do_interface_start()
393 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_stop() local
394 if (!svc) return Error() << "interface " << args[1] << " not found"; in do_interface_stop()
395 svc->Stop(); in do_interface_stop()
796 Service* svc = ServiceList::GetInstance().FindService(args[1]); in do_start() local
797 if (!svc) return Error() << "service " << args[1] << " not found"; in do_start()
798 if (auto result = svc->Start(); !result.ok()) { in do_start()
805 Service* svc = ServiceList::GetInstance().FindService(args[1]); in do_stop() local
806 if (!svc) return Error() << "service " << args[1] << " not found"; in do_stop()
807 svc->Stop(); in do_stop()
812 Service* svc = ServiceList::GetInstance().FindService(args[1]); in do_restart() local
813 if (!svc) return Error() << "service " << args[1] << " not found"; in do_restart()
814 svc->Restart(); in do_restart()