• R/O
  • HTTP
  • SSH
  • HTTPS

Fulcon: コミット

Fulconのソース管理


コミットメタ情報

リビジョン78fa7fafee76d9d3a2d8fbb328ba727ea03df41e (tree)
日時2016-04-12 14:51:45
作者NIWA Hideyuki <niwa.niwa@nift...>
コミッターNIWA Hideyuki

ログメッセージ

improvement of restart process of fulcond service

変更サマリ

差分

--- a/src/cmd/fulcond
+++ b/src/cmd/fulcond
@@ -11,25 +11,31 @@ lsdir() {
1111 ls -f --ind=none $1 | sed '/^\.\{1,2\}$/d'
1212 }
1313
14-# delete all bridge
15-br-del-all
14+if [ ! -d /var/run/fulcon ]; then
1615
17-# auto setup fulcon bridge
18-mkdir -p $FULCONDIR/br
19-for i in `lsdir $FULCONDIR/br`
20-do
16+ # delete all bridge
17+ br-del-all
18+
19+ # auto setup fulcon bridge
20+ mkdir -p $FULCONDIR/br
21+ for i in `lsdir $FULCONDIR/br`
22+ do
2123 if [ -f $FULCONDIR/br/$i ]; then
2224 fulcon net-nic-add $i
2325 fi
24-done
26+ done
2527
26-# auto start fulcon container
27-for i in `lsdir $FULCONDIR/container`
28-do
28+ # auto start fulcon container
29+ for i in `lsdir $FULCONDIR/container`
30+ do
2931 if [ -f $FULCONDIR/container/$i/autostart ]; then
3032 fulcon start $i
3133 fi
32-done
34+ done
35+
36+ mkdir -p /var/run/fulcon
37+
38+fi
3339
3440 while :
3541 do
旧リポジトリブラウザで表示