@mfl/device-scanner-daemon

0.1.0 • Public • Published

device-scanner-daemon

A persistent process that consumes udev events over a unix domain socket.

Overview

There are two main modes to this daemon:

  1. Processing new incoming events. In this mode we will munge and store incoming events.

  2. Send current devices object listing. In this mode we will send our current stored devices.

We use unix domain sockets to communicate with the outside world.

Consumers can send a Request over the socket to retrieve the current listing:

"Info"

Architecture

         ┌───────────┐
         │   Udev    │
         └───────────┘
               │
               │
               │
       ┌───────┴────────┐
       │   Run Script   │
       └───────┬────────┘
               │
               │
               ▼
  ┌─────────────────────────┐
  │  Block-Device Listener  │
  └─────────────────────────┘
               │
               │
               │
               │
   ┌───────────┴──────────┐
   │  Unix Domain Socket  │
   └───────────┬──────────┘
               │
               │
               ▼
┌────────────────────────────┐
│   Device Scanner Daemon    │
└────────────────────────────┘
               ▲
               │
               │
               │
    ┌──────────┴──────────┐
    │ Unix Domain Socket  │
    └──────────┬──────────┘
               │
               │
               │
               ▼
     ┌──────────────────┐
     │ Consumer Process │
     └──────────────────┘

Dependents (0)

Package Sidebar

Install

npm i @mfl/device-scanner-daemon

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • manager-for-lustre
  • johnsonw
  • jgrund