| … | |
… | |
| 99 | [[ -z ${cmd} ]] && cmd="${name}" |
99 | [[ -z ${cmd} ]] && cmd="${name}" |
| 100 | |
100 | |
| 101 | # We may want to launch the daemon with a custom command |
101 | # We may want to launch the daemon with a custom command |
| 102 | # This is mainly useful for debugging with apps like valgrind, strace |
102 | # This is mainly useful for debugging with apps like valgrind, strace |
| 103 | local bash_service="$( bash_variable "${myservice}" )" |
103 | local bash_service="$( bash_variable "${myservice}" )" |
| 104 | eval x=\"\$\{RC_DAEMON_${bash_service}\}\" |
|
|
| 105 | if [[ -n ${x} ]]; then |
104 | if [[ -n ${RC_DAEMON} ]]; then |
| 106 | local -a d=( ${x} ) |
105 | local -a d=( ${RC_DAEMON} ) |
| 107 | if ${stopping}; then |
106 | if ${stopping}; then |
| 108 | args="--stop" |
107 | args="--stop" |
| 109 | else |
108 | else |
| 110 | args="--start" |
109 | args="--start" |
| 111 | fi |
110 | fi |