You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
265 B
14 lines
265 B
#!/bin/bash
|
|
|
|
# ======== 下面是原来的下线逻辑 ===========
|
|
if [ -f pid ]; then
|
|
if kill `cat pid` ; then
|
|
echo 'kill process succeed'
|
|
else
|
|
echo 'kill process fail'
|
|
exit 1
|
|
fi
|
|
else
|
|
echo 'pid file not exists'
|
|
exit 1
|
|
fi
|