npm / ndm

ndm allows you to deploy OS-specific service-wrappers directly from npm-packages.
ISC License
182 stars 22 forks source link

support for forever-monitor #78

Open piranna opened 10 years ago

piranna commented 10 years ago

I've done some commits to help forever to work as service manager for NodeOS, only keeps ndm to export services to its format :-) This would need to have render functions instead of templates, since the idea is to have all that config in a json file, with a list of objects one for each installed service, so an API is necesary. Where could we start looking for?

bcoe commented 10 years ago

@piranna I like the idea of adding support for forever. I was hoping that by breaking things up into the lib/platform-apis folder, it would be possible to add service managers such as this. If you want to do some exploration, and find out what ndm is missing to make this possible, it would be awesome.

I probably won't have any time to hack on ndm until at least this Sunday.

piranna commented 10 years ago

I did a search lately and I think the key is https://github.com/npm/ndm/blob/master/lib/platform-apis/platform-base.js#L30, just by overloading that method in a child class is almost enough.