Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
BoxuanXu
/
FlaskDriverMXNet2SeetaNet
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c794e0b4
authored
Aug 16, 2017
by
BoxuanXu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add daemon's code
1 parent
54e6de8b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
src/keep.sh
src/run.sh
src/keep.sh
0 → 100755
View file @
c794e0b
#########################################################################
# name: keep.sh
# Author: seetatech xuboxuan
# mail: boxuan.xu@seetatech.com
# Created Time: 16 Aug 2017 07:49:46 PM CST
#########################################################################
#!/bin/bash
sn
=
`
ps x | grep Drive_Converter.py | grep -v grep | awk
'{print $1}'
`
echo
$sn
if
[
"
${
sn
}
"
=
""
]
#如果为空,表示进程未启动
then
echo
no sdk_process
mv log log_bak/
`
date +%s
`
.log.bak
nohup python Drive_Converter.py > log 2>&1 &
echo
start success
fi
src/run.sh
0 → 100755
View file @
c794e0b
#!/bin/sh
kill
-9
`
ps x | grep Drive | grep -v grep | awk
'{print $1}'
`
sleep 1
mv log log_bak/
`
date +%s
`
.log.bak
nohup python Drive_Converter.py > log 2>&1 &
echo
start success
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment