Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MinimServer as a windows service
24-12-2012, 10:48
Post: #1
MinimServer as a windows service
Hi folks,
I am running the minimserver on old WHS (2003). After an automatic restart (e.g. automatic service update) I have to restart the minimserver manually. I already tried to install the minimserver as an service, but haven't been sufficiently successful. I get this one registered as a service, but it starts with it's working directory not as the installed directectory. Therefore it fails. Does anybody has an advice.

Best regards and merry christmas!

Nils
Find all posts by this user
Quote this message in a reply
24-12-2012, 11:00
Post: #2
RE: MinimServer as a windows service
(24-12-2012 10:48)HerrNilsson Wrote:  Hi folks,
I am running the minimserver on old WHS (2003). After an automatic restart (e.g. automatic service update) I have to restart the minimserver manually. I already tried to install the minimserver as an service, but haven't been sufficiently successful. I get this one registered as a service, but it starts with it's working directory not as the installed directectory. Therefore it fails. Does anybody has an advice.

Best regards and merry christmas!

Nils

I don't have access to a WHS system to try this. For the MinimServer Windows install package to work correctly, the working directory needs to be the "lib" directory containing the minimserver.jar file.
Find all posts by this user
Quote this message in a reply
30-12-2012, 19:34 (This post was last modified: 30-12-2012 19:35 by Mike48.)
Post: #3
RE: MinimServer as a windows service
(24-12-2012 10:48)HerrNilsson Wrote:  I am running the minimserver on old WHS (2003). After an automatic restart (e.g. automatic service update) I have to restart the minimserver manually. I already tried to install the minimserver as an service, but haven't been sufficiently successful. I get this one registered as a service, but it starts with it's working directory not as the installed directectory. Therefore it fails. Does anybody has an advice.

I am not a WHS user, but doesn't it have a Startup folder, like other forms of Windows? I've put mimimserver.exe into the Startup folder under Windows 7, and it starts up after each boot.

For controlling what's in your Startup folder, you might find this useful:
http://www.mlin.net/StartupCPL.shtml

Hope that helps.

Mike
Portland, Oregon, USA
Find all posts by this user
Quote this message in a reply
12-01-2013, 19:13
Post: #4
RE: MinimServer as a windows service
Hello Simon and Mike,
I have been trying several ways now to get a service running:

a) Using windows service tools like 'srvany': Problem when you get the service configured and started is, that the service starts with the execution directory in windows/system. Didn't find a way to bend this. So I need some service wrapper.

b) A service wrapper like 'Procrun' from Apache Commons: I have got minimserver registered as described in http://commons.apache.org/daemon/procrun.html, but failed to start it.

c) Using another service wrapper YAJSW (Yet Another Java Service Wrapper) from http://yajsw.sourceforge.net/: Quite easy to install, because the tool obtains the necessary service parameters from just the started process. But still don't get it running.

I didn't had much time, but I will continue trying the last option because it seems most promising to me. So for the time beeing. I will respond, when I get more information.

Nils
Find all posts by this user
Quote this message in a reply
12-01-2013, 21:08
Post: #5
RE: MinimServer as a windows service
(12-01-2013 19:13)HerrNilsson Wrote:  Hello Simon and Mike,
I have been trying several ways now to get a service running:

a) Using windows service tools like 'srvany': Problem when you get the service configured and started is, that the service starts with the execution directory in windows/system. Didn't find a way to bend this. So I need some service wrapper.

b) A service wrapper like 'Procrun' from Apache Commons: I have got minimserver registered as described in http://commons.apache.org/daemon/procrun.html, but failed to start it.

c) Using another service wrapper YAJSW (Yet Another Java Service Wrapper) from http://yajsw.sourceforge.net/: Quite easy to install, because the tool obtains the necessary service parameters from just the started process. But still don't get it running.

I didn't had much time, but I will continue trying the last option because it seems most promising to me. So for the time beeing. I will respond, when I get more information.

Nils

Thanks for this update, and thanks for your efforts to find an working combination.

One problem might be that the MinimServer launch icon runs the minimserver.jar file directly, using the Windows .jar file association. Perhaps this can't done when running as a service. You might have more success starting MinimServer using javaw.exe or java.exe using a command like:
<path-to-java>javaw.exe -jar minimserver.jar
Find all posts by this user
Quote this message in a reply
14-01-2013, 05:48
Post: #6
RE: MinimServer as a windows service
Nils,

If you just need Minim Server to restart automatically whenever it is not running, could you use the utility described in the link?

http://www.addictivetips.com/windows-tip...plication/

Then it would not have to be run as a Windows service.

Regards,
Mike

Mike
Portland, Oregon, USA
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)