mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
And some docs
This commit is contained in:
11
README.md
11
README.md
@@ -19,6 +19,17 @@ The js part is heavily based on [term.js](https://github.com/chjj/term.js/) whic
|
|||||||
|
|
||||||
Then open [localhost:57575](http://localhost:57575) in your favorite browser and done.
|
Then open [localhost:57575](http://localhost:57575) in your favorite browser and done.
|
||||||
|
|
||||||
|
## Run it with systemd (linux)
|
||||||
|
|
||||||
|
Systemd provides a way to automatically activate daemons when needed (socket activation):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ cd /etc/systemd/system
|
||||||
|
# curl -O https://raw.githubusercontent.com/paradoxxxzero/butterfly/master/butterfly.service
|
||||||
|
# curl -O https://raw.githubusercontent.com/paradoxxxzero/butterfly/master/butterfly.socket
|
||||||
|
# systemctl enable butterfly.socket
|
||||||
|
# systemctl start butterfly.socket
|
||||||
|
```
|
||||||
|
|
||||||
## Contribute
|
## Contribute
|
||||||
|
|
||||||
|
|||||||
5
butterfly.socket
Normal file
5
butterfly.socket
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
[Socket]
|
||||||
|
ListenStream=57575
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sockets.target
|
||||||
Reference in New Issue
Block a user