Running a node.js server in Windows. I need the server to auto launch on startup-boot, followed by launching a standalone application. can anyone tell me the best way of accomplishing this?
You'll want to run node as a Windows Service. Services start right after boot, before login.
As far as launching the standalone app, the answer depends on what it is. If it's a GUI app, you'll need to configure Windows to automatically log in, then you can just put it in the Startup folder. If it doesn't have a GUI, you can just use child_process to spawn the app from node.
Related
I am trying to auto launch my electron app, electron docs provide the instructions.
I tried electron-quick-start app with this code:
app.setLoginItemSettings({
openAtLogin: true
})
This works fine without any issue.
But my electron app is just a main process running in background (no BrowserWindow). And when I use this setting in it creates startup entry but doesn't start on windows login.
After a lot of trial I found out that, electron app with administrative privilege can't auto launch on startup. You need to remove that privilege from package.json and then it should work normally.
I want to run nodejs http-server which serves a static file as a windows service which autostarts on boot. How do we keep this server running in background?
use NSSM.
You usually need a windows service to be destined for being a server, this is a service manager that works as a service and lets you make simple apps into windows services.
I have written a node webkit application that also works as a window manager.
I want to achieve the following on Ubuntu on boot:
Bypass Ubuntu loading screen (skip it or customize it)
Start and display my app instead of and before anything else
Is that possible? And if yes how can it be achieved? Thanks.
I take it that you are launching node-webkit in kiosk mode?
https://github.com/nwjs/nw.js/wiki/The-Kiosk-mode
To add your app in Ubuntu as apps to start as soon as linux has booted:
https://askubuntu.com/questions/30931/how-do-i-make-a-program-auto-start-every-time-i-log-in
I have Worklight Server and Appcenter installed on RHEL 6.4 and am unable to find commands to start & stop these servers gracefully. Primarily, I would like to do this to apply patches, make changes to databases etc.. Any help is really appreciated.
It sounds to me like you are referring to installed instances of Worklight Server and Application Center in a QA/UAT/Production environment.
This means that your Worklight Server and Application Center instances are deployed to some application server (either WAS, WAS Liberty or Tomcat). So the way to start and stop these instances would be via the commands available by the the used application server. You should probably then consult with the user documentation of the used application server for the commands. For example for Liberty: http://www-01.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/twlp_admin_script.html
If you are in fact referring to the Worklight Development Server (Worklight Studio plug-in for Eclipse), there is no publically available way to stop the server from command line -- unless you are using the CLI tool to manage your development (working outside of Eclipse), there you do have a command for it.
I´m developing a Windows 8 App, and it needs a desktop app running on background to work properly.
So i have two questions:
1.- The OS is a Windows 8.1 Industry Embedded. I need to autorun the desktop app and my Windows 8 app at startup.
Here explains how to do so with a Windows 8 App, but not with a desktop app, so i´m using this other solution to add the application to the Windows Startup folder, but i´m not sure if this is the best way.
2.- Then, when my app starts, i should check if the other app is running or not to work in one way or another. How can i check that? I´m developing with HTML and Javascript.
Thanks!
Yes that is the 'proper' solution to starting a desktop app on startup. Otherwise you can look at creating a windows service that manages the app lifecycle.
By design, winRT apps are not supposed to talk to desktop applications, but if you are sideloading the winRT app (i.e., not through the Windows Store), you could run a local server with your desktop app, and then enable local loopback with localhost in your winRT app and communicate that way.