Skip to content

Commit

Permalink
脚本移到根目录
Browse files Browse the repository at this point in the history
  • Loading branch information
lisijie committed Dec 29, 2015
1 parent 74ddfa8 commit 5448d00
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

go build -o ./bin/webcron ./

cp -r ./views ./conf ./static ./run.sh ./bin/
19 changes: 19 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

case $1 in
start)
nohup ./webcron 2>&1 >> info.log 2>&1 /dev/null &
echo "服务已启动..."
sleep 1
;;
stop)
killall webcron
echo "服务已停止..."
sleep 1
;;
*)
echo "$0 {start|stop}"
exit 4
;;
esac

0 comments on commit 5448d00

Please sign in to comment.