Diff
Logged in as anonymous

Differences From Artifact [aa4d4c11bf]:

To Artifact [9b32380e7d]:


15
16
17
18
19
20
21


22
23
24
25
26
27
28
		fi ;\
	done
	# bail out if binary not found
	if [ -z $${CMD} ]; then \
		echo "MRC:$@> Executable not found." ;\
		exit 0 ;\
	fi


	# check for rtprio/idprio
	if [ -n "$${DAEMON_$@_IDPRIO}" ]; then \
		export CMD="/usr/sbin/idprio $${DAEMON_$@_IDPRIO} $${CMD}" ;\
	elif [ -n "$${DAEMON_$@_RTPRIO}" ]; then \
		export CMD="/usr/sbin/rtprio $${DAEMON_$@_RTPRIO} $${CMD}" ;\
	fi








>
>







15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
		fi ;\
	done
	# bail out if binary not found
	if [ -z $${CMD} ]; then \
		echo "MRC:$@> Executable not found." ;\
		exit 0 ;\
	fi

_service_check_start: .USEBEFORE
	# check for rtprio/idprio
	if [ -n "$${DAEMON_$@_IDPRIO}" ]; then \
		export CMD="/usr/sbin/idprio $${DAEMON_$@_IDPRIO} $${CMD}" ;\
	elif [ -n "$${DAEMON_$@_RTPRIO}" ]; then \
		export CMD="/usr/sbin/rtprio $${DAEMON_$@_RTPRIO} $${CMD}" ;\
	fi

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
OTHER_TARGETS:=${OTHER_TARGETS} _service_${starter} _service_${starter}_exit _service_${starter}_status

# here we are inheriting pieces of different targets into one single target, so
# everything is appended in the order, but gets organized a little bit
# differently, all targets with .USEBEFORE are added before current target
# script, so after "_service_pre _service_check" we got that order inverted

_SERVICE_${Starter}:=_service_pre DAEMON _service_${starter} _service_check
_EARLYSERVICE_${Starter}:=_service_pre SERVICE _service_${starter} _service_check
_SERVICE_${Starter}_EXIT:=_service_${starter}_exit _service_post_exit

.	if "${STARTER}" == "${starter}"
_SERVICE:=_service_pre DAEMON _service_${starter} _service_check
_EARLYSERVICE:=_service_pre SERVICE _service_${starter} _service_check
_SERVICE_EXIT:=_service_${starter}_exit _service_post_exit
.	endif

.	export
.	include "${starter_source}"
.endfor







|
|
|


|
|
|


|


45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
OTHER_TARGETS:=${OTHER_TARGETS} _service_${starter} _service_${starter}_exit _service_${starter}_status

# here we are inheriting pieces of different targets into one single target, so
# everything is appended in the order, but gets organized a little bit
# differently, all targets with .USEBEFORE are added before current target
# script, so after "_service_pre _service_check" we got that order inverted

_SERVICE_${Starter}:=_service_pre DAEMON _service_${starter} _service_check_start _service_check
_EARLYSERVICE_${Starter}:=_service_pre SERVICE _service_${starter} _service_check_start _service_check
_SERVICE_${Starter}_EXIT:=_service_${starter}_exit _service_post_exit _service_check

.	if "${STARTER}" == "${starter}"
_SERVICE:=${_SERVICE_${Starter}}
_EARLYSERVICE:=${_EARLYSERVICE_${Starter}}
_SERVICE_EXIT:=${_SERVICE_${Starter}_EXIT}
.	endif

.	export-all
.	include "${starter_source}"
.endfor