Lines of
svc.daemon.mk
from check-in 716b0393df
that are changed by the sequence of edits moving toward
check-in 67838bd249:
1: LOCAL_TARGETS:=_daemon_svc _service_svc
2: OTHER_TARGETS+=${LOCAL_TARGETS}
3: .if ${DAEMONIZER} == "svc"
4: LOCAL_TARGETS:=${LOCAL_TARGETS} ${LOCAL_TARGETS:S/_svc//}
5: .endif
6:
7: .for target in ${LOCAL_TARGETS}
716b0393df 2019-10-21 8: ${target}: ${target:M_daemon:DDAEMON} .USE
9: #.export DAEMON_$@_ENABLE
10: env | grep $@
11: test -z "$${DAEMON_$@_ENABLE}" || { \
12: test -n "${DAEMON_$@_MODULES}" && kldload -n ${DAEMON_$@_MODULES} || true; \
13: svc -u ${DAEMON_$@_USER:Uroot} -g ${DAEMON_$@_GROUP:Uwheel} init $@ ${DAEMON_$@_COMMAND} ${DAEMON_$@_FLAGS}; \
14: }
15: .endfor
16:
17: #_service: .USE
18: #.export DAEMON_$@_ENABLE
19: # env | grep $@
20: # test -z "$${DAEMON_$@_ENABLE}" || { \
21: # test -n "${DAEMON_$@_MODULES}" && kldload -n ${DAEMON_$@_MODULES} || true; \
22: # svc -u ${DAEMON_$@_USER:Uroot} -g ${DAEMON_$@_GROUP:Uwheel} init $@ ${DAEMON_$@_COMMAND} ${DAEMON_$@_FLAGS}; \
23: # }
24:
25: .undef LOCAL_TARGETS