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.
15 lines
213 B
15 lines
213 B
3 years ago
|
#!/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
|