.. SPDX-License-Identifier: Apache-2.0 .. _param-imuxsock-unlink: .. _imuxsock.parameter.input.unlink: Unlink ====== .. index:: single: imuxsock; Unlink single: Unlink .. summary-start Controls whether the socket is unlinked on open and close. .. summary-end This parameter applies to :doc:`../../configuration/modules/imuxsock`. :Name: Unlink :Scope: input :Type: boolean :Default: input=on :Required?: no :Introduced: 7.3.9 Description ----------- If turned on (default), the socket is unlinked and re-created when opened and also unlinked when finally closed. Set it to off if you handle socket creation yourself. Only an existing socket or symbolic link at the socket path is removed. If the path names any other kind of file, such as a regular file, rsyslog leaves it in place, logs an error, and does not create that socket. ``Unlink="off"`` is for sockets whose lifecycle is managed outside rsyslog. If rsyslog should create the socket path, leave ``Unlink`` at its default ``on`` value. In particular, ``CreatePath="on"`` cannot be combined with ``Unlink="off"``: rsyslog would be asked to create the socket path but then forbidden from replacing or removing it on restart. .. note:: Note that handling socket creation oneself has the advantage that a limited amount of messages may be queued by the OS if rsyslog is not running. .. versionadded:: 7.3.9 Input usage ----------- .. _param-imuxsock-input-unlink: .. _imuxsock.parameter.input.unlink-usage: .. code-block:: rsyslog input(type="imuxsock" unlink="off") See also -------- See also :doc:`../../configuration/modules/imuxsock`.