Diff
Logged in as anonymous

Differences From Artifact [e9639224a2]:

To Artifact [0c718ddd58]:


1
2
3
4
5
6
7
8
9
10
11
12
13
14


15
16


LOCAL_TARGETS:=_service_plain _earlyservice_plain
OTHER_TARGETS+=${LOCAL_TARGETS}
.if ${STARTER} == "plain"
LOCAL_TARGETS+=_service _earlyservice
.endif

.for target in ${LOCAL_TARGETS}
${target}: ${target:C/_service.*/DAEMON/:C/_earlyservice.*/SERVICE/} .USE
	test -z "$${DAEMON_$@_ENABLE}" || { \
	  echo "MRC:$@> Starting service."; \
	  test -n "${DAEMON_$@_MODULES}" && kldload -n ${DAEMON_$@_MODULES} || true; \
	  chroot -u ${DAEMON_$@_USER:Uroot} -g ${DAEMON_$@_GROUP:Uwheel} / ${DAEMON_$@_COMMAND} ${DAEMON_$@_FLAGS} ${DAEMON_$@_BACKGROUND}; \
	}
.endfor



.undef LOCAL_TARGETS


|
<
<
<
<
<
<
<
<
<
<
|
|
<
>
>

<
>
>
1










2
3

4
5
6

7
8
_service_plain: .USE










	chroot -u ${DAEMON_$@_USER:Uroot} -g ${DAEMON_$@_GROUP:Uwheel} / ${DAEMON_$@_COMMAND} ${DAEMON_$@_FLAGS} ${DAEMON_$@_BACKGROUND}


_service_status: .USE
	echo "Plain service status doesn't work right now."


_service_exit: .USEBEFORE
	echo "Plain service exit doesn't work right now."