PDA

View Full Version : D²OL Easy Service Installer



PS2pcGAMER
10-24-2004, 10:29 PM
I made this script to make it easy to install D2OL as a service. All credit goes to Jeff (and AMDMB before him) for figuring this out. Credit also goes to Rodzilla for trouble shooting this.


Read the readme before running the batch file.


YOU MUST HAVE D2OL INSTALLED PRIOR TO RUNNING THIS SCRIPT


To remove the service, run REMOVE.bat.


http://www.csupomona.edu/~jslewis/D2OLService.zip


If you have any questions or run into any problems, post them here.

Jeff
10-25-2004, 05:32 AM
Great addition to our growing "wealth of information" PS2! :toast:

:lol: ;)

saaya
10-25-2004, 07:13 AM
wow!

making this a sticky :)

FDM
10-25-2004, 07:15 AM
What (if any) are the advantages of running it as a service?

Rodzilla
10-25-2004, 07:39 AM
Works great too!!! Advantages... well...

@FDM
1. Auto starts with windows.
2. No System tray icons.
3. Service start at the logon screen... so you can just hit the power button and it starts.
4. Stealthy. You can run it on a rig with multiple logins and it will keep running and no one will mess with it.
5. The joy of knowing that you are Xtreme! :lol: Not to many other people have this setup as services!

Blergo
10-27-2004, 09:43 PM
Ok, i have just checked my stat's for all my nodes and none of them seem to have uploaded anything today :S checked this rig and cpu load is 2% so im guessign the service's have died on all of my rigs? urmmm.. anyone know what's up? :S has anyone else had this problem or is it just me? it was runnign fine as a service before.
cheers,
owen

Rodzilla
10-28-2004, 05:24 AM
Ok, i have just checked my stat's for all my nodes and none of them seem to have uploaded anything today :S checked this rig and cpu load is 2% so im guessign the service's have died on all of my rigs? urmmm.. anyone know what's up? :S has anyone else had this problem or is it just me? it was runnign fine as a service before.
cheers,
owen

Is the D2OL.exe and the DockWin.exe (or GridWin.exe) running in the Taskmanager? The D2OL.exe should always be running along with one of the other 2 for each client.

Next. Right click on the My Computer icon on the desktop and select Manage. Expand the services and applications tree, and click on Services. You should see your services in there. Are the started? What happens when you double click on it to bring up the properties?

Next. While you are still in the Computer Management screen look at the Event viewer towards the top of your selections. Select the System log and see if there are any errors that pertain to your D2OL Service.

Blergo
10-28-2004, 07:24 AM
it's ok, it isnt to do witht he service, i have one rig i havent installed as a service yet and it had died too. i thought they were all running as a service already. Ok. the ones that are installed as a service just died, completely, nothing in task manager atall, cpu load right down.the other one though had just stopped doing anything, the program was still running. BUT it had a little red dot on the system tray icon??
owen

Rodzilla
10-28-2004, 08:46 AM
it's ok, it isnt to do witht he service, i have one rig i havent installed as a service yet and it had died too. i thought they were all running as a service already. Ok. the ones that are installed as a service just died, completely, nothing in task manager atall, cpu load right down.the other one though had just stopped doing anything, the program was still running. BUT it had a little red dot on the system tray icon??
owen

Did you check the things in my post before yours (For the service rigs)?

On the one that isn't a service. Are you sure someone isn't stopping it? Can you restart it? (Right click on the system tray icon and select "start task engine"

Blergo
10-28-2004, 08:59 AM
yes, im sure nobody is stoping it, that rig is used only for folding, dosnt even have a mouse conected, i alt +F4'd out of it and reloaded d2ol and it is runign fine now, all the other rigs apear to be runing fine aswell after a restart :S. i did what you said and it all looks fine after a reboot, one thing i noticed is that it wasnt set to restart the service if it fails, which i set it to do now so in theory if it dies again it will restart automatically?
owen

Rodzilla
10-28-2004, 02:12 PM
yes, im sure nobody is stoping it, that rig is used only for folding, dosnt even have a mouse conected, i alt +F4'd out of it and reloaded d2ol and it is runign fine now, all the other rigs apear to be runing fine aswell after a restart :S. i did what you said and it all looks fine after a reboot, one thing i noticed is that it wasnt set to restart the service if it fails, which i set it to do now so in theory if it dies again it will restart automatically?
owen

Awesome! If you set it to restart it should restart... but were yours even stopped?

Blergo
10-28-2004, 03:00 PM
yes, the services had stoped. no idea why but i am thinking mabey when the servers were playing up the other day or because i got disconected from the internet?
owen

Rodzilla
10-28-2004, 08:04 PM
yes, the services had stoped. no idea why but i am thinking mabey when the servers were playing up the other day or because i got disconected from the internet?
owen

What does the windows error log say????

Blergo
10-28-2004, 09:47 PM
nothing that i can see? :S it definatley seems strange that all the services died and the one that wasnt running as a service stoped folding and had a red dot on the system tray icon though :S nobody has been tampering with the rig's, as i said. 2 of them arent used for anything but foldign and dont even have monitors conected normally, i only noticed there was something wrong because i went and checked up on my nodes on the stats page..lol.. ah well, hopefully it will work ok now, if it happens again i will start to panic though.
owen

PS2pcGAMER
10-30-2004, 04:00 PM
I just checked one of my rigs at home that is setup as a service.

The service was started but no actual D2OL processes were running. Restarting the service seems to have worked, but I don't know how long that will last. This rig was setup using Jeff's method (and Rodzilla's idea to put the two service files in the Windows directory). Any ideas?

Rodzilla
10-30-2004, 05:40 PM
I just checked one of my rigs at home that is setup as a service.

The service was started but no actual D2OL processes were running. Restarting the service seems to have worked, but I don't know how long that will last. This rig was setup using Jeff's method (and Rodzilla's idea to put the two service files in the Windows directory). Any ideas?

I bet it errored out... When it's setup as a service you won't get an error message that pops up. Check the error log in the administrative tools and let us know.

PS2pcGAMER
10-30-2004, 09:15 PM
I bet it errored out... When it's setup as a service you won't get an error message that pops up. Check the error log in the administrative tools and let us know.

I checked the error and it said invalid path or something similar. That is weird since I was able to first start and then restart today without making any changes. We'll see if I have any more problems with it.

Rodzilla
10-30-2004, 09:17 PM
I checked the error and it said invalid path or something similar. That is weird since I was able to first start and then restart today without making any changes.


If you double click the error it will give you more info... there is also a button to copy the info in that screen... Could you paste it for me?

I'm making installers and I want to know if there will be a problem before I post them... :(

PS2pcGAMER
10-30-2004, 11:13 PM
If you double click the error it will give you more info... there is also a button to copy the info in that screen... Could you paste it for me?

I'm making installers and I want to know if there will be a problem before I post them... :(



The D2OL service failed to start due to the following error:
The system cannot find the path specified.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

I got the error maybe a half dozen times. I'll reboot when I get a chance to make sure everything is A-OK at startup.

EDIT: The rig has ran fine for almost a day. I rebooted and everything started up fine, so I guess everything is ok.

ctgilles
11-02-2004, 11:41 AM
link = busted :(
that sucks

PS2pcGAMER
11-02-2004, 11:48 AM
link = busted :(
that sucks

My entire server is down...

No idea why.

Rodzilla
11-02-2004, 04:33 PM
link = busted :(
that sucks

You can use the Easy installers...
http://www.adventurevision.com/ftp/Rodzilla/XSsoft.htm

I think I have PS2's service script somewhere... I'll upload it and post a link if I find it. :up:

PS2pcGAMER
11-02-2004, 04:35 PM
I still have it, I'll upload it on to another server.

Edit:

Here:
http://www.csupomona.edu/~jslewis/D2OLService.zip

Jeff
11-02-2004, 05:39 PM
What link was busted? :confused:

PS2pcGAMER
11-02-2004, 05:41 PM
What link was busted? :confused:

There was a link in the first post that was directed to my old web host.

Jeff
11-02-2004, 05:52 PM
Ahh... ok. Thanks.

PS2pcGAMER
11-11-2004, 03:46 PM
Judging by my output, the service died again. Any idea of what is wrong with it? I will most likely be able to check on it again this weekend, but I don't know what is up.

If it keeps dying, I might as well put it on another DC project so I am not wasting so many idle cpu cycles.

Jeff
11-11-2004, 04:21 PM
You are the second person to post about this tonight... I haven't run into that because I'm not running it as a service here. The only thing I could think of off the top of my head is to create a batch file that "net stop D2OL" and then "net start D2OL" every so often... like maybe every 6hrs. I would think that would kick start any failed D2OL service and using 6hrs as an interval should keep you inline with what the D2OL folks have used all along.

PS2pcGAMER
11-11-2004, 05:48 PM
You are the second person to post about this tonight... I haven't run into that because I'm not running it as a service here. The only thing I could think of off the top of my head is to create a batch file that "net stop D2OL" and then "net start D2OL" every so often... like maybe every 6hrs. I would think that would kick start any failed D2OL service and using 6hrs as an interval should keep you inline with what the D2OL folks have used all along.

That is a great idea. Thanks Jeff :toast:

I'll set that up this weekend.

Blergo
12-29-2004, 06:01 AM
i fixed mine. someone on here sugested aline to add to the config script thing. aparently itis to do with ppl loging on and off the pc's, when someone log's of d2ol looses java or something and cant switch between dockwin and gridwin? soemthing like that. cant remember what the line was now but i will post the contents of the file on my pc and someone can hopefully figure it out (then mabey i can add it to my other rigs aswell)
owen

Blergo
12-29-2004, 06:05 AM
# LaunchAnywhere (tm) Executable Properties File - Zero G Software, Inc.

# LAX.APPLICATION.NAME
# --------------------
# the default name of this executable -- do not edit

lax.application.name=D2OL.exe


# LAX.CLASS.PATH
# --------------
# the Java classpath necessary to run this application
# Can be separated by colons (Mac OS/Unix) or semicolons (Windows)

lax.class.path=../D2OL/lib/jbossall-client.jar;../D2OL/lib/sengent-common-slim.jar;../D2OL/lib/jmol/jmol.jar;../D2OL/lib/sengent-jadvanced.jar;../D2OL/lib/jmol/cml.jar;../D2OL/lib/oro.jar;../D2OL/lib/jdom.jar;../D2OL/lib/nodelog4j.jar;../D2OL/lib/d2ol-node.jar;../D2OL/lib/NetComponents.jar;../D2OL/lib/jmol/vecmath1.1-1.12.jar;../D2OL/lib/jbcl_slim.jar;../D2OL/lib/d2ol-common.jar;lax.jar


# LAX.COMMAND.LINE.ARGS
# ---------------------
# what will be passed to the main method -- be sure to quote arguments with spaces in them

lax.command.line.args=$CMD_LINE_ARGUMENTS$


# LAX.DIR
# -------
# path to directory holding LaunchAnywhere's native launcher

lax.dir=C:\\Program Files\\SengentD2OL\\D2OL\\


# LAX.MAIN.CLASS
# --------------
# the class that contains the main method for the application

lax.main.class=com.sengent.d2ol.node.agent.Node


# LAX.MAIN.METHOD
# ---------------
# the method in the main class that will be invoked

lax.main.method=main


# LAX.NL.CURRENT.VM
# -----------------
# the VM to use for the next launch

lax.nl.current.vm=..\\jre\\bin\\java.exe


# LAX.NL.JAVA.LAUNCHER.MAIN.CLASS
# -------------------------------
# main class of LaunchAnywhere's java launcher -- do not adjust

lax.nl.java.launcher.main.class=com.zerog.lax.LAX


# LAX.NL.JAVA.LAUNCHER.MAIN.METHOD
# --------------------------------
# main method of LaunchAnywhere's java launcher -- do not adjust

lax.nl.java.launcher.main.method=main


# LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.MAX
# -------------------------------------
# max heap size

lax.nl.java.option.java.heap.size.max=134217728


# LAX.NL.VALID.VM.LIST
# --------------------
# a string containing one or more of [ ALL JDK JRE J1 J2 JRE_J1 JDK_J1 JRE_J2 JDK_J2 MSJ MRJ ]
# delimited by spaces or commas. If the native launcher cannot find the current vm,
# it will search for ones in this list

lax.nl.valid.vm.list=J2


# LAX.NL.WIN32.MICROSOFTVM.MIN.VERSION
# ------------------------------------
# The minimum version of Microsoft's VM this application will run against

lax.nl.win32.microsoftvm.min.version=2750


# LAX.ROOT.INSTALL.DIR
# --------------------
# path to the installdir magic folder

lax.root.install.dir=C:\\Program Files\\SengentD2OL


# LAX.STDERR.REDIRECT
# -------------------
# leave blank for no input, "console" to read from the console window,
# and any path to a file to read from that file

lax.stderr.redirect=


# LAX.STDIN.REDIRECT
# ------------------
# leave blank for no input, "console" to read from the console window,
# and any path to a file to read from that file

lax.stdin.redirect=


# LAX.STDOUT.REDIRECT
# -------------------
# leave blank for no input, "console" to read from the console window,
# and any path to a file to read from that file

lax.stdout.redirect=


# LAX.USER.DIR
# ------------
# left blank, this property will cause the native launcher to not
# alter the platform default behavior for setting the user dir.
# To override this you may set this property to a relative or absolute path.
# Relative paths are relative to the launcher.

lax.user.dir=.


# LAX.VERSION
# -----------
# version of LaunchAnywhere that created this properties file

lax.version=5.0
lax.nl.java.option.additional=-Xrs




i think it is the last line that i added? or mabey im in the wrong file completely.. lol.. i honestly cant remember, anyway it fixed the problem for me :)

Jeff
12-29-2004, 06:09 AM
I think PCZ or Bok from Free-DC was the one to come up with that fix... but for the life of me I can't find the post... :confused:

Blergo
12-29-2004, 06:33 AM
yeh, i had a look aswell, cant find a few of the threads i started in this forum, mabey they had a clear out or something?
owen.

shmaa
02-25-2005, 06:20 AM
any update on this? I'm having the same problem trying to run it as a service... it dies after about 5 mins.

Rodzilla
02-25-2005, 08:19 AM
Did you try the lax fix?

shmaa
02-25-2005, 08:26 AM
what do you edit that file with? I can't get anything to open it.

edit: nevermind I was looking at the wrong file... will try it tonight.. thanks :toast:

Rodzilla
02-25-2005, 08:30 AM
Open D2OL.lax in Notepad and add this line at the very bottom
lax.nl.java.option.additional=-Xrs
Then save the file

shmaa
02-28-2005, 04:41 PM
Ok... if I have this running on a machine that I only put on the internet once a day to send results and receive new cand's, will it do this automatically when I plug my LAN cable giving it an internet connection?

Rodzilla
03-01-2005, 05:10 AM
Nope... you need to stop the XS_D2OL services in the services manager and then stop the Dockwin.exe process in the task manager.

Then when you go to restart the service it will auto upload. :D

krille
03-26-2005, 04:10 AM
I run into the same problem as well. I have D2OL as a service, and it crunches fine all day (I believe), then I leave the computer for the night (at 100% cpu usage), when I come back in the morning the D2OL processes are gone and cpu usage = 0%! (The Service is still running though, although no process. No error messages in the log.) Also, I have multiple user accounts, so it does go into the Welcome Screen after a while (this is where it is in the morning). To start crunching again i have to restart the service (manually via the m$ services tool or by restarting the comp). Anyway, would doing this

Open D2OL.lax in Notepad and add this line at the very bottom
lax.nl.java.option.additional=-Xrs
Then save the file
fix it? And exactly what does the line do?

EDIT: I just applied did this "mod", but isn't running it as a service right now. But in a few days time I gues I'll see if it works. Did it work for any of you guys?

Rodzilla
03-27-2005, 09:18 AM
I run into the same problem as well. I have D2OL as a service, and it crunches fine all day (I believe), then I leave the computer for the night (at 100% cpu usage), when I come back in the morning the D2OL processes are gone and cpu usage = 0%! (The Service is still running though, although no process. No error messages in the log.) Also, I have multiple user accounts, so it does go into the Welcome Screen after a while (this is where it is in the morning). To start crunching again i have to restart the service (manually via the m$ services tool or by restarting the comp). Anyway, would doing this

fix it? And exactly what does the line do?

EDIT: I just applied did this "mod", but isn't running it as a service right now. But in a few days time I gues I'll see if it works. Did it work for any of you guys?

That's usually used if you have multiple people logging into and out of the same PC... that line makes D2OL ignore the logoff so it doesn’t stop. If you aren't logging off I'm not sure that it will help...

krille
07-27-2005, 03:45 AM
That's usually used if you have multiple people logging into and out of the same PC... that line makes D2OL ignore the logoff so it doesn’t stop. If you aren't logging off I'm not sure that it will help...Sorry for late response, but you are perfectly right! All my troubles got fixed after adding that line! :)

Edit: Yeah, and linky is "temporarily unavailable".
Service Temporarily Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.Just hope it won't be "temporarily" permanently.

Okda
12-28-2006, 01:56 AM
Download link is not working

can anyone help please

i just installed the client 2 times and i would like to set them as services

L0$t Pr0PhEt
12-28-2006, 02:36 AM
Download link is not working

can anyone help please

i just installed the client 2 times and i would like to set them as services

http://www.xtremesystems-dc.com/PersonalInstallers.html

:)

Okda
12-28-2006, 02:43 AM
Thanks

but i already have two nodes installed, do need to uninstall them before using the installers form ur link or what ?