|
@@ -14,14 +14,14 @@ read command
|
|
echo "Please input the directory"
|
|
echo "Please input the directory"
|
|
read directory
|
|
read directory
|
|
|
|
|
|
-#Copy the configuration file in the supervisor.d folder
|
|
|
|
|
|
+# Copy the configuration file in the supervisor.d folder
|
|
served="/etc/supervisord.d"
|
|
served="/etc/supervisord.d"
|
|
if [ -f "$served/$conf" ]
|
|
if [ -f "$served/$conf" ]
|
|
then
|
|
then
|
|
echo "The service has already existed"
|
|
echo "The service has already existed"
|
|
exit 1
|
|
exit 1
|
|
else
|
|
else
|
|
-#The first position is server.conf File installation directory
|
|
|
|
|
|
+# The first position is server.conf File installation directory
|
|
cp server.conf $served/$conf
|
|
cp server.conf $served/$conf
|
|
fi
|
|
fi
|
|
|
|
|
|
@@ -32,6 +32,6 @@ 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
|
|
|
|
|
|
-#Reread supervisor's configuration file
|
|
|
|
|
|
+# Reread supervisor's configuration file
|
|
supervisorctl update
|
|
supervisorctl update
|
|
|
|
|