Overview
| Comment: | calculate targets once, add crash handler |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
f95fc3334e49ca14c7059338438528e6 |
| User & Date: | arcade on 2019-10-20 11:29:09.843 |
| Other Links: | manifest | tags |
Context
|
2019-10-20
| ||
| 11:54 | fix variables, fix execution order check-in: 47c6cc1171 user: arcade tags: trunk | |
| 11:29 | calculate targets once, add crash handler check-in: f95fc3334e user: arcade tags: trunk | |
| 10:10 | fix cleanvar and race around /var/run/shm check-in: 2bf099898d user: arcade tags: trunk | |
Changes
Modified Makefile
from [d7e2f924ba]
to [4386fe9b60].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
.include "/etc/mrc.conf"
.export
DAEMONIZER?=svc.daemon
#.MAKE.JOBS?=2
#.SILENT:
.include "${DAEMONIZER}"
.if defined(AUTOBOOT)
SCRIPTS=${:!find /etc/mrc -name '*.init' -o -name '*.service'!:S/\/etc\/mrc\///}
.else
SCRIPTS=${:!find /etc/mrc -name '*.service'!:S/\/etc\/mrc\///}
DAEMON:
.endif
| > > > > > > | > > | | 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 27 28 29 30 31 32 33 |
.include "/etc/mrc.conf"
.export
DAEMONIZER?=svc.daemon
#.MAKE.JOBS?=2
#.SILENT:
.include "${DAEMONIZER}"
.if defined(AUTOBOOT)
SCRIPTS=${:!find /etc/mrc -name '*.init' -o -name '*.service'!:S/\/etc\/mrc\///}
.ERROR:
: ERROR: ABORTING BOOT (sending SIGTERM to parent)!
: target ${.ERROR_TARGET} failed to execute:
: ${.ERROR_CMD}
kill 1
.else
SCRIPTS=${:!find /etc/mrc -name '*.service'!:S/\/etc\/mrc\///}
DAEMON:
.endif
TARGETS=${SCRIPTS:S/.init//:S/.service//}
.MAIN: ${TARGETS}
.PHONY: ${TARGETS} _daemon _service
.for file in ${SCRIPTS}
.include "${file}"
.endfor
|