Skip to content

Commit

Permalink
optimize admin.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
snowinszu committed Jan 4, 2021
1 parent 0bf90cf commit 839fc24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FILE_NAME="cbsignal"
if [ -n "$2" ]; then
SERVER=$2
else
SERVER=$FILE_NAME
SERVER="signald"
fi

SERVICE="$SERVER.service"
Expand Down Expand Up @@ -80,6 +80,7 @@ function start()
# check status
if [ "`pgrep $SERVER`" == "" ];then
echo "$SERVER start failed"
rm -f $SERVER
exit 1
fi

Expand Down

0 comments on commit 839fc24

Please sign in to comment.