Permalink
Browse files

run.sh update

  • Loading branch information...
1 parent 0fa97a2 commit fdd29f76983edf3d4eeda9f17477a496d30f00f5 @twiforce committed Nov 18, 2016
Showing with 8 additions and 6 deletions.
  1. +8 −6 run.sh
View
@@ -1,8 +1,10 @@
#!/bin/sh
+PATH='/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin'
-while :
-do
- node index.js
- sleep 2
-
-done
+n=`ps auxwww|grep "node index.js"|grep -v grep|wc -l`
+if [ $n -eq 0 ]
+then
+ cd /home/synch/synchtube.ru
+ node index.js
+ echo `date` >> fuckyou.log
+fi

0 comments on commit fdd29f7

Please sign in to comment.