diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2018-10-18 00:45:05 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2018-10-18 01:12:22 +0200 |
| commit | 39d7fdce453b0ca23ecbed72048647debbaa58a6 (patch) | |
| tree | 1fb6244895e071c1e2e559a19818e1c02b412f5c | |
| parent | 03fd37b4eb9ec7600c9292361177ca5a47814cf7 (diff) | |
services: dhcp-client: Deprecate 'dhcp-client-service' procedure.
* gnu/services/networking.scm (dhcp-client-service-type): Add default
value.
* gnu/system/examples/bare-bones.tmpl: Use (service
dhcp-client-service-type) instead of (dhcp-client-service).
* gnu/system/examples/beaglebone-black.tmpl: Likewise.
* gnu/tests/base.scm (%avahi-os): Likewise.
* gnu/tests/databases.scm (%memcached-os): Likewise.
(%mongodb-os): Likewise.
* gnu/tests/dict.scm (%dicod-os): Likewise.
* gnu/tests/mail.scm (%opensmtpd-os): Likewise.
(%exim-os): Likewise.
(%dovecot-os): Likewise.
* gnu/tests/messaging.scm (run-xmpp-test): Likewise.
(run-bitlbee-test): Likewise.
* gnu/tests/monitoring.scm (%prometheus-node-exporter-os): Likewise.
* gnu/tests/networking.scm (%inetd-os): Likewise.
(run-iptables-test): Likewise.
* gnu/tests/nfs.scm (%base-os): Likewise.
* gnu/tests/rsync.scm (%rsync-os): Likewise.
* gnu/tests/ssh.scm (run-ssh-test): Likewise.
* gnu/tests/version-control.scm (%cgit-os): Likewise.
(%git-http-os): Likewise.
(%gitolite-os): Likewise.
* gnu/tests/virtualization.scm (%libvirt-os): Likewise.
* gnu/tests/web.scm (%httpd-os): Likewise.
(%nginx-os): Likewise.
(%varnish-os): Likewise.
(%php-fpm-os): Likewise.
(%hpcguix-web-os): Likewise.
(%tailon-os): Likewise.
* tests/guix-system.sh: Likewise.
* doc/guix.texi (Networking Services): Document
'dhcp-client-service-type' and remove 'dhcp-client-service'.
| -rw-r--r-- | doc/guix.texi | 11 | ||||
| -rw-r--r-- | gnu/services/networking.scm | 6 | ||||
| -rw-r--r-- | gnu/system/examples/bare-bones.tmpl | 2 | ||||
| -rw-r--r-- | gnu/system/examples/beaglebone-black.tmpl | 2 | ||||
| -rw-r--r-- | gnu/tests/base.scm | 2 | ||||
| -rw-r--r-- | gnu/tests/databases.scm | 4 | ||||
| -rw-r--r-- | gnu/tests/dict.scm | 2 | ||||
| -rw-r--r-- | gnu/tests/mail.scm | 6 | ||||
| -rw-r--r-- | gnu/tests/messaging.scm | 4 | ||||
| -rw-r--r-- | gnu/tests/monitoring.scm | 2 | ||||
| -rw-r--r-- | gnu/tests/networking.scm | 4 | ||||
| -rw-r--r-- | gnu/tests/nfs.scm | 2 | ||||
| -rw-r--r-- | gnu/tests/rsync.scm | 2 | ||||
| -rw-r--r-- | gnu/tests/ssh.scm | 2 | ||||
| -rw-r--r-- | gnu/tests/version-control.scm | 6 | ||||
| -rw-r--r-- | gnu/tests/virtualization.scm | 2 | ||||
| -rw-r--r-- | gnu/tests/web.scm | 12 | ||||
| -rw-r--r-- | guix/gexp.scm | 8 | ||||
| -rw-r--r-- | tests/guix-system.sh | 4 |
19 files changed, 47 insertions, 36 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index fde7892cfde..f4f19949f16 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -11546,10 +11546,11 @@ The @code{(gnu services networking)} module provides services to configure | |||
| 11546 | the network interface. | 11546 | the network interface. |
| 11547 | 11547 | ||
| 11548 | @cindex DHCP, networking service | 11548 | @cindex DHCP, networking service |
| 11549 | @deffn {Scheme Procedure} dhcp-client-service [#:dhcp @var{isc-dhcp}] | 11549 | @defvr {Scheme Variable} dhcp-client-service-type |
| 11550 | Return a service that runs @var{dhcp}, a Dynamic Host Configuration | 11550 | This is the type of services that run @var{dhcp}, a Dynamic Host Configuration |
| 11551 | Protocol (DHCP) client, on all the non-loopback network interfaces. | 11551 | Protocol (DHCP) client, on all the non-loopback network interfaces. Its value |
| 11552 | @end deffn | 11552 | is the DHCP client package to use, @code{isc-dhcp} by default. |
| 11553 | @end defvr | ||
| 11553 | 11554 | ||
| 11554 | @deffn {Scheme Procedure} dhcpd-service-type | 11555 | @deffn {Scheme Procedure} dhcpd-service-type |
| 11555 | This type defines a service that runs a DHCP daemon. To create a | 11556 | This type defines a service that runs a DHCP daemon. To create a |
| @@ -17168,7 +17169,7 @@ A helper function to quickly add php to an @code{nginx-server-configuration}. | |||
| 17168 | 17169 | ||
| 17169 | A simple services setup for nginx with php can look like this: | 17170 | A simple services setup for nginx with php can look like this: |
| 17170 | @example | 17171 | @example |
| 17171 | (services (cons* (dhcp-client-service) | 17172 | (services (cons* (service dhcp-client-service-type) |
| 17172 | (service php-fpm-service-type) | 17173 | (service php-fpm-service-type) |
| 17173 | (service nginx-service-type | 17174 | (service nginx-service-type |
| 17174 | (nginx-server-configuration | 17175 | (nginx-server-configuration |
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index c809b4a4a42..61a0e975c7c 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm | |||
| @@ -53,6 +53,7 @@ | |||
| 53 | static-networking-service-type) | 53 | static-networking-service-type) |
| 54 | #:export (%facebook-host-aliases | 54 | #:export (%facebook-host-aliases |
| 55 | dhcp-client-service | 55 | dhcp-client-service |
| 56 | dhcp-client-service-type | ||
| 56 | 57 | ||
| 57 | dhcpd-service-type | 58 | dhcpd-service-type |
| 58 | dhcpd-configuration | 59 | dhcpd-configuration |
| @@ -202,9 +203,10 @@ fe80::1%lo0 apps.facebook.com\n") | |||
| 202 | "-pf" #$pid-file ifaces)))) | 203 | "-pf" #$pid-file ifaces)))) |
| 203 | (and (zero? (cdr (waitpid pid))) | 204 | (and (zero? (cdr (waitpid pid))) |
| 204 | (read-pid-file #$pid-file))))) | 205 | (read-pid-file #$pid-file))))) |
| 205 | (stop #~(make-kill-destructor)))))) | 206 | (stop #~(make-kill-destructor)))) |
| 207 | isc-dhcp)) | ||
| 206 | 208 | ||
| 207 | (define* (dhcp-client-service #:key (dhcp isc-dhcp)) | 209 | (define* (dhcp-client-service #:key (dhcp isc-dhcp)) ;deprecated |
| 208 | "Return a service that runs @var{dhcp}, a Dynamic Host Configuration | 210 | "Return a service that runs @var{dhcp}, a Dynamic Host Configuration |
| 209 | Protocol (DHCP) client, on all the non-loopback network interfaces." | 211 | Protocol (DHCP) client, on all the non-loopback network interfaces." |
| 210 | (service dhcp-client-service-type dhcp)) | 212 | (service dhcp-client-service-type dhcp)) |
diff --git a/gnu/system/examples/bare-bones.tmpl b/gnu/system/examples/bare-bones.tmpl index b763258e524..889dcabe645 100644 --- a/gnu/system/examples/bare-bones.tmpl +++ b/gnu/system/examples/bare-bones.tmpl | |||
| @@ -44,7 +44,7 @@ | |||
| 44 | 44 | ||
| 45 | ;; Add services to the baseline: a DHCP client and | 45 | ;; Add services to the baseline: a DHCP client and |
| 46 | ;; an SSH server. | 46 | ;; an SSH server. |
| 47 | (services (cons* (dhcp-client-service) | 47 | (services (cons* (service dhcp-client-service-type) |
| 48 | (service openssh-service-type | 48 | (service openssh-service-type |
| 49 | (openssh-configuration | 49 | (openssh-configuration |
| 50 | (port-number 2222))) | 50 | (port-number 2222))) |
diff --git a/gnu/system/examples/beaglebone-black.tmpl b/gnu/system/examples/beaglebone-black.tmpl index d1130c76b6c..efef682e3ae 100644 --- a/gnu/system/examples/beaglebone-black.tmpl +++ b/gnu/system/examples/beaglebone-black.tmpl | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | ;; Globally-installed packages. | 45 | ;; Globally-installed packages. |
| 46 | (packages (cons* screen openssh %base-packages)) | 46 | (packages (cons* screen openssh %base-packages)) |
| 47 | 47 | ||
| 48 | (services (cons* (dhcp-client-service) | 48 | (services (cons* (service dhcp-client-service-type) |
| 49 | ;; mingetty does not work on serial lines. | 49 | ;; mingetty does not work on serial lines. |
| 50 | ;; Use agetty with board-specific serial parameters. | 50 | ;; Use agetty with board-specific serial parameters. |
| 51 | (agetty-service | 51 | (agetty-service |
diff --git a/gnu/tests/base.scm b/gnu/tests/base.scm index f97581de33f..896d4a8f88c 100644 --- a/gnu/tests/base.scm +++ b/gnu/tests/base.scm | |||
| @@ -673,7 +673,7 @@ non-ASCII names from /tmp.") | |||
| 673 | (name-service-switch %mdns-host-lookup-nss) | 673 | (name-service-switch %mdns-host-lookup-nss) |
| 674 | (services (cons* (avahi-service #:debug? #t) | 674 | (services (cons* (avahi-service #:debug? #t) |
| 675 | (dbus-service) | 675 | (dbus-service) |
| 676 | (dhcp-client-service) ;needed for multicast | 676 | (service dhcp-client-service-type) ;needed for multicast |
| 677 | 677 | ||
| 678 | ;; Enable heavyweight debugging output. | 678 | ;; Enable heavyweight debugging output. |
| 679 | (modify-services (operating-system-user-services | 679 | (modify-services (operating-system-user-services |
diff --git a/gnu/tests/databases.scm b/gnu/tests/databases.scm index 5c8ca85c135..e0544bbcd2e 100644 --- a/gnu/tests/databases.scm +++ b/gnu/tests/databases.scm | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | 35 | ||
| 36 | (define %memcached-os | 36 | (define %memcached-os |
| 37 | (simple-operating-system | 37 | (simple-operating-system |
| 38 | (dhcp-client-service) | 38 | (service dhcp-client-service-type) |
| 39 | (service memcached-service-type))) | 39 | (service memcached-service-type))) |
| 40 | 40 | ||
| 41 | (define* (run-memcached-test #:optional (port 11211)) | 41 | (define* (run-memcached-test #:optional (port 11211)) |
| @@ -130,7 +130,7 @@ | |||
| 130 | (operating-system | 130 | (operating-system |
| 131 | (inherit | 131 | (inherit |
| 132 | (simple-operating-system | 132 | (simple-operating-system |
| 133 | (dhcp-client-service) | 133 | (service dhcp-client-service-type) |
| 134 | (service mongodb-service-type))) | 134 | (service mongodb-service-type))) |
| 135 | (packages (cons* mongodb | 135 | (packages (cons* mongodb |
| 136 | %base-packages)))) | 136 | %base-packages)))) |
diff --git a/gnu/tests/dict.scm b/gnu/tests/dict.scm index dd60ffd4644..c50e3cd6daa 100644 --- a/gnu/tests/dict.scm +++ b/gnu/tests/dict.scm | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | 34 | ||
| 35 | (define %dicod-os | 35 | (define %dicod-os |
| 36 | (simple-operating-system | 36 | (simple-operating-system |
| 37 | (dhcp-client-service) | 37 | (service dhcp-client-service-type) |
| 38 | (service dicod-service-type | 38 | (service dicod-service-type |
| 39 | (dicod-configuration | 39 | (dicod-configuration |
| 40 | (interfaces '("0.0.0.0")) | 40 | (interfaces '("0.0.0.0")) |
diff --git a/gnu/tests/mail.scm b/gnu/tests/mail.scm index 5677969fac6..33aa4d3437a 100644 --- a/gnu/tests/mail.scm +++ b/gnu/tests/mail.scm | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | (define %opensmtpd-os | 37 | (define %opensmtpd-os |
| 38 | (simple-operating-system | 38 | (simple-operating-system |
| 39 | (dhcp-client-service) | 39 | (service dhcp-client-service-type) |
| 40 | (service opensmtpd-service-type | 40 | (service opensmtpd-service-type |
| 41 | (opensmtpd-configuration | 41 | (opensmtpd-configuration |
| 42 | (config-file | 42 | (config-file |
| @@ -155,7 +155,7 @@ accept from any for local deliver to mbox | |||
| 155 | 155 | ||
| 156 | (define %exim-os | 156 | (define %exim-os |
| 157 | (simple-operating-system | 157 | (simple-operating-system |
| 158 | (dhcp-client-service) | 158 | (service dhcp-client-service-type) |
| 159 | (service mail-aliases-service-type '()) | 159 | (service mail-aliases-service-type '()) |
| 160 | (service exim-service-type | 160 | (service exim-service-type |
| 161 | (exim-configuration | 161 | (exim-configuration |
| @@ -283,7 +283,7 @@ acl_check_data: | |||
| 283 | 283 | ||
| 284 | (define %dovecot-os | 284 | (define %dovecot-os |
| 285 | (simple-operating-system | 285 | (simple-operating-system |
| 286 | (dhcp-client-service) | 286 | (service dhcp-client-service-type) |
| 287 | (dovecot-service #:config | 287 | (dovecot-service #:config |
| 288 | (dovecot-configuration | 288 | (dovecot-configuration |
| 289 | (disable-plaintext-auth? #f) | 289 | (disable-plaintext-auth? #f) |
diff --git a/gnu/tests/messaging.scm b/gnu/tests/messaging.scm index f5f99b9f563..36afb987af4 100644 --- a/gnu/tests/messaging.scm +++ b/gnu/tests/messaging.scm | |||
| @@ -35,7 +35,7 @@ | |||
| 35 | "Run a test of an OS running XMPP-SERVICE, which writes its PID to PID-FILE." | 35 | "Run a test of an OS running XMPP-SERVICE, which writes its PID to PID-FILE." |
| 36 | (define os | 36 | (define os |
| 37 | (marionette-operating-system | 37 | (marionette-operating-system |
| 38 | (simple-operating-system (dhcp-client-service) | 38 | (simple-operating-system (service dhcp-client-service-type) |
| 39 | xmpp-service) | 39 | xmpp-service) |
| 40 | #:imported-modules '((gnu services herd)))) | 40 | #:imported-modules '((gnu services herd)))) |
| 41 | 41 | ||
| @@ -167,7 +167,7 @@ | |||
| 167 | (define (run-bitlbee-test) | 167 | (define (run-bitlbee-test) |
| 168 | (define os | 168 | (define os |
| 169 | (marionette-operating-system | 169 | (marionette-operating-system |
| 170 | (simple-operating-system (dhcp-client-service) | 170 | (simple-operating-system (service dhcp-client-service-type) |
| 171 | (service bitlbee-service-type | 171 | (service bitlbee-service-type |
| 172 | (bitlbee-configuration | 172 | (bitlbee-configuration |
| 173 | (interface "0.0.0.0")))) | 173 | (interface "0.0.0.0")))) |
diff --git a/gnu/tests/monitoring.scm b/gnu/tests/monitoring.scm index 67899987cef..3320a19a773 100644 --- a/gnu/tests/monitoring.scm +++ b/gnu/tests/monitoring.scm | |||
| @@ -85,7 +85,7 @@ | |||
| 85 | 85 | ||
| 86 | (define %prometheus-node-exporter-os | 86 | (define %prometheus-node-exporter-os |
| 87 | (simple-operating-system | 87 | (simple-operating-system |
| 88 | (dhcp-client-service) | 88 | (service dhcp-client-service-type) |
| 89 | (service prometheus-node-exporter-service-type | 89 | (service prometheus-node-exporter-service-type |
| 90 | (prometheus-node-exporter-configuration)))) | 90 | (prometheus-node-exporter-configuration)))) |
| 91 | 91 | ||
diff --git a/gnu/tests/networking.scm b/gnu/tests/networking.scm index ceba7f7d5d1..9f12a4ae8d8 100644 --- a/gnu/tests/networking.scm +++ b/gnu/tests/networking.scm | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | (define %inetd-os | 39 | (define %inetd-os |
| 40 | ;; Operating system with 2 inetd services. | 40 | ;; Operating system with 2 inetd services. |
| 41 | (simple-operating-system | 41 | (simple-operating-system |
| 42 | (dhcp-client-service) | 42 | (service dhcp-client-service-type) |
| 43 | (service inetd-service-type | 43 | (service inetd-service-type |
| 44 | (inetd-configuration | 44 | (inetd-configuration |
| 45 | (entries (list | 45 | (entries (list |
| @@ -463,7 +463,7 @@ COMMIT | |||
| 463 | (define os | 463 | (define os |
| 464 | (marionette-operating-system | 464 | (marionette-operating-system |
| 465 | (simple-operating-system | 465 | (simple-operating-system |
| 466 | (dhcp-client-service) | 466 | (service dhcp-client-service-type) |
| 467 | (service inetd-service-type | 467 | (service inetd-service-type |
| 468 | (inetd-configuration | 468 | (inetd-configuration |
| 469 | (entries (list | 469 | (entries (list |
diff --git a/gnu/tests/nfs.scm b/gnu/tests/nfs.scm index 140f03779b2..7ef9f1f7bfb 100644 --- a/gnu/tests/nfs.scm +++ b/gnu/tests/nfs.scm | |||
| @@ -55,7 +55,7 @@ | |||
| 55 | (services (cons* | 55 | (services (cons* |
| 56 | (service rpcbind-service-type | 56 | (service rpcbind-service-type |
| 57 | (rpcbind-configuration)) | 57 | (rpcbind-configuration)) |
| 58 | (dhcp-client-service) | 58 | (service dhcp-client-service-type) |
| 59 | %base-services)))) | 59 | %base-services)))) |
| 60 | 60 | ||
| 61 | (define (run-nfs-test name socket) | 61 | (define (run-nfs-test name socket) |
diff --git a/gnu/tests/rsync.scm b/gnu/tests/rsync.scm index a6f8fa2bd18..096580022fe 100644 --- a/gnu/tests/rsync.scm +++ b/gnu/tests/rsync.scm | |||
| @@ -111,7 +111,7 @@ PORT." | |||
| 111 | ;; Return operating system under test. | 111 | ;; Return operating system under test. |
| 112 | (let ((base-os | 112 | (let ((base-os |
| 113 | (simple-operating-system | 113 | (simple-operating-system |
| 114 | (dhcp-client-service) | 114 | (service dhcp-client-service-type) |
| 115 | (service rsync-service-type)))) | 115 | (service rsync-service-type)))) |
| 116 | (operating-system | 116 | (operating-system |
| 117 | (inherit base-os) | 117 | (inherit base-os) |
diff --git a/gnu/tests/ssh.scm b/gnu/tests/ssh.scm index 2e40122adda..e5cd439cdf9 100644 --- a/gnu/tests/ssh.scm +++ b/gnu/tests/ssh.scm | |||
| @@ -39,7 +39,7 @@ empty-password logins. | |||
| 39 | When SFTP? is true, run an SFTP server test." | 39 | When SFTP? is true, run an SFTP server test." |
| 40 | (define os | 40 | (define os |
| 41 | (marionette-operating-system | 41 | (marionette-operating-system |
| 42 | (simple-operating-system (dhcp-client-service) ssh-service) | 42 | (simple-operating-system (service dhcp-client-service-type) ssh-service) |
| 43 | #:imported-modules '((gnu services herd) | 43 | #:imported-modules '((gnu services herd) |
| 44 | (guix combinators)))) | 44 | (guix combinators)))) |
| 45 | (define vm | 45 | (define vm |
diff --git a/gnu/tests/version-control.scm b/gnu/tests/version-control.scm index 4409b8a12b3..230aa9edf9e 100644 --- a/gnu/tests/version-control.scm +++ b/gnu/tests/version-control.scm | |||
| @@ -92,7 +92,7 @@ | |||
| 92 | ;; Operating system under test. | 92 | ;; Operating system under test. |
| 93 | (let ((base-os | 93 | (let ((base-os |
| 94 | (simple-operating-system | 94 | (simple-operating-system |
| 95 | (dhcp-client-service) | 95 | (service dhcp-client-service-type) |
| 96 | (service cgit-service-type | 96 | (service cgit-service-type |
| 97 | (cgit-configuration | 97 | (cgit-configuration |
| 98 | (nginx %cgit-configuration-nginx))) | 98 | (nginx %cgit-configuration-nginx))) |
| @@ -237,7 +237,7 @@ HTTP-PORT." | |||
| 237 | 237 | ||
| 238 | (define %git-http-os | 238 | (define %git-http-os |
| 239 | (simple-operating-system | 239 | (simple-operating-system |
| 240 | (dhcp-client-service) | 240 | (service dhcp-client-service-type) |
| 241 | (service fcgiwrap-service-type) | 241 | (service fcgiwrap-service-type) |
| 242 | (service nginx-service-type %git-nginx-configuration) | 242 | (service nginx-service-type %git-nginx-configuration) |
| 243 | %test-repository-service)) | 243 | %test-repository-service)) |
| @@ -328,7 +328,7 @@ HTTP-PORT." | |||
| 328 | 328 | ||
| 329 | (define %gitolite-os | 329 | (define %gitolite-os |
| 330 | (simple-operating-system | 330 | (simple-operating-system |
| 331 | (dhcp-client-service) | 331 | (service dhcp-client-service-type) |
| 332 | (service openssh-service-type) | 332 | (service openssh-service-type) |
| 333 | (service gitolite-service-type | 333 | (service gitolite-service-type |
| 334 | (gitolite-configuration | 334 | (gitolite-configuration |
diff --git a/gnu/tests/virtualization.scm b/gnu/tests/virtualization.scm index c2939355b25..fbdec208050 100644 --- a/gnu/tests/virtualization.scm +++ b/gnu/tests/virtualization.scm | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | 32 | ||
| 33 | (define %libvirt-os | 33 | (define %libvirt-os |
| 34 | (simple-operating-system | 34 | (simple-operating-system |
| 35 | (dhcp-client-service) | 35 | (service dhcp-client-service-type) |
| 36 | (dbus-service) | 36 | (dbus-service) |
| 37 | (polkit-service) | 37 | (polkit-service) |
| 38 | (service libvirt-service-type))) | 38 | (service libvirt-service-type))) |
diff --git a/gnu/tests/web.scm b/gnu/tests/web.scm index 2e209fee97c..319655396a8 100644 --- a/gnu/tests/web.scm +++ b/gnu/tests/web.scm | |||
| @@ -125,7 +125,7 @@ HTTP-PORT." | |||
| 125 | 125 | ||
| 126 | (define %httpd-os | 126 | (define %httpd-os |
| 127 | (simple-operating-system | 127 | (simple-operating-system |
| 128 | (dhcp-client-service) | 128 | (service dhcp-client-service-type) |
| 129 | (service httpd-service-type | 129 | (service httpd-service-type |
| 130 | (httpd-configuration | 130 | (httpd-configuration |
| 131 | (config | 131 | (config |
| @@ -154,7 +154,7 @@ HTTP-PORT." | |||
| 154 | (define %nginx-os | 154 | (define %nginx-os |
| 155 | ;; Operating system under test. | 155 | ;; Operating system under test. |
| 156 | (simple-operating-system | 156 | (simple-operating-system |
| 157 | (dhcp-client-service) | 157 | (service dhcp-client-service-type) |
| 158 | (service nginx-service-type | 158 | (service nginx-service-type |
| 159 | (nginx-configuration | 159 | (nginx-configuration |
| 160 | (log-directory "/var/log/nginx") | 160 | (log-directory "/var/log/nginx") |
| @@ -188,7 +188,7 @@ sub vcl_synth { | |||
| 188 | 188 | ||
| 189 | (define %varnish-os | 189 | (define %varnish-os |
| 190 | (simple-operating-system | 190 | (simple-operating-system |
| 191 | (dhcp-client-service) | 191 | (service dhcp-client-service-type) |
| 192 | ;; Pretend to be a web server that serves %index.html-contents. | 192 | ;; Pretend to be a web server that serves %index.html-contents. |
| 193 | (service varnish-service-type | 193 | (service varnish-service-type |
| 194 | (varnish-configuration | 194 | (varnish-configuration |
| @@ -237,7 +237,7 @@ echo(\"Computed by php:\".((string)(2+3))); | |||
| 237 | (define %php-fpm-os | 237 | (define %php-fpm-os |
| 238 | ;; Operating system under test. | 238 | ;; Operating system under test. |
| 239 | (simple-operating-system | 239 | (simple-operating-system |
| 240 | (dhcp-client-service) | 240 | (service dhcp-client-service-type) |
| 241 | (service php-fpm-service-type) | 241 | (service php-fpm-service-type) |
| 242 | (service nginx-service-type | 242 | (service nginx-service-type |
| 243 | (nginx-configuration | 243 | (nginx-configuration |
| @@ -392,7 +392,7 @@ HTTP-PORT, along with php-fpm." | |||
| 392 | 392 | ||
| 393 | (define %hpcguix-web-os | 393 | (define %hpcguix-web-os |
| 394 | (simple-operating-system | 394 | (simple-operating-system |
| 395 | (dhcp-client-service) | 395 | (service dhcp-client-service-type) |
| 396 | (service hpcguix-web-service-type | 396 | (service hpcguix-web-service-type |
| 397 | (hpcguix-web-configuration | 397 | (hpcguix-web-configuration |
| 398 | (specs %hpcguix-web-specs))))) | 398 | (specs %hpcguix-web-specs))))) |
| @@ -407,7 +407,7 @@ HTTP-PORT, along with php-fpm." | |||
| 407 | (define %tailon-os | 407 | (define %tailon-os |
| 408 | ;; Operating system under test. | 408 | ;; Operating system under test. |
| 409 | (simple-operating-system | 409 | (simple-operating-system |
| 410 | (dhcp-client-service) | 410 | (service dhcp-client-service-type) |
| 411 | (service tailon-service-type | 411 | (service tailon-service-type |
| 412 | (tailon-configuration | 412 | (tailon-configuration |
| 413 | (config-file | 413 | (config-file |
diff --git a/guix/gexp.scm b/guix/gexp.scm index f7a23db8722..ba0d642b17e 100644 --- a/guix/gexp.scm +++ b/guix/gexp.scm | |||
| @@ -438,6 +438,14 @@ This is the declarative counterpart of 'gexp->file'." | |||
| 438 | (base file-append-base) ;<package> | <derivation> | ... | 438 | (base file-append-base) ;<package> | <derivation> | ... |
| 439 | (suffix file-append-suffix)) ;list of strings | 439 | (suffix file-append-suffix)) ;list of strings |
| 440 | 440 | ||
| 441 | (define (write-file-append file port) | ||
| 442 | (match file | ||
| 443 | (($ <file-append> base suffix) | ||
| 444 | (format port "#<file-append ~s ~s>" base | ||
| 445 | (string-join suffix))))) | ||
| 446 | |||
| 447 | (set-record-type-printer! <file-append> write-file-append) | ||
| 448 | |||
| 441 | (define (file-append base . suffix) | 449 | (define (file-append base . suffix) |
| 442 | "Return a <file-append> object that expands to the concatenation of BASE and | 450 | "Return a <file-append> object that expands to the concatenation of BASE and |
| 443 | SUFFIX." | 451 | SUFFIX." |
diff --git a/tests/guix-system.sh b/tests/guix-system.sh index a129efdfcbc..23d2da49031 100644 --- a/tests/guix-system.sh +++ b/tests/guix-system.sh | |||
| @@ -153,8 +153,8 @@ cat > "$tmpfile" <<EOF | |||
| 153 | 153 | ||
| 154 | (operating-system | 154 | (operating-system |
| 155 | $OS_BASE | 155 | $OS_BASE |
| 156 | (services (cons* (dhcp-client-service) | 156 | (services (cons* (service dhcp-client-service-type) |
| 157 | (dhcp-client-service) ;twice! | 157 | (service dhcp-client-service-type) ;twice! |
| 158 | %base-services))) | 158 | %base-services))) |
| 159 | EOF | 159 | EOF |
| 160 | 160 | ||
