Giter Club home page Giter Club logo

pacman-watch's People

Contributors

networkimprov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

thomasdziedzic

pacman-watch's Issues

Pacmatic integration

add function to retrieve the pacman-watch status URL
provide command-line switch for pacman-watch
if switch on and URL returns error, print error and exit

Nits

File names: client-{open,close}.{sh,service,timer} -- no need for 'pacman-watch' prefix

Header comments: follow example of service.go

client-open.sh: maybe
if pacman -Qu | grep common_word > /dev/null; then ...

Since client-open isn't a service unto itself, could client-open .service & .timer files be combined?

Provide an install script instead of commands in readme.

Provide client.conf file for shell vars: host, client, password, etc.

Commit message template: {add,fix,clean}: {server,client} description
add = new feature, fix = repair feature, clean = polish without additions or fixes

Test scripts

Run scripts found in a test/ directory after reboot, before client-close.
First script checks log files for update-related errors.

Client handle network errors

For any command that hits the network, retry every minute for network errors.
After 20 retries to /{open,close}, give up (update is stale by then).
Server will allow /open, failed /close, /open
Disable .timer during open/restart/test/close sequence (server expects single-threaded client)

Unable to communicate with server with simple test.

Hey, I started a new server instance with: ./service test and run the following curl commands:

[self@anvl pacman-watch]$ curl 'http://192.168.0.100:4321/open?client=tom&pw=password'
ok
tom@2014-10-30T21:45:16-07:00
[self@anvl pacman-watch]$ curl 'http://192.168.0.100:4321/close?client=tom@2014-10-30T21:45:16-07:00&pw=password'                                                                                                                                                                                                             
error
already closed

I have never used the "tom" client before.

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.