Giter Club home page Giter Club logo

watchman's People

Contributors

klimkiewicz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

watchman's Issues

Missing installation instructions

I tried to install watchman on an ubuntu server without success. Can you provide some installation instructions ?

I tried:

sudo aptitude install libev-dev luarocks
git clone git://github.com/miGlanz/watchman.git
sudo luarocks install watchman/watchman-git-1.rockspec

Error:

Parse error processing dependency 'lua_signal'

If I remove the 'lua_signal' dependency in rockspec, and do:

sudo aptitude install luarocks lua_signal
sudo luarocks install watchman/watchman-git-1.rockspec

It seems to compile. But then I launch:

watchman.lua

And get this error:

/usr/local/lib/luarocks/rocks/watchman/git-1/bin/watchman.lua:31: attempt to index global 'ev' (a nil value)

Any help?

Not expected behavior with basic example

I use the following basic configuration:

NGINX_CONF = '/etc/nginx/nginx.conf'
nginx = process 'nginx' { '/usr/sbin/nginx -c ' .. NGINX_CONF }

I make sure nginx is not running sudo killall nginx. Then run watchman sudo watchman.lua nginx.lua. It outputs Process nginx started..

But nginx is obviously not running when I try to reach it through my browser.

If I ps aux | grep nginx in another terminal window, I have:

root     29320  0.0  0.1   4024  1164 pts/1    S+   08:30   0:00 sudo watchman.lua nginx.lua
root     29321  0.0  0.2   3012  1260 pts/1    S+   08:30   0:00 /usr/bin/lua -lluarocks.loader /usr/local/lib/luarocks/rocks/watchman/git-1/bin/watchman.lua nginx.lua
root     29323  0.0  0.0   2048   516 pts/1    S    08:30   0:00 /bin/sh -c /usr/sbin/nginx -c /etc/nginx/nginx.conf
root     29324  0.0  0.0   1048     4 pts/1    t    08:30   0:00 /usr/sbin/nginx -c /etc/nginx/nginx.conf

Then, I ctrl+c watchman in the other window. It outputs Stopping nginx and what it's weird is that nginx now became reachable through my web browser.

And if I ps aux | grep nginx again, I have:

root     29352  0.0  0.1  11388   956 ?        Ss   08:30   0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
www-data 29353  0.0  0.2  11528  1356 ?        S    08:30   0:00 nginx: worker process                   
www-data 29354  0.0  0.2  11528  1356 ?        S    08:30   0:00 nginx: worker process                   
www-data 29355  0.0  0.2  11528  1356 ?        S    08:30   0:00 nginx: worker process                   
www-data 29356  0.0  0.2  11528  1356 ?        S    08:30   0:00 nginx: worker process

What do you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.