code: def set_proctitle(self, daemon_name=None):
          
          logger.debug("Setting my process name: %s", daemon_name)
          if daemon_name:
              setproctitle("alignak-%s %s" % (self.type, daemon_name))
              if self.modules_manager:
                  self.modules_manager.set_daemon_name(daemon_name)
          else:
              setproctitle("alignak-%s" % self.type)
docs: Set the proctitle of the daemon
  
          :param daemon_name: daemon instance name (eg. arbiter-master). If not provided, only the
          daemon type (eg. arbiter) will be used for the process title
          :type daemon_name: str
          :return: None