Lines Matching refs:Service
109 Result<Success> Service::SetUpMountNamespace() const { in SetUpMountNamespace()
144 Result<Success> Service::SetUpPidNamespace() const { in SetUpPidNamespace()
177 Result<Success> Service::EnterNamespaces() const { in EnterNamespaces()
216 unsigned long Service::next_start_order_ = 1;
217 bool Service::is_exec_service_running_ = false;
219 Service::Service(const std::string& name, Subcontext* subcontext_for_restart_commands, in Service() function in android::init::Service
221 : Service(name, 0, 0, 0, {}, 0, "", subcontext_for_restart_commands, args) {} in Service()
223 Service::Service(const std::string& name, unsigned flags, uid_t uid, gid_t gid, in Service() function in android::init::Service
246 void Service::NotifyStateChange(const std::string& new_state) const { in NotifyStateChange()
264 void Service::KillProcessGroup(int signal) { in KillProcessGroup()
283 void Service::SetProcessAttributes() { in SetProcessAttributes()
342 void Service::Reap(const siginfo_t& siginfo) { in Reap()
409 void Service::DumpState() const { in DumpState()
417 Result<Success> Service::ParseCapabilities(std::vector<std::string>&& args) { in ParseCapabilities()
446 Result<Success> Service::ParseClass(std::vector<std::string>&& args) { in ParseClass()
451 Result<Success> Service::ParseConsole(std::vector<std::string>&& args) { in ParseConsole()
457 Result<Success> Service::ParseCritical(std::vector<std::string>&& args) { in ParseCritical()
462 Result<Success> Service::ParseDisabled(std::vector<std::string>&& args) { in ParseDisabled()
468 Result<Success> Service::ParseEnterNamespace(std::vector<std::string>&& args) { in ParseEnterNamespace()
482 Result<Success> Service::ParseGroup(std::vector<std::string>&& args) { in ParseGroup()
499 Result<Success> Service::ParsePriority(std::vector<std::string>&& args) { in ParsePriority()
510 Result<Success> Service::ParseInterface(std::vector<std::string>&& args) { in ParseInterface()
541 Result<Success> Service::ParseIoprio(std::vector<std::string>&& args) { in ParseIoprio()
559 Result<Success> Service::ParseKeycodes(std::vector<std::string>&& args) { in ParseKeycodes()
591 Result<Success> Service::ParseOneshot(std::vector<std::string>&& args) { in ParseOneshot()
596 Result<Success> Service::ParseOnrestart(std::vector<std::string>&& args) { in ParseOnrestart()
605 Result<Success> Service::ParseNamespace(std::vector<std::string>&& args) { in ParseNamespace()
620 Result<Success> Service::ParseOomScoreAdjust(std::vector<std::string>&& args) { in ParseOomScoreAdjust()
627 Result<Success> Service::ParseOverride(std::vector<std::string>&& args) { in ParseOverride()
632 Result<Success> Service::ParseMemcgSwappiness(std::vector<std::string>&& args) { in ParseMemcgSwappiness()
639 Result<Success> Service::ParseMemcgLimitInBytes(std::vector<std::string>&& args) { in ParseMemcgLimitInBytes()
646 Result<Success> Service::ParseMemcgLimitPercent(std::vector<std::string>&& args) { in ParseMemcgLimitPercent()
653 Result<Success> Service::ParseMemcgLimitProperty(std::vector<std::string>&& args) { in ParseMemcgLimitProperty()
658 Result<Success> Service::ParseMemcgSoftLimitInBytes(std::vector<std::string>&& args) { in ParseMemcgSoftLimitInBytes()
665 Result<Success> Service::ParseProcessRlimit(std::vector<std::string>&& args) { in ParseProcessRlimit()
673 Result<Success> Service::ParseRestartPeriod(std::vector<std::string>&& args) { in ParseRestartPeriod()
682 Result<Success> Service::ParseSeclabel(std::vector<std::string>&& args) { in ParseSeclabel()
687 Result<Success> Service::ParseSigstop(std::vector<std::string>&& args) { in ParseSigstop()
692 Result<Success> Service::ParseSetenv(std::vector<std::string>&& args) { in ParseSetenv()
697 Result<Success> Service::ParseShutdown(std::vector<std::string>&& args) { in ParseShutdown()
705 Result<Success> Service::ParseTimeoutPeriod(std::vector<std::string>&& args) { in ParseTimeoutPeriod()
715 Result<Success> Service::AddDescriptor(std::vector<std::string>&& args) { in AddDescriptor()
750 Result<Success> Service::ParseSocket(std::vector<std::string>&& args) { in ParseSocket()
759 Result<Success> Service::ParseFile(std::vector<std::string>&& args) { in ParseFile()
774 Result<Success> Service::ParseUser(std::vector<std::string>&& args) { in ParseUser()
783 Result<Success> Service::ParseWritepid(std::vector<std::string>&& args) { in ParseWritepid()
789 Result<Success> Service::ParseUpdatable(std::vector<std::string>&& args) { in ParseUpdatable()
794 class Service::OptionParserMap : public KeywordMap<OptionParser> {
802 const Service::OptionParserMap::Map& Service::OptionParserMap::map() const { in map()
807 {0, kMax, &Service::ParseCapabilities}}, in map()
808 {"class", {1, kMax, &Service::ParseClass}}, in map()
809 {"console", {0, 1, &Service::ParseConsole}}, in map()
810 {"critical", {0, 0, &Service::ParseCritical}}, in map()
811 {"disabled", {0, 0, &Service::ParseDisabled}}, in map()
813 {2, 2, &Service::ParseEnterNamespace}}, in map()
814 {"file", {2, 2, &Service::ParseFile}}, in map()
815 {"group", {1, NR_SVC_SUPP_GIDS + 1, &Service::ParseGroup}}, in map()
816 {"interface", {2, 2, &Service::ParseInterface}}, in map()
817 {"ioprio", {2, 2, &Service::ParseIoprio}}, in map()
818 {"keycodes", {1, kMax, &Service::ParseKeycodes}}, in map()
820 {1, 1, &Service::ParseMemcgLimitInBytes}}, in map()
822 {1, 1, &Service::ParseMemcgLimitPercent}}, in map()
824 {1, 1, &Service::ParseMemcgLimitProperty}}, in map()
826 {1, 1, &Service::ParseMemcgSoftLimitInBytes}}, in map()
828 {1, 1, &Service::ParseMemcgSwappiness}}, in map()
829 {"namespace", {1, 2, &Service::ParseNamespace}}, in map()
830 {"oneshot", {0, 0, &Service::ParseOneshot}}, in map()
831 {"onrestart", {1, kMax, &Service::ParseOnrestart}}, in map()
833 {1, 1, &Service::ParseOomScoreAdjust}}, in map()
834 {"override", {0, 0, &Service::ParseOverride}}, in map()
835 {"priority", {1, 1, &Service::ParsePriority}}, in map()
837 {1, 1, &Service::ParseRestartPeriod}}, in map()
838 {"rlimit", {3, 3, &Service::ParseProcessRlimit}}, in map()
839 {"seclabel", {1, 1, &Service::ParseSeclabel}}, in map()
840 {"setenv", {2, 2, &Service::ParseSetenv}}, in map()
841 {"shutdown", {1, 1, &Service::ParseShutdown}}, in map()
842 {"sigstop", {0, 0, &Service::ParseSigstop}}, in map()
843 {"socket", {3, 6, &Service::ParseSocket}}, in map()
845 {1, 1, &Service::ParseTimeoutPeriod}}, in map()
846 {"updatable", {0, 0, &Service::ParseUpdatable}}, in map()
847 {"user", {1, 1, &Service::ParseUser}}, in map()
848 {"writepid", {1, kMax, &Service::ParseWritepid}}, in map()
854 Result<Success> Service::ParseLine(std::vector<std::string>&& args) { in ParseLine()
863 Result<Success> Service::ExecStart() { in ExecStart()
887 Result<Success> Service::Start() { in Start()
1134 Result<Success> Service::StartIfNotDisabled() { in StartIfNotDisabled()
1143 Result<Success> Service::Enable() { in Enable()
1151 void Service::Reset() { in Reset()
1155 void Service::ResetIfPostData() { in ResetIfPostData()
1164 Result<Success> Service::StartIfPostData() { in StartIfPostData()
1174 void Service::Stop() { in Stop()
1178 void Service::Terminate() { in Terminate()
1187 void Service::Timeout() { in Timeout()
1199 void Service::Restart() { in Restart()
1212 void Service::StopOrReset(int how) { in StopOrReset()
1244 void Service::ZapStdio() const { in ZapStdio()
1253 void Service::OpenConsole() const { in OpenConsole()
1270 void ServiceList::AddService(std::unique_ptr<Service> service) { in AddService()
1274 std::unique_ptr<Service> Service::MakeTemporaryOneshotService(const std::vector<std::string>& args)… in MakeTemporaryOneshotService()
1334 return std::make_unique<Service>(name, flags, *uid, *gid, supp_gids, namespace_flags, seclabel, in MakeTemporaryOneshotService()
1339 const std::vector<Service*> ServiceList::services_in_shutdown_order() const { in services_in_shutdown_order()
1340 std::vector<Service*> shutdown_services; in services_in_shutdown_order()
1349 void ServiceList::RemoveService(const Service& svc) { in RemoveService()
1351 [&svc] (const std::unique_ptr<Service>& s) { in RemoveService()
1380 Service* service = FindService(name); in MarkServicesUpdate()
1392 void ServiceList::DelayService(const Service& service) { in DelayService()
1432 service_ = std::make_unique<Service>(name, restart_action_subcontext, str_args); in ParseSection()
1442 Service* old_service = service_list_->FindService(service_->name()); in EndSection()