docs: def notify(self, state):
          """Send a notification to systemd. state is a string; see
          the man page of sd_notify (http://www.freedesktop.org/software/systemd/man/sd_notify.html)
          for a description of the allowable values.
  
          Normally this method silently ignores exceptions (for example, if the
          systemd notification socket is not available) to allow applications to
          function on non-systemd based systems. However, setting debug=True will
          cause this method to raise any exceptions generated to the caller, to
          aid in debugging."""
          try:
              self.socket.sendall(_b(state))
          except:
              if self.debug:
                  raise