• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

I need help with running programs (SETI) as services under WinNT 4.0 SP6!!

Sukhoi

Elite Member
I might be able to asslaminate a few computers, but I'll have to run SETI as a service because hard drive access is really restricted to normal users on the systems. I need to talk to my teacher about running it as a service, but I think she'll be fine with it.

So, how do I run both SETILog and the CLI as a service? Office Boy said he can make me a batch file to install the CLI as a service, but he's never used SETILog.

I'm not sure how I would install SETILog as a service since it automatically tries to start the CLI when it's run.

Any ideas? If I can't get SETILog to run as a service that's ok, but I'd like to if possible.
 
Hmm, just found something interesting on the SETILog page. It says the following:

/DoNotRunSETI Do not invoke the command line version of SETI@home. Just log the work unit and exit.

Does this mean if I put in the /DoNotRunSETI command when starting the SETILog service, SETILog wouldn't try to start up the CLI and mess everything up? This might be exactly what I need.

 
Copy and paste this into a text file, put in the correct path to the SETILog.lnk(shortcut), rename it to xxx.inf, then right click and install it. This will add the registry key to launch as a service.

[version]
signature="$CHICAGO$"
SetupClass=BASE

[DefaultInstall]
AddReg = test.Add.Reg

[test.Add.Reg]
HKLM,Software\Microsoft\Windows\CurrentVersion\RunServices,"SETILog",,"C:\..PATH..\SETILog.lnk"

 
Thanks Hellburner! 😀

I assume I can then put all the switches I need in the shortcut to the SETILog .exe file?

I realize what you posted will run SETILog as a service, but will SETILog then run the CLI as a service?

One last thing..if I wanted to install two programs as services (maybe SETILog and the CLI separately), would I just make two .ini files with different names, and change the paths in each of the .ini files to reflect the program I want it to install as a service? Would anything else need to be changed in the .ini files? Thanks! 🙂
 
Since I'm using firedaemon, for me to run setilog as service is this:
"%mxbin%\firedaemon" -i setilogque_1 c:\sethomedir\quedir_1 c:\sethomedir\setilog.exe "-cpu 0 -proxy xxx:5512 /sc:\sethomedir\setihome.exe"

I will guess if you're using Hellburner's method, edit the setilog.lnk-shortcut to start in c:\sethomedir\quedir_1 and add the "-cpu 0 ... /sc:\sethomedir\setihome.exe" part to the Target-line.

I think you must always use the /s-switch then running setilog as service to point to the excact location of the seti@home-exe. The other switches is if you needs them to run seti@home.

The only drawback to this method is that you can't stop seti@home. If you stops the service it's only setilog you're stopping. To stop seti@home you must kill the process in task-manager after you've stopped setilog.

You can't run setilog with the /donotrunseti-switch. Oh, you can run it, but that it will do is start setilog, log most likely no result and exit...
 
All the SETILog command switches go in the shortcut, I think SETILog launches the S@H client as a child process. If SETILog is running the CLI will be running.

When you kill the SETILog process it kills the S@H client.
 
Well, then I stops the firedaemon-service running setilog, the corresponding seti@home-process isn't stopped. It will eventually be stopped, since setilog runs seti@home with -stop_after_process.
It's the same behaviour if you starts setilog and afterwards kill the process in task-manager. The seti@home-process keeps running.
 
I thought of one last thing. If I install SETILog as a service using Hellburner's way, how to I uninstall the service if I ever need to get rid of the program?

Deleting the folders is easy, but I dunno how to get rid of the service listing.
 
Sukhoi - the service settings are in the registry. You could do a registry search to find what keys were added and then delete those entries. That will completely remove the service out of the listing.
 
I can't find the thread but didn't Hellburner have one going about working on an autoinstall as a service? Someone else jumped in and offered to help out. A simple install and uninstall. It sounded pretty slick. I was following it and now I can't find it. I'll poke around a bit more and if I find it I'll edit this and post the link. If someone else finds it please do the same.

Edit: Found it - LINKED

Rob
 
Hmm, I tried to install SETI as a service today, and it's not working. 🙁

All of the following was done while logged into WinNT 4.0 SP6 as administrator:

First I made a C:\Start folder. Into the folder I copped seti.exe (CLI), SETILog.exe, SETIWatch.exe, user_info.sah, and seti.inf (service install file).

I made a shortcut to SETILog.exe, and left it in the same folder. I then added the proxy and /Sseti.exe switches to the SETILog.lnk file. I ran the shortcut to test it out, and it worked fine.

Then I right-clicked on seti.inf, and clicked install. The mouse cursor blinked a few times, but other than that nothing happened.

I then restarted the computer assuming SETI was installed as a service. I logged in as administrator again, but SETI did not start. I opened up the process listing from task manager, and there was no SETI on the list. The System Idle Process was still taking 99% of the CPU time. I then logged out and logged in as the normal user, and the same thing happened.

While logged in as the normal user, I opened up regedit. I looked in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices. In that folder there is a registry key called SETILog with a "value" of C:\Start\SETILog.lnk. So, it seems like the seti.inf file installed fine. But why isn't SETI starting as a service? :Q🙁
 
:frown: That dosn't install it as a service.
You need INSTSRV.EXE, and SRVANY.EXE for that, or a program that can do it, like FireDaemon.
 
office boy: Ahhh, why can't this stuff be easy! 😉 Can you give us a link where to get those files and maybe a FAQ on how to install/use them? I'd like to have a simple install/uninstall package that I could get running as a service. We're moving to a Win2000 only network in the near future and having a quick method would make installing the client a lot easier.

Thanks!

Rob
 
After I thought about it, it'd be best if Office Boy sent you the stuff you need since I'm basically using his install files. 🙂
 
Office Boy, I have another question.

How does your seti.cmd file run? On my Win98SE system a .cmd file isn't a recognized type. Is it only recognized under Win NT/2000 or something? Or, do I need to rename it to seti.bat before I can run it? Thanks.

Just thought of something else...I know I asked you something similar to this on ICQ, but this question is a little different. 🙂

In the seti.cmd file you have "C:\start\instsrv.exe" Seti "C:\start\srvany.exe"

Where does the "Seti" in the middle of that line actually refer to? Is it to the SETI folder in the registry? Or is it to seti.exe?

Here's what I'm going to try using in the registry file. Should it work?



<< REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\seti\parameters]
&quot;Application&quot;=&quot;c:\\start\\setilog.lnk&quot;
&quot;AppDirectory&quot;=&quot;c:\\start&quot;
>>



I just want to make sure that the &quot;Seti&quot; in the seti.cmd file didn't actually refer to the &quot;Application&quot; and &quot;AppDirectory&quot; lines in the .reg file that I changed. I hope that made sense. 😱
 
Ok, let me update my problems. 🙂

First off, I now know that .cmd files are NT/2000 specific, so forget my question on that. However, the service still isn't working correctly.

Today I made an install disk, and the .zip file of it can be found here. As you can see from the install files, I'm trying to have the service run a shortcut that points to SETILog. SETILog would then start the CLI. Is it a bad idea to try to have a shortcut run as a service?

Today I put all those files on a floppy, and went to try installing SETI as a service on the computer again. It didn't work. 🙁 The install off the floppy using the install.cmd file went just fine. The registry key seemed to be installed correctly, and the files were coppied to the folder on the hard drive fine. I then rebooted the computer (not just logged off), assuming the service would be running after the restart. But it wasn't. 🙁 The service simply isn't running.

I logged in as the normal user, and went to the services part of the control panel. I clicked on the Seti listing, and clicked start. I got &quot;Error 0005: Access is denied&quot;. The hard drive on this machine seems to be locked down like a safe, so is it possible that the shortcut that I'm running as a service isn't being allowed to access SETILog to start it? I then logged on as administrator and did the same thing. I got &quot;Error 2140: Windows NT internal error&quot;. :Q What's going on here? Can't shortcuts be run as services? BTW, I did not reboot the computer before I logged in as administrator that time...I just logged off as the normal user, and logged on as admin

Any ideas guys?

I'm making up another install disk tonight, and tomorrow I'm going to try installing it with the service pointing to SETILog itself, rather than a shortcut to SETILog. I'll then put all the switches in the registry entry. Should this help? If that doesn't work, I'm going to try installing the service with it pointing directly to the CLI.

Thanks! 😀
 
I was talking to Office Boy on ICQ, and he said that's it's a bad idea to try to run a shortcut as a service. 🙂 So, I'll post an update tomorrow after I try to install SETILog as a service directly, rather than trying to go through a shortcut.
 
A working seti.reg for running setilog (changed from office boy's version)
Note, instead of &quot;c:\program files\seti&quot; I'm using &quot;c:\seti&quot; as directory, since I got problems with spaces starting seti.exe from setilog. Install.cmd is changed to reflect this also.

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\seti\parameters]
&quot;Application&quot;=&quot;c:\\seti\\setilog.exe&quot;
&quot;AppDirectory&quot;=&quot;c:\\seti\\&quot;
&quot;AppParameters&quot;=&quot;-proxy xxx:5512 -cpu 0 /sc:\\seti\\seti.exe&quot;


Note 1; You must use the /s-switch. The other parameters is as needed.
Note 2; As stated before, stopping the service stops only setilog, not seti.exe
Note 3; Since default running of service is as system, you can't kill seti.exe in task manager before you changes the service to another user in the services applet.

As for &quot;In the seti.cmd file you have &quot;C:\start\instsrv.exe&quot; Seti &quot;C:\start\srvany.exe&quot;&quot;
Seti is the name of the service. It's this name that is listed in Services and this name you use to start and stop it.
If you've got more than one cpu on the same machine, an edited seti.reg-file can be this:

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\seti_cpu0\parameters]
&quot;Application&quot;=&quot;c:\\seti\\setilog.exe&quot;
&quot;AppDirectory&quot;=&quot;c:\\seti\\cpu0\\&quot;
&quot;AppParameters&quot;=&quot;-proxy xxx:5512 -cpu 0 /sc:\\seti\\seti.exe&quot;

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\seti_cpu1\parameters]
&quot;Application&quot;=&quot;c:\\seti\\setilog.exe&quot;
&quot;AppDirectory&quot;=&quot;c:\\seti\\cpu1\\&quot;
&quot;AppParameters&quot;=&quot;-proxy xxx:5512 -cpu 1 /sc:\\seti\\seti.exe&quot;

(if more than two cpu's, continue...)

Edited install.cmd:
@echo off

::Make SETI program dir
mkdir &quot;C:\seti&quot;
mkdir &quot;c:\seti\cpu0&quot;
mkdir &quot;c:\seti\cpu1&quot;
copy &quot;seti.reg&quot; &quot;c:\seti&quot;
regedit /s &quot;c:\seti\seti.reg&quot;

::Copy SETI client files (\...\ = path)
copy &quot;setilog.exe&quot; &quot;c:\seti\&quot;
copy &quot;seti.exe&quot; &quot;c:\seti\&quot;
copy &quot;user_info.sah&quot; &quot;c:\seti\cpu0&quot;
copy &quot;user_info.sah&quot; &quot;c:\seti\cpu1&quot;
copy &quot;instsrv.exe&quot; &quot;C:\seti\&quot;
copy &quot;srvany.exe&quot; &quot;C:\seti\&quot;
copy &quot;netsvc.exe&quot; &quot;C:\seti\&quot;
copy &quot;SetiSpy.exe&quot; &quot;C:\seti\&quot;
echo .
echo Wait till files copied
echo .
pause
::Install SETI executable as NT Service
&quot;C:\seti\instsrv.exe&quot; Seti_cpu0 &quot;C:\seti\srvany.exe&quot;
&quot;C:\seti\instsrv.exe&quot; Seti_cpu1 &quot;C:\seti\srvany.exe&quot;
pause
net start seti_cpu0
net start seti_cpu1


goto end
:error
echo.
echo Format is: install.CMD
echo
echo.
goto end

:end



 
Back
Top