*添加脚本tarball.sh,生成安装包

*修改当Maat无初始化时,证书签发失败
This commit is contained in:
fengweihao
2018-11-13 10:31:21 +08:00
parent c0dd5d1d3f
commit e125afd91d
8 changed files with 73 additions and 30 deletions

View File

@@ -6,13 +6,13 @@ install:
# cp -f etc/cert_store.ini /usr/local/etc/
#
# cp -f bin/cert_store /usr/local/bin/
chmod +x bin/certstore1.0
chmod +x certstore1.0
#
# cp -f lib/* /usr/local/lib/
# sudo ldconfig
update:
# cp -f bin/cert_server /usr/local/bin/
chmod +x bin/certstore1.0
chmod +x certstore1.0
uninstall:
rm -f /usr/local/bin/cert_store

View File

@@ -0,0 +1,3 @@
killall r3_certstore1.0 certstore1.0
./r3_certstore1.0 &> /dev/null &

View File

@@ -0,0 +1,17 @@
#!/bin/sh
while [ 1 ]; do
count=`ls -l core.* |wc -l`
echo $count
if [ $count -lt 5 ]
then
echo "set unlimited"
ulimit -c unlimited
else
ulimit -c 0
fi
./certstore1.0 --normal 2>&1
echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
sleep 10
done