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