1 Star 0 Fork 0

凌云文档/alfresco-setup-7.2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
localTransformationService.sh 2.73 KB
一键复制 编辑 原始数据 按行查看 历史
凌云文档 提交于 2022-09-17 23:44 . ini
#!/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xinyichv/alfresco-setup-7.2.git
git@gitee.com:xinyichv/alfresco-setup-7.2.git
xinyichv
alfresco-setup-7.2
alfresco-setup-7.2
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385