diff options
| author | Alex Kost <alezost@gmail.com> | 2016-01-27 23:02:31 +0300 |
|---|---|---|
| committer | Alex Kost <alezost@gmail.com> | 2016-01-29 20:21:53 +0300 |
| commit | d4053c710bc2c7a4f624ba2d72438d8f289ad569 (patch) | |
| tree | a07276cb148dbb778082b9986940a5d69ac830b0 /doc | |
| parent | 26b94866ad18666e1e427f3377ad21b8532cc3fb (diff) | |
services: Rename 'dmd' services to 'shepherd'.
* gnu/services/shepherd.scm (dmd-root-service-type, %dmd-root-service)
(dmd-service-type, <dmd-service>, dmd-service, dmd-service?)
(make-dmd-service, dmd-service-documentation, dmd-service-provision)
(dmd-service-requirement, dmd-service-respawn, dmd-service-start)
(dmd-service-stop, dmd-service-auto-start?, dmd-service-modules)
(dmd-service-imported-modules, dmd-service-file-name, dmd-service-file)
(dmd-service-back-edges): Rename to...
(shepherd-root-service-type, %shepherd-root-service, shepherd-service-type)
(<shepherd-service>, shepherd-service, shepherd-service?)
(make-shepherd-service, shepherd-service-documentation)
(shepherd-service-provision, shepherd-service-requirement)
(shepherd-service-respawn, shepherd-service-start)
(shepherd-service-stop, shepherd-service-auto-start?)
(shepherd-service-modules, shepherd-service-imported-modules)
(shepherd-service-file-name, shepherd-service-file)
(shepherd-service-back-edges): ...this
* gnu/services.scm: Adjust comments.
* gnu/services/avahi.scm (avahi-dmd-service): Rename to...
(avahi-shepherd-service): ... this.
* gnu/services/base.scm (%root-file-system-dmd-service)
(file-system->dmd-service-name, mapped-device->dmd-service-name)
(dependency->dmd-service-name, file-system-dmd-service)
(mingetty-dmd-service, nscd-dmd-service, guix-dmd-service)
(guix-publish-dmd-service, udev-dmd-service, gpm-dmd-service): Rename to...
(%root-file-system-shepherd-service)
(file-system->shepherd-service-name, mapped-device->shepherd-service-name)
(dependency->shepherd-service-name, file-system-shepherd-service)
(mingetty-shepherd-service, nscd-shepherd-service, guix-shepherd-service)
(guix-publish-shepherd-service, udev-shepherd-service)
(gpm-shepherd-service): ... this.
* gnu/services/databases.scm (postgresql-dmd-service): Rename to...
(postgresql-shepherd-service): ... this.
* gnu/services/desktop.scm (upower-dmd-service, elogind-dmd-service):
Rename to...
(upower-shepherd-service, elogind-shepherd-service): ... this.
* gnu/services/dbus.scm (dbus-dmd-service): Rename to...
(dbus-shepherd-service): ... this.
* gnu/services/lirc.scm (lirc-dmd-service): Rename to...
(lirc-shepherd-service): ... this.
* gnu/services/mail.scm (dovecot-dmd-service): Rename to...
(dovecot-shepherd-service): ... this.
* gnu/services/networking.scm (ntp-dmd-service, tor-dmd-service)
(bitlbee-dmd-service, wicd-dmd-service, network-manager-dmd-service): Rename to...
(dbus-shepherd-service): ... this.
* gnu/services/ssh.scm (lsh-dmd-service): Rename to...
(lsh-shepherd-service): ... this.
* gnu/services/web.scm (nginx-dmd-service): Rename to...
(nginx-shepherd-service): ... this.
* gnu/services/xorg.scm (slim-dmd-service): Rename to...
(slim-shepherd-service): ... this.
* gnu/system.scm (essential-services): Use '%shepherd-root-service'.
* gnu/system/install.scm (cow-store-service-type): Adjust accordingly.
* guix/scripts/system.scm (dmd-service-node-label, dmd-service-node-type)
(export-dmd-graph): Likewise.
* tests/guix-system.sh: Likewise.
* tests/services.scm ("dmd-service-back-edges"): Rename to...
("shepherd-service-back-edges"): Adjust accordingly.
* doc/guix.texi: Likewise.
* doc/images/service-graph.dot: Use 'shepherd' service name.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/guix.texi | 32 | ||||
| -rw-r--r-- | doc/images/service-graph.dot | 14 |
2 files changed, 23 insertions, 23 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index d126dd3ec3a..dd2f4902330 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -9491,7 +9491,7 @@ with a simple example, the service type for the Guix build daemon | |||
| 9491 | (service-type | 9491 | (service-type |
| 9492 | (name 'guix) | 9492 | (name 'guix) |
| 9493 | (extensions | 9493 | (extensions |
| 9494 | (list (service-extension dmd-root-service-type guix-dmd-service) | 9494 | (list (service-extension shepherd-root-service-type guix-shepherd-service) |
| 9495 | (service-extension account-service-type guix-accounts) | 9495 | (service-extension account-service-type guix-accounts) |
| 9496 | (service-extension activation-service-type guix-activation))))) | 9496 | (service-extension activation-service-type guix-activation))))) |
| 9497 | @end example | 9497 | @end example |
| @@ -9515,11 +9515,11 @@ exception is the @dfn{boot service type}, which is the ultimate service. | |||
| 9515 | In this example, @var{guix-service-type} extends three services: | 9515 | In this example, @var{guix-service-type} extends three services: |
| 9516 | 9516 | ||
| 9517 | @table @var | 9517 | @table @var |
| 9518 | @item dmd-root-service-type | 9518 | @item shepherd-root-service-type |
| 9519 | The @var{guix-dmd-service} procedure defines how the Shepherd service is | 9519 | The @var{guix-shepherd-service} procedure defines how the Shepherd |
| 9520 | extended. Namely, it returns a @code{<dmd-service>} object that defines | 9520 | service is extended. Namely, it returns a @code{<shepherd-service>} |
| 9521 | how @command{guix-daemon} is started and stopped (@pxref{Shepherd | 9521 | object that defines how @command{guix-daemon} is started and stopped |
| 9522 | Services}). | 9522 | (@pxref{Shepherd Services}). |
| 9523 | 9523 | ||
| 9524 | @item account-service-type | 9524 | @item account-service-type |
| 9525 | This extension for this service is computed by @var{guix-accounts}, | 9525 | This extension for this service is computed by @var{guix-accounts}, |
| @@ -9558,8 +9558,8 @@ The service type for an @emph{extensible} service looks like this: | |||
| 9558 | (define udev-service-type | 9558 | (define udev-service-type |
| 9559 | (service-type (name 'udev) | 9559 | (service-type (name 'udev) |
| 9560 | (extensions | 9560 | (extensions |
| 9561 | (list (service-extension dmd-root-service-type | 9561 | (list (service-extension shepherd-root-service-type |
| 9562 | udev-dmd-service))) | 9562 | udev-shepherd-service))) |
| 9563 | 9563 | ||
| 9564 | (compose concatenate) ;concatenate the list of rules | 9564 | (compose concatenate) ;concatenate the list of rules |
| 9565 | (extend (lambda (config rules) | 9565 | (extend (lambda (config rules) |
| @@ -9573,7 +9573,7 @@ The service type for an @emph{extensible} service looks like this: | |||
| 9573 | This is the service type for the | 9573 | This is the service type for the |
| 9574 | @uref{https://wiki.gentoo.org/wiki/Project:Eudev, eudev device | 9574 | @uref{https://wiki.gentoo.org/wiki/Project:Eudev, eudev device |
| 9575 | management daemon}. Compared to the previous example, in addition to an | 9575 | management daemon}. Compared to the previous example, in addition to an |
| 9576 | extension of @var{dmd-root-service-type}, we see two new fields: | 9576 | extension of @var{shepherd-root-service-type}, we see two new fields: |
| 9577 | 9577 | ||
| 9578 | @table @code | 9578 | @table @code |
| 9579 | @item compose | 9579 | @item compose |
| @@ -9801,11 +9801,11 @@ You can actually generate such a graph for any operating system | |||
| 9801 | definition using the @command{guix system dmd-graph} command | 9801 | definition using the @command{guix system dmd-graph} command |
| 9802 | (@pxref{system-dmd-graph, @command{guix system dmd-graph}}). | 9802 | (@pxref{system-dmd-graph, @command{guix system dmd-graph}}). |
| 9803 | 9803 | ||
| 9804 | The @var{%dmd-root-service} is a service object representing PID@tie{}1, | 9804 | The @var{%shepherd-root-service} is a service object representing |
| 9805 | of type @var{dmd-root-service-type}; it can be extended by passing it | 9805 | PID@tie{}1, of type @var{shepherd-root-service-type}; it can be extended |
| 9806 | lists of @code{<dmd-service>} objects. | 9806 | by passing it lists of @code{<shepherd-service>} objects. |
| 9807 | 9807 | ||
| 9808 | @deftp {Data Type} dmd-service | 9808 | @deftp {Data Type} shepherd-service |
| 9809 | The data type representing a service managed by the Shepherd. | 9809 | The data type representing a service managed by the Shepherd. |
| 9810 | 9810 | ||
| 9811 | @table @asis | 9811 | @table @asis |
| @@ -9853,15 +9853,15 @@ the Shepherd. | |||
| 9853 | @end table | 9853 | @end table |
| 9854 | @end deftp | 9854 | @end deftp |
| 9855 | 9855 | ||
| 9856 | @defvr {Scheme Variable} dmd-root-service-type | 9856 | @defvr {Scheme Variable} shepherd-root-service-type |
| 9857 | The service type for the Shepherd ``root service''---i.e., PID@tie{}1. | 9857 | The service type for the Shepherd ``root service''---i.e., PID@tie{}1. |
| 9858 | 9858 | ||
| 9859 | This is the service type that extensions target when they want to create | 9859 | This is the service type that extensions target when they want to create |
| 9860 | shepherd services (@pxref{Service Types and Services}, for an example). | 9860 | shepherd services (@pxref{Service Types and Services}, for an example). |
| 9861 | Each extension must pass a list of @code{<dmd-service>}. | 9861 | Each extension must pass a list of @code{<shepherd-service>}. |
| 9862 | @end defvr | 9862 | @end defvr |
| 9863 | 9863 | ||
| 9864 | @defvr {Scheme Variable} %dmd-root-service | 9864 | @defvr {Scheme Variable} %shepherd-root-service |
| 9865 | This service represents PID@tie{}1. | 9865 | This service represents PID@tie{}1. |
| 9866 | @end defvr | 9866 | @end defvr |
| 9867 | 9867 | ||
diff --git a/doc/images/service-graph.dot b/doc/images/service-graph.dot index b0840059847..b7b617abbc9 100644 --- a/doc/images/service-graph.dot +++ b/doc/images/service-graph.dot | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | digraph "Service Type Dependencies" { | 1 | digraph "Service Type Dependencies" { |
| 2 | dmd [shape = box, fontname = Helvetica]; | 2 | shepherd [shape = box, fontname = Helvetica]; |
| 3 | pam [shape = box, fontname = Helvetica]; | 3 | pam [shape = box, fontname = Helvetica]; |
| 4 | etc [shape = box, fontname = Helvetica]; | 4 | etc [shape = box, fontname = Helvetica]; |
| 5 | profile [shape = box, fontname = Helvetica]; | 5 | profile [shape = box, fontname = Helvetica]; |
| @@ -7,14 +7,14 @@ digraph "Service Type Dependencies" { | |||
| 7 | activation [shape = box, fontname = Helvetica]; | 7 | activation [shape = box, fontname = Helvetica]; |
| 8 | boot [shape = box, fontname = Helvetica]; | 8 | boot [shape = box, fontname = Helvetica]; |
| 9 | system [shape = house, fontname = Helvetica]; | 9 | system [shape = house, fontname = Helvetica]; |
| 10 | lshd -> dmd; | 10 | lshd -> shepherd; |
| 11 | lshd -> pam; | 11 | lshd -> pam; |
| 12 | udev -> dmd; | 12 | udev -> shepherd; |
| 13 | nscd -> dmd [label = "extends"]; | 13 | nscd -> shepherd [label = "extends"]; |
| 14 | "nss-mdns" -> nscd; | 14 | "nss-mdns" -> nscd; |
| 15 | "kvm-rules" -> udev; | 15 | "kvm-rules" -> udev; |
| 16 | colord -> udev; | 16 | colord -> udev; |
| 17 | dbus -> dmd; | 17 | dbus -> shepherd; |
| 18 | colord -> dbus; | 18 | colord -> dbus; |
| 19 | upower -> udev; | 19 | upower -> udev; |
| 20 | upower -> dbus; | 20 | upower -> dbus; |
| @@ -23,7 +23,7 @@ digraph "Service Type Dependencies" { | |||
| 23 | elogind -> dbus; | 23 | elogind -> dbus; |
| 24 | elogind -> udev; | 24 | elogind -> udev; |
| 25 | elogind -> polkit [label = "extends"]; | 25 | elogind -> polkit [label = "extends"]; |
| 26 | dmd -> boot; | 26 | shepherd -> boot; |
| 27 | colord -> accounts; | 27 | colord -> accounts; |
| 28 | accounts -> activation; | 28 | accounts -> activation; |
| 29 | accounts -> etc; | 29 | accounts -> etc; |
| @@ -31,7 +31,7 @@ digraph "Service Type Dependencies" { | |||
| 31 | activation -> boot; | 31 | activation -> boot; |
| 32 | pam -> etc; | 32 | pam -> etc; |
| 33 | elogind -> pam; | 33 | elogind -> pam; |
| 34 | guix -> dmd; | 34 | guix -> shepherd; |
| 35 | guix -> activation; | 35 | guix -> activation; |
| 36 | guix -> accounts; | 36 | guix -> accounts; |
| 37 | boot -> system; | 37 | boot -> system; |
