代码拉取完成,页面将自动刷新
#!/bin/sh
SERVICE_NAME=Local_Tranfromation_Service
LOCAL_TRANSFORM_SERVICE_HOME=/opt/alfresco-community
PID_PATH_NAME=$LOCAL_TRANSFORM_SERVICE_HOME/Local_Tranfromation_Service-pid
echo "Process id path: $PID_PATH_NAME"
case $1 in
start)
echo "Starting $SERVICE_NAME ..."
if [ ! -f $PID_PATH_NAME ]; then
nohup java -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 -DPDFRENDERER_EXE="$LOCAL_TRANSFORM_SERVICE_HOME/alfresco-pdf-renderer/alfresco-pdf-renderer" -DLIBREOFFICE_HOME="$LOCAL_TRANSFORM_SERVICE_HOME/libreoffice" -DIMAGEMAGICK_ROOT="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick" -DIMAGEMAGICK_DYN="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick" -DIMAGEMAGICK_EXE="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick/convert" -DIMAGEMAGICK_CODERS="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick/modules-Q16HDRI/coders" -DIMAGEMAGICK_CONFIG="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick/config-Q16HDRI" -DACTIVEMQ_URL="failover:(tcp://localhost:61616)?timeout=3000" -jar $LOCAL_TRANSFORM_SERVICE_HOME/bin/alfresco-transform-core-aio-boot-2.4.0.jar /tmp 2>> /dev/null >>/dev/null & echo $! > $PID_PATH_NAME
printf "\n $SERVICE_NAME started ...\n"
else
printf "\n $SERVICE_NAME is already running ...\n"
fi
;;
stop)
if [ -f $PID_PATH_NAME ]; then
PID=$(cat $PID_PATH_NAME);
printf "\n $SERVICE_NAME stoping ... \n"
/bin/kill $PID;
printf "\n $SERVICE_NAME stopped ...\n"
rm $PID_PATH_NAME
else
printf "\n $SERVICE_NAME is not running ...\n"
fi
;;
restart)
if [ -f $PID_PATH_NAME ]; then
PID=$(cat $PID_PATH_NAME);
printf "\n $SERVICE_NAME stopping ...\n"
kill $PID
printf "\n $SERVICE_NAME stopped ...\n"
rm $PID_PATH_NAME
printf "\n $SERVICE_NAME starting ...\n"
nohup java -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 -DPDFRENDERER_EXE="$LOCAL_TRANSFORM_SERVICE_HOME/alfresco-pdf-renderer/alfresco-pdf-renderer" -DLIBREOFFICE_HOME="$LOCAL_TRANSFORM_SERVICE_HOME/libreoffice" -DIMAGEMAGICK_ROOT="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick" -DIMAGEMAGICK_DYN="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick" -DIMAGEMAGICK_EXE="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick/convert" -DIMAGEMAGICK_CODERS="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick/modules-Q16HDRI/coders" -DIMAGEMAGICK_CONFIG="$LOCAL_TRANSFORM_SERVICE_HOME/imagemagick/config-Q16HDRI" -DACTIVEMQ_URL="failover:(tcp://localhost:61616)?timeout=3000" -jar $LOCAL_TRANSFORM_SERVICE_HOME/bin/alfresco-transform-core-aio-boot-2.4.0.jar /tmp 2>> /dev/null >>/dev/null & echo $! > $PID_PATH_NAME
printf "\n $SERVICE_NAME started ...\n"
else
printf "\n $SERVICE_NAME is not running ...\n"
fi
esac
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。