Overview
| Comment: | doh, fix startup |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
5066f4e4fdebe452bb2c3ed95387ab5d |
| User & Date: | arcade on 2023-11-04 09:06:38.867 |
| Other Links: | manifest | tags |
Context
|
2024-12-24
| ||
| 10:14 | Add README check-in: be69b48ea9 user: arcade tags: trunk | |
|
2023-11-04
| ||
| 09:06 | doh, fix startup check-in: 5066f4e4fd user: arcade tags: trunk | |
| 08:50 | update defaults for service startup check-in: 7b547778fc user: arcade tags: trunk | |
Changes
Modified starter.mk
from [b2c2cec872]
to [f1c7e7fda9].
1 2 3 4 5 6 7 8 9 10 |
OTHER_TARGETS+=_service_pre
STARTER?=svc
_service_check: .USEBEFORE
# check whether service is enabled
if [ -z "$${DAEMON_$@_ENABLE}" -a -z "${FORCE}" ]; then \
exit 0 ;\
fi
# check for first present executable
| | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
OTHER_TARGETS+=_service_pre
STARTER?=svc
_service_check: .USEBEFORE
# check whether service is enabled
if [ -z "$${DAEMON_$@_ENABLE}" -a -z "${FORCE}" ]; then \
exit 0 ;\
fi
# check for first present executable
for CHECK_CMD in ${DAEMON_$@_COMMAND}; do \
if [ -x $${CHECK_CMD} ]; then \
export CMD="$${CHECK_CMD}" ;\
break ;\
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}" ;\
|
| ︙ | ︙ |