hic-et-nunc / bifrostd

move files elsewhere using watch on different folders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bifrostd

Bring things to another place...

How it works

List watches

$ curl -iv -XGET --unix-socket /tmp/bifrostd.sock http:/path

Expose Details of a watch

$ curl -iv -XGET --unix-socket /tmp/bifrostd.sock http:/path//tmp/walter

Watch path

$ curl -iv \
--data '{"path": "/tmp/walter", "namespace": "wally"}' \
-XPOST \
--unix-socket /tmp/bifrostd.sock http:/watch

Install

bifrostd group

sudo groupadd -g 342 bifrostd --system

Add bifrostd to your user

sudo usermod -a -G bifrostd {username}

Install service

Modify bifrostd.service in order to match your local install

sudo systemctl enable bifrostd.service

Configuration

Use host:port

Change the httpd section

{
    "httpd": {
        "host": "0.0.0.0",
        "port:" "8081"
    }
}
curl -iv -XGET http://localhost:8081/path

About

move files elsewhere using watch on different folders


Languages

Language:JavaScript 100.0%