Lines of
daemon.starter.mk
from check-in bc20f9df9f
that are changed by the sequence of edits moving toward
check-in d8511a3d7c:
bc20f9df9f 2019-10-24 1: LOCAL_TARGETS:=_service_daemon _earlyservice_daemon
bc20f9df9f 2019-10-24 2: OTHER_TARGETS+=${LOCAL_TARGETS}
bc20f9df9f 2019-10-24 3: .if ${STARTER} == "daemon"
bc20f9df9f 2019-10-24 4: LOCAL_TARGETS+=_service _earlyservice
bc20f9df9f 2019-10-24 5: .endif
bc20f9df9f 2019-10-24 6:
bc20f9df9f 2019-10-24 7: .for target in ${LOCAL_TARGETS}
bc20f9df9f 2019-10-24 8: ${target}: ${target:C/_service.*/DAEMON/:C/_earlyservice.*/SERVICE/} .USE
bc20f9df9f 2019-10-24 9: test -z "$${DAEMON_$@_ENABLE}" || { \
bc20f9df9f 2019-10-24 10: echo "MRC:$@> Starting service."; \
bc20f9df9f 2019-10-24 11: test -n "${DAEMON_$@_MODULES}" && kldload -n ${DAEMON_$@_MODULES} || true; \
bc20f9df9f 2019-10-24 12: daemon -c -u ${DAEMON_$@_USER:Uroot} -r -P /var/run/daemon.$@.pid ${DAEMON_$@_COMMAND} ${DAEMON_$@_FLAGS} ${DAEMON$@_FOREGROUND}; \
bc20f9df9f 2019-10-24 13: }
bc20f9df9f 2019-10-24 14: .endfor
bc20f9df9f 2019-10-24 15:
bc20f9df9f 2019-10-24 16: .undef LOCAL_TARGETS