Comments (5)
RTFC.
Sorry my bad, should have checked out the code first, if anyone else is looking for the same thing, check out ...
https://github.com/coreybutler/node-windows/blob/master/lib/winsw.js#L51-L56
Would be cool if this was documented, might add a PR for documenting this, when I've had a proper play with it.
from node-windows.
Ah, you found it while I was typing! Feel free to do a doc PR. I am actually getting ready to release a round of updates that have been on my backburner for a while, but that is not one on my list... but I'm happy to accept contributions. I'm not 100% convinced the solution will provide exactly what you're looking for, but it might at least give you a start.
To address your point regarding scope, it is not something I planned to address in great detail with node-windows (or node-mac/linux). For quite some time now, I have been working on a different project called NGN for this type of scenario. It is a distributed programming framework that has a server agent capable of registering and communicating with disparate processes (LAN & WAN). In some ways, it is similar to Seaport. The node-* modules are really just "housing" for NGN processes though. The project is done, but I have some folks vetting out bugs at the moment... so not ready to release just yet.
from node-windows.
OK, cool - well I'll see where I get with it.
NGN sounds interesting, I'll have to watch out for that.
from node-windows.
So it's been a while and a lot has changed (coming in the next major release). winsw
has added support for dependencies, though I'm not sure they fit in the scope of the node-*
modules. Regardless, it should be pretty easy to make this happen.
Additionally, the events, such as start
will now trigger in an order where you could create a script with event handlers to launch processes in a specific order, i.e. something along the lines of:
serviceA.on('start',function(){
serviceB.start();
});
serviceB.on('start',function(){
serviceC.start();
});
serviceC.on('start',function(){
console.log('All 3 scripts starting.');
});
serviceA.start();
from node-windows.
Sounds good, look forward to seeing it.
from node-windows.
Related Issues (20)
- 07/02/2023: Dependent on another service HOT 5
- Problem running git HOT 3
- My service is stopped but the program is still running HOT 1
- Service install silently fails on Windows 11 HOT 4
- Service created BUT NOT RUNNING HOT 5
- Needs windows restart before creating service HOT 1
- 03/30/2023: Please release a non-beta version HOT 2
- node-windows with babel and pkg HOT 1
- Question: Is it possible to split .exe creation and service creation HOT 1
- Comments in the XML file break the service executable
- Unsupported node: v19.0.0 HOT 1
- Event Logging other than event id 1000 HOT 7
- File path HOT 2
- 2023-07-13: React functionality HOT 1
- I need the source code for the binary files under "/bin" HOT 2
- Error while creating daemon folder: daemon already exists HOT 1
- [20231213]: Windows DNS integration HOT 2
- Noticed Typo in the documentation
- logpath property is not working HOT 2
- is it possible to have exe name different than the service name ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-windows.