Index: service.mk ================================================================== --- service.mk +++ service.mk @@ -16,12 +16,16 @@ . warning MRC> Service [${service}] defunct: no COMMAND specified . else # Service creation targets . if !target(${service}) -${service}: ${service}_exit ${_SERVICE} +${service}: ${service}_exit ${_SERVICE} ${service}_after . endif +# +# Service part that runs after daemonization, we are just turning them +# to macros and making sure they exist +${service}_after: .USE # Service status targets . if !target(${service}_status) ${service}_status: ${_SERVICE_STATUS} . endif