#!/bin/bash
sersyncd="/opt/app/sersyncd/sersync/sersync2"
confxml="/opt/app/sersyncd/sersync/confxml.xml"
status="`ps -ef | grep "$sersyncd" | grep -v "grep" | wc -l` -gt 1"
if [ $? = 0 ];then
echo "sersyncd is running." >/dev/null 2>&1
else
$sersyncd -r -d -o $confxml & >> /var/log/sersyncdd.log
exit 0;
fi
时间: 2024-10-12 15:34:40