Message ID | a9fee030e2589811707751b010367b7a4995faab.1676667941.git.mirai@makinata.eu |
---|---|
State | New |
Headers | show |
Series | networking services refactoring | expand |
Bruno Victal <mirai@makinata.eu> skribis: > (list (shepherd-service > (documentation "Run the NetworkManager.") > - (provision '(networking)) > + (provision '(NetworkManager networking)) We could discuss this at length, but I’m in favor of either the status quo, or: (provision '(networking network-manager)) WDYT? Ludo’.
On 2023-03-03 17:15, Ludovic Courtès wrote: > Bruno Victal <mirai@makinata.eu> skribis: > >> (list (shepherd-service >> (documentation "Run the NetworkManager.") >> - (provision '(networking)) >> + (provision '(NetworkManager networking)) > > We could discuss this at length, but I’m in favor of either the status > quo, or: > > (provision '(networking network-manager)) > > WDYT? The ordering matters here, putting 'networking first means that 'network-manager is the virtual service and that something like connman can provide 'network-manager which is absurd. Cheers, Bruno
Bruno Victal <mirai@makinata.eu> skribis: > On 2023-03-03 17:15, Ludovic Courtès wrote: >> Bruno Victal <mirai@makinata.eu> skribis: >> >>> (list (shepherd-service >>> (documentation "Run the NetworkManager.") >>> - (provision '(networking)) >>> + (provision '(NetworkManager networking)) >> >> We could discuss this at length, but I’m in favor of either the status >> quo, or: >> >> (provision '(networking network-manager)) >> >> WDYT? > > The ordering matters here, putting 'networking first means that 'network-manager is the virtual service and that something like > connman can provide 'network-manager which is absurd. Hmm OK, I don’t mind the ordering. In the Shepherd there’s really the “canonical name” and “other names”; that’s all ordering changes. Ludo’.
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index 55bc2cf362..bcde0d0db8 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -1229,7 +1229,7 @@ (define (network-manager-shepherd-service config) (vpn (vpn-plugin-directory vpn-plugins))) (list (shepherd-service (documentation "Run the NetworkManager.") - (provision '(networking)) + (provision '(NetworkManager networking)) (requirement `(user-processes dbus-system loopback ,@shepherd-requirement ;; TODO: iwd? is deprecated and should be passed