|
@@ -25,13 +25,13 @@ else
|
|
cp server.conf $served/$conf
|
|
cp server.conf $served/$conf
|
|
fi
|
|
fi
|
|
|
|
|
|
-#替换变量
|
|
|
|
|
|
+#Variable substitution
|
|
sed -i "s#PROGRAM#$program#g" $served/$conf
|
|
sed -i "s#PROGRAM#$program#g" $served/$conf
|
|
sed -i "s#PROCESS_NAME#$process_name#g" $served/$conf
|
|
sed -i "s#PROCESS_NAME#$process_name#g" $served/$conf
|
|
sed -i "s#USER#$user#g" $served/$conf
|
|
sed -i "s#USER#$user#g" $served/$conf
|
|
sed -i "s#DIRECTORY#$directory#g" $served/$conf
|
|
sed -i "s#DIRECTORY#$directory#g" $served/$conf
|
|
sed -i "s#COMMAND#$command#g" $served/$conf
|
|
sed -i "s#COMMAND#$command#g" $served/$conf
|
|
|
|
|
|
-#重读supervisor配置文件
|
|
|
|
|
|
+#Reread supervisor's configuration file
|
|
supervisorctl update
|
|
supervisorctl update
|
|
|
|
|