浏览代码

Update the watch workers applescript to watch the celerybeat log file.

Ask Solem 15 年之前
父节点
当前提交
7d08a4e2c7
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      contrib/mac/watch-workers.applescript

+ 10 - 0
contrib/mac/watch-workers.applescript

@@ -1,5 +1,6 @@
 set broker to "h8.opera.com"
 set broker to "h8.opera.com"
 set workers to {"h6.opera.com", "h8.opera.com", "h9.opera.com", "h10.opera.com"}
 set workers to {"h6.opera.com", "h8.opera.com", "h9.opera.com", "h10.opera.com"}
+set clock to "h6.opera.com"
 tell application "iTerm"
 tell application "iTerm"
     activate
     activate
     set myterm to (make new terminal)
     set myterm to (make new terminal)
@@ -17,6 +18,15 @@ tell application "iTerm"
                 write text "ssh root@" & workerhost & " 'tail -f /var/log/celeryd.log'"
                 write text "ssh root@" & workerhost & " 'tail -f /var/log/celeryd.log'"
             end tell
             end tell
         end repeat
         end repeat
+        set celerybeat to (make new session at the end of sessions)
+        tell celerybeat
+            set name to "celerybeat.log"
+            set foreground color to "white"
+            set background color to "black"
+            set transparency to 0.1
+            exec command "/bin/sh -i"
+            write text "ssh root@" & clock & " 'tail -f /var/log/celerybeat.log'"
+        end tell
         set rabbit to (make new session at the end of sessions)
         set rabbit to (make new session at the end of sessions)
         tell rabbit
         tell rabbit
             set name to "rabbit.log"
             set name to "rabbit.log"