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