Makefiles: Use Final.sd.mk to implementing RECHECK_RM This is now read by make after all the other makefiles. This allows us to move the addition of {stest,mtest}/d-* to RECHECK_RM from Dir.sd.mk into test-common.sd.mk, where it belongs. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Merge subdirmk 0.4 git subtree pull. Fix up test-example/Dir.sd.mk for the incompatible change (`&${' needs to become `&{'). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
logging: site: Log state on PHASE_RUN entry instead of initially site_startup calls enter_state_run which would print a message, but logging is not set up that early. The result is a message printed to stderr before daemonisation. We can distinguish this situation from other calls to enter_state_run because the old state is SITE_STOP, which only occurs between config reading (closure invocation) and site_startup being called. So we can suppress this message. But it did serve a purpose: it would only be printed if the site was listed in `sites'; otherwise site_startup wouldn't be called and the `entering state RUN' message would be absent. So instead we provide a more explicit way to tell: on entering PHASE_RUN, site_startup has either been called, or not. And logging is set up. state is then STOP or RUN. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
logging: Move "starting" message earlier We are going to add some log messages to PHASE_RUN hooks. We want the overall startup message to come first. Doing this right after PHASE_DAEMONIZE makes sense as PHASE_DAEMONIZE now sets up logging, too. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
site: Change site->control(bool_t) to site->startup() This is only ever called with run=True. We are going to want to rely on this property. If we ever do more runtime reconfig that will be done differently. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>