mirror of
https://github.com/sstent/moosefs_docker.git
synced 2026-01-26 09:01:43 +00:00
MooseFS Docker Cluster
This commit is contained in:
19
moosefs-master/start.sh
Executable file
19
moosefs-master/start.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
cp /etc/mfs/mfsmaster.cfg.sample /etc/mfs/mfsmaster.cfg
|
||||
cp /etc/mfs/mfsexports.cfg.sample /etc/mfs/mfsexports.cfg
|
||||
|
||||
# Add hostname to hosts
|
||||
ifconfig eth0 | awk '/inet addr/{printf substr($2,6)}' >> /etc/hosts
|
||||
echo " mfsmaster" >> /etc/hosts
|
||||
ifconfig eth0 | awk '/inet addr/{print substr($2,6)}'
|
||||
|
||||
mfsmaster start -a
|
||||
service moosefs-cgiserv start
|
||||
|
||||
if [[ $1 == "-d" ]]; then
|
||||
while true; do sleep 1000; done
|
||||
fi
|
||||
|
||||
if [[ $1 == "-bash" ]]; then
|
||||
/bin/bash
|
||||
fi
|
||||
Reference in New Issue
Block a user