Open piranna opened 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.
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.
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?