supervisord-reactor

1.0.0 • Public • Published

supervisord-reactor

Run command on supervisord events.

Why

I dont want to include everytime that example python app in my app

Install

npm i -g supervisord-reactor

Usage

[eventlistener:hciup]
events=PROCESS_STATE_RUNNING
command=supervisord-reactor --event PROCESS_STATE_RUNNING "curl slackhook?message=myapp%20is%20running"

Usecases

Make sure your bluetooth device is up

Unfortunately bluez 5 does not set hci devices to "up" state automatically but you need to do it manually (or use @reboot in cron).

[program:ble-app]
command=noble test.js

[eventlistener:hciup]
events=PROCESS_STATE_RUNNING
command=/usr/local/bin/supervisord-reactor --event "PROCESS_STATE_RUNNING" "hciconfig hci0 up"

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i supervisord-reactor

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • oroce