An open API service indexing awesome lists of open source software.

https://github.com/smeijer/watch-port

run an arbitrary command when a server reboots
https://github.com/smeijer/watch-port

Last synced: 9 days ago
JSON representation

run an arbitrary command when a server reboots

Awesome Lists containing this project

README

        

# watch-port

Run an arbitrary command when a server reboots.

As most servers temporarily close their socket when rebooting, we can listen to the `connect` and `disconnect` events to decide when a given command needs to rerun.

## Usage

```shell
watch-port -p 3003 -c "node regen-types.js --spec https://example.com/openapi.json"
```