• Home
  • Raw
  • Download

Lines Matching refs:flags_

64     : name_(name), classname_(classname), flags_(0), pid_(0), time_started_(0),  in Service()
73 : name_(name), classname_(classname), flags_(flags), pid_(0), time_started_(0), in Service()
80 if ((flags_ & SVC_EXEC) != 0) { in NotifyStateChange()
97 if (!(flags_ & SVC_ONESHOT) || (flags_ & SVC_RESTART)) { in Reap()
109 if (flags_ & SVC_EXEC) { in Reap()
115 flags_ &= (~SVC_RUNNING); in Reap()
119 if ((flags_ & SVC_ONESHOT) && !(flags_ & SVC_RESTART)) { in Reap()
120 flags_ |= SVC_DISABLED; in Reap()
124 if (flags_ & (SVC_DISABLED | SVC_RESET)) { in Reap()
130 if ((flags_ & SVC_CRITICAL) && !(flags_ & SVC_RESTART)) { in Reap()
145 flags_ &= (~SVC_RESTART); in Reap()
146 flags_ |= SVC_RESTARTING; in Reap()
174 flags_ |= SVC_CONSOLE; in HandleConsole()
179 flags_ |= SVC_CRITICAL; in HandleCritical()
184 flags_ |= SVC_DISABLED; in HandleDisabled()
185 flags_ |= SVC_RC_DISABLED; in HandleDisabled()
227 flags_ |= SVC_ONESHOT; in HandleOneshot()
321 flags_ &= (~(SVC_DISABLED|SVC_RESTARTING|SVC_RESET|SVC_RESTART|SVC_DISABLED_START)); in Start()
327 if (flags_ & SVC_RUNNING) { in Start()
331 bool needs_console = (flags_ & SVC_CONSOLE); in Start()
334 flags_ |= SVC_DISABLED; in Start()
342 flags_ |= SVC_DISABLED; in Start()
483 flags_ |= SVC_RUNNING; in Start()
485 if ((flags_ & SVC_EXEC) != 0) { in Start()
496 if (!(flags_ & SVC_DISABLED)) { in StartIfNotDisabled()
499 flags_ |= SVC_DISABLED_START; in StartIfNotDisabled()
505 flags_ &= ~(SVC_DISABLED | SVC_RC_DISABLED); in Enable()
506 if (flags_ & SVC_DISABLED_START) { in Enable()
521 flags_ &= ~(SVC_RESTARTING | SVC_DISABLED_START); in Terminate()
522 flags_ |= SVC_DISABLED; in Terminate()
532 if (flags_ & SVC_RUNNING) { in Restart()
535 } else if (!(flags_ & SVC_RESTARTING)) { in Restart()
545 flags_ &= (~SVC_RESTARTING); in RestartIfNeeded()
560 flags_ &= ~(SVC_RESTARTING | SVC_DISABLED_START); in StopOrReset()
570 flags_ |= (flags_ & SVC_RC_DISABLED) ? SVC_DISABLED : SVC_RESET; in StopOrReset()
572 flags_ |= how; in StopOrReset()