diff options
| author | Mathieu Othacehe <othacehe@gnu.org> | 2020-11-22 15:15:17 +0100 |
|---|---|---|
| committer | Mathieu Othacehe <othacehe@gnu.org> | 2020-11-29 15:08:26 +0100 |
| commit | 276e494b2a1fd87874d80e2bdc3aa1fb833b76f2 (patch) | |
| tree | 852860bd1aea0bb32ca3946d58b5d3876c4ae260 /doc | |
| parent | 375cc7dea20da7117c9459e4a4d15144095e015b (diff) | |
publish: Add advertising support.
* guix/scripts/publish.scm (%options): Add "--advertise" option.
(show-help): Document it.
(service-name): New procedure,
(publish-service-type): new variable.
(run-publish-server): Add "advertise?" and "port" parameters. Use them to publish
the server using Avahi.
(guix-publish): Pass the "advertise?" option to "run-publish-server".
* gnu/services/base.scm (<guix-publish-configuration>): Add "advertise?"
field.
(guix-publish-shepherd-service): Honor it.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index baf6e69039a..8ca243004a5 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -12159,6 +12159,11 @@ The signing key pair must be generated before @command{guix publish} is | |||
| 12159 | launched, using @command{guix archive --generate-key} (@pxref{Invoking | 12159 | launched, using @command{guix archive --generate-key} (@pxref{Invoking |
| 12160 | guix archive}). | 12160 | guix archive}). |
| 12161 | 12161 | ||
| 12162 | When the @option{--advertise} option is passed, the server advertises | ||
| 12163 | its availability on the local network using multicast DNS (mDNS) and DNS | ||
| 12164 | service discovery (DNS-SD), currently @i{via} Guile-Avahi (@pxref{Top,,, | ||
| 12165 | guile-avahi, Using Avahi in Guile Scheme Programs}). | ||
| 12166 | |||
| 12162 | The general syntax is: | 12167 | The general syntax is: |
| 12163 | 12168 | ||
| 12164 | @example | 12169 | @example |
