def notify(self, state):
try:<EOL><INDENT>self.socket.sendall(_b(state))<EOL><DEDENT>except:<EOL><INDENT>if self.debug:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>
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.