|
Automatic Start up using reg key RUN
|
|
18-10-2016, 11:52
Post: #12
|
|||
|
|||
RE: Automatic Start up using reg key RUN
(17-10-2016 17:23)simoncn Wrote: Thanks for the clarifications. You are correct that these launch options are not a documented API and could therefore change in a future version.In fact, I am using the console. The configuration connects files to the standard and error outputs to log messages (although I haven't paid any attention to the contents of those files, but will have a look next time I have the chance). I also have the NSSM configuration set to stop MinimServer by sending Ctrl-C to the console. One of the issues with running as a service, a program not intended to be run as a service is shutting the program down politely. NSSM has various options for this, see: https://nssm.cc/usage (under the Service Shutdown section). Because it was trivially easy to test, I simply checked that the first option of sending Ctrl-C worked. If a program is designed to run as a service, then it should respond appropriately (at least) to SERVICE_CONTROL_STOP and SERVICE_CONTROL_SHUTDOWN messages. That's why you need an intermediate program (NSSM) to accept and act on these messages. The alternative of using something like WinRun4J in service mode requires that the Java program handles these. e.g. see: https://borisinc.wordpress.com/2009/05/3...-winrun4j/ So, to have a way of running MinimServer as a service ideally requires two features: a method of shutting down politely that NSSM can use, and a way of saving the logging information. I assume that most users of MinimServer will either use a supported NAS, or a GNU/linux server. And, a number of users of the windows implementation will be using it only for test purposes (as DavidHB has reported) or for evaluation. In those case the service requirement seems less important. I did the work on running as a service because I happen to have a nettop windows PC (Acer Revo One) which is reasonably low powered and has a 2TB hard disk, and I wanted to satisfy myself that I could produce a generalisable solution to do this in a safe way. However, if there's a supported configuration for running MinimServer in this way, I'll happily update the instructions. Although the absence of comment on those instructions suggests that there isn't much interest, which is what I expect. |
|||
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Automatic Start up using reg key RUN - Madmax - 29-09-2016, 15:52
RE: Automatic Start up using reg key RUN - simoncn - 29-09-2016, 21:06
RE: Automatic Start up using reg key RUN - Madmax - 30-09-2016, 01:36
RE: Automatic Start up using reg key RUN - Madmax - 30-09-2016, 03:55
RE: Automatic Start up using reg key RUN - simoncn - 30-09-2016, 09:17
RE: Automatic Start up using reg key RUN - skeptic Mike - 30-09-2016, 10:31
RE: Automatic Start up using reg key RUN - roadster - 16-10-2016, 20:59
RE: Automatic Start up using reg key RUN - skeptic Mike - 17-10-2016, 13:39
RE: Automatic Start up using reg key RUN - simoncn - 17-10-2016, 14:34
RE: Automatic Start up using reg key RUN - skeptic Mike - 17-10-2016, 16:13
RE: Automatic Start up using reg key RUN - simoncn - 17-10-2016, 17:23
RE: Automatic Start up using reg key RUN - skeptic Mike - 18-10-2016 11:52
RE: Automatic Start up using reg key RUN - simoncn - 18-10-2016, 12:55
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



