1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

services: Add mosquitto-service-type.

* gnu/services/messaging.scm (<mosquitto-configuration>): New record type.
(mosquitto-accounts): New procedure.
(mosquitto-shepherd-service): New procedure.
(mosquitto-service-type): New variable.
* doc/guix.texi (Messaging Services): Document it.

Change-Id: I3500c5b6b69084c1f4a6da66ea45bfd42c871f3f
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
This commit is contained in:
Evgeny Pisemsky
2025-05-09 19:46:49 +02:00
committed by Danny Milosavljevic
parent 2258b5f5b4
commit 44d178265c
2 changed files with 165 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ Copyright @copyright{} 2025 Sören Tempel@*
Copyright @copyright{} 2025 Rostislav Svoboda@*
Copyright @copyright{} 2025 Zacchaeus@*
Copyright @copyright{} 2025 Sergio Pastor Pérez@*
Copyright @copyright{} 2024 Evgeny Pisemsky@*
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
@@ -31303,6 +31304,99 @@ Extra options will be passed to @command{snuik}, please run
@end table
@end deftp
@subsubheading Mosquitto Service
@url{https://mosquitto.org/,Mosquitto} is a lightweight message broker
that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. It is
suitable for use on all devices from low power single board computers to
full servers.
@defvar mosquitto-service-type
This is the service type for the @url{https://mosquitto.org/,Mosquitto}
MQTT broker. Its value is a @code{mosquitto-configuration} (see below).
@end defvar
@deftp {Data Type} mosquitto-configuration
This is the configuration for Mosquitto, with the following fields:
@table @asis
@item @code{package} (default: @code{mosquitto})
The Mosquitto package to use.
@item @code{config-file} (default: @code{#f})
The Mosquitto configuration file as a file-like object or the value
@code{#f} to use the default configuration.
@item @code{user} (default: @code{"mosquitto"})
Owner of the broker process.
@item @code{group} (default: @code{"mosquitto"})
Owner's group of the broker process.
@end table
@end deftp
@subsubheading Mosquitto Service
@url{https://mosquitto.org/,Mosquitto} is a lightweight message broker
that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. It is
suitable for use on all devices from low power single board computers to
full servers.
@defvar mosquitto-service-type
This is the service type for the @url{https://mosquitto.org/,Mosquitto}
MQTT broker. Its value is a @code{mosquitto-configuration} (see below).
@end defvar
@deftp {Data Type} mosquitto-configuration
This is the configuration for Mosquitto, with the following fields:
@table @asis
@item @code{package} (default: @code{mosquitto})
The Mosquitto package to use.
@item @code{config-file} (default: @code{#f})
The Mosquitto configuration file as a file-like object or the value
@code{#f} to use the default configuration.
@item @code{user} (default: @code{"mosquitto"})
Owner of the broker process.
@item @code{group} (default: @code{"mosquitto"})
Owner's group of the broker process.
@end table
@end deftp
@subsubheading Mosquitto Service
@url{https://mosquitto.org/,Mosquitto} is a lightweight message broker
that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1. It is
suitable for use on all devices from low power single board computers to
full servers.
@defvar mosquitto-service-type
This is the service type for the @url{https://mosquitto.org/,Mosquitto}
MQTT broker. Its value is a @code{mosquitto-configuration} (see below).
@end defvar
@deftp {Data Type} mosquitto-configuration
This is the configuration for Mosquitto, with the following fields:
@table @asis
@item @code{package} (default: @code{mosquitto})
The Mosquitto package to use.
@item @code{config-file} (default: @code{#f})
The Mosquitto configuration file as a file-like object or the value
@code{#f} to use the default configuration.
@item @code{user} (default: @code{"mosquitto"})
Owner of the broker process.
@item @code{group} (default: @code{"mosquitto"})
Owner's group of the broker process.
@end table
@end deftp
@node Telephony Services
@subsection Telephony Services