code: func (s *LocalSupervisor) RegisterCriticalFunc(name string, fn ServiceFunc) {
  	s.Register(&LocalService{Function: fn, ServiceName: name, Critical: true})
  }
docs: // RegisterCriticalFunc creates a critical service from function spec and registers
  // it within the system, if this service exits with error,
  // the process shuts down.