Ludovic Courtès <l...@gnu.org> writes: > Hello, > > Z572 <z572@z572.online> writes: > >> I think our modify-services may lack a function to replace the >> service-type, so that we can easily experiment with new service-types, >> inherit and modify them to the behavior we want. > > I’m not sure what you mean. > > You could always (with or without ‘modify-services’) remove services > from the list you have and add other services. > > The limitation though is that once every service in Guix starts using a > specific service (nginx, shepherd log-rotation, whatever), it becomes > more difficult to switch to something else (httpd, rottlog, etc.) > > Ludo’.
Currently, it is not possible to simply modify an extended service to a variant. For example, I want to use a modified log-rotation-service-type (NL) to replace the original log-rotation-service-type (OL). (someone-service-type) --extension--> (OL) --extension--> (shepherd-root-service-type) (anonip-service-type) --extension---> (OL) --extension--> (shepherd-root-service-type) -> (someone-service-type) --extension--> (NL) --extension--> (shepherd-root-service-type) (anonip-service-type) --extension---> (NL) --extension--> (shepherd-root-service-type) If there is a problem with the currently extended service, it cannot be quickly bypassed before the fix patch is merged. Either use your own branch or temporarily remove the corresponding service.
signature.asc
Description: PGP signature