14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
. if !defined(DAEMON_${service}_COMMAND)
. warning MRC> Service [${service}] defunct: no COMMAND specified
. else
# Service creation targets
. if !target(${service})
${service}: ${service}_exit ${_SERVICE}
. endif
# Service status targets
. if !target(${service}_status)
${service}_status: ${_SERVICE_STATUS}
. endif
# Service exit targets
|
|
>
>
>
>
|
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
. if !defined(DAEMON_${service}_COMMAND)
. warning MRC> Service [${service}] defunct: no COMMAND specified
. else
# Service creation targets
. if !target(${service})
${service}: ${service}_exit ${_SERVICE} ${service}_after
. endif
#
# Service part that runs after daemonization, we are just turning them
# to macros and making sure they exist
${service}_after: .USE
# Service status targets
. if !target(${service}_status)
${service}_status: ${_SERVICE_STATUS}
. endif
# Service exit targets
|