Skip to content

Commit 86a9d55

Browse files
Convenience update to chunkserver shell start script (#18)
1 parent dcf80b0 commit 86a9d55

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

moosefs-chunkserver/chunkserver.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,17 @@ if [ ! -z ${LABELS+X} ];
3737
echo "LABELS=$LABELS" >> /etc/mfs/mfschunkserver.cfg
3838
fi
3939

40+
if [ ! -z ${MASTER_HOST+X} ];
41+
then
42+
echo "MASTER_HOST=$MASTER_HOST" >> /etc/mfs/mfschunkserver.cfg
43+
fi
44+
if [ ! -z ${CSSERV_LISTEN_PORT+X} ];
45+
then
46+
echo "CSSERV_LISTEN_PORT=$CSSERV_LISTEN_PORT" >> /etc/mfs/mfschunkserver.cfg
47+
fi
48+
if [ ! -z ${DATA_PATH+X} ];
49+
then
50+
echo "DATA_PATH=$DATA_PATH" >> /etc/mfs/mfschunkserver.cfg
51+
fi
52+
4053
exec mfschunkserver -f

0 commit comments

Comments
 (0)