The default value for restart is yes. The documentation implies that this works for any service type (i.e. scripted/internal/etc services should restart based on e.g. a dependency stopping). However, setting it to on-failure only works for (bg)process services and is like no for scripted services. Changing the default alters it for any service type. It would be desirable if the dinit-default (set via configure/mconfig) restart value of on-failure (which IMO makes much more sense; maybe would be good to consider making that the general default too?) behaved like yes for non-process/bgprocess services.
The default value for
restartisyes. The documentation implies that this works for any service type (i.e. scripted/internal/etc services should restart based on e.g. a dependency stopping). However, setting it toon-failureonly works for (bg)process services and is likenofor scripted services. Changing the default alters it for any service type. It would be desirable if the dinit-default (set via configure/mconfig) restart value ofon-failure(which IMO makes much more sense; maybe would be good to consider making that the general default too?) behaved likeyesfor non-process/bgprocess services.