klimkiewicz / watchman Goto Github PK
View Code? Open in Web Editor NEWLightwight, Lua-based process monitor
License: MIT License
Lightwight, Lua-based process monitor
License: MIT License
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?
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.