diff options
Diffstat (limited to 'catlfish-dev/start.sh')
-rwxr-xr-x | catlfish-dev/start.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/catlfish-dev/start.sh b/catlfish-dev/start.sh index 9265210..a494184 100755 --- a/catlfish-dev/start.sh +++ b/catlfish-dev/start.sh @@ -16,8 +16,12 @@ erlbase=$ERLANG_BASE_DIR # source code to be unpacked in the container. GETCONFIG=/usr/local/catlfish/src/tools/getconfig.sh +LOCALCONF=/usr/local/etc/catlfish/${nodename}.cfg +GLOBALCONF=${logname}.cfg +PLOPCONTROL=${nodename}.plopcontrol + mkdir ${nodename} -$GETCONFIG /usr/local/etc/catlfish/${nodename}.cfg ${logname}.cfg force-compile +${GETCONFIG} ${LOCALCONF} ${GLOBALCONF} force-compile ln -s ${nodename}/${nodename}.config case $role in @@ -39,6 +43,11 @@ case $role in ;; esac +$erlbase/update-config.sh 3600 \ + ${GETCONFIG} ${LOCALCONF} ${GLOBALCONF} ${PLOPCONTROL} \ + > update_conf_log/stdout \ + 2> update_conf_log/stderr & + $erlbase/bin/run_erl \ /var/run/catlfish/ \ /var/run/catlfish/erlang_log/ \ |