guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] services: Add openvswitch-service-type.


From: Ludovic Courtès
Subject: Re: [PATCH 2/2] services: Add openvswitch-service-type.
Date: Sun, 29 Jan 2017 01:02:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

宋文武 <address@hidden> skribis:

> * gnu/services/networking.scm (<openvswitch-configuration>): New record type.
> (openvswitch-activation, openvswitch-shepherd-service): New procedures.
> (openvswitch-service-type): New variable.
> * doc/guix.texi (Networking Services): Document it.

[...]

> address@hidden {Data Type} openvswitch-configuration
> +Data type representing the configuration of openvswitch.

s/openvswitch/Open vSwitch, the blah blah networking blah/

> +       #~(begin
> +           (use-modules (guix build utils))

Better with:

  (with-imported-modules '((guix build utils))
    #~(begin
        (use-modules (guix build utils))
        …))

> +         (start #~(make-forkexec-constructor
> +                   (list #$ovsdb-server
> +                         "--remote=punix:/var/run/openvswitch/db.sock")))

If it produces a PID file, use #:pid-file here.

OK with these changes, thanks!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]