On 8/17/2010 2:23 PM, René Berber wrote:
Jerry M wrote:
Ted,
I used SC.exe and it installed spamd successfully as a service (at least
that's what sc told me). But when I try to start it, I get "Error 1053
The service did not respond to the start or control request in a timely
fashion". The microsoft help on that message is completely useless.
smapd is NOT a Windows service, you can't install it just like that.
Rene, the instsrv.exe and srvany.exe programs were written by
Microsoft to allow non-service, command-line daemon programs to
be run as services. The sc.exe program replaced instsrv.exe
for newer Windows versions.
srvany.exe is a wrapper that responds to service commands and
runs the command-line program just like the user runs it at the
command line. Microsoft distributed it through the ResKit because
it is a limited program, for example it does not handle GUI output from
the program, etc. and Microsoft didn't want to support it with 100% of
the programs out there. Generally the stuff MS distributes through
the ResKit are programs that work "most of the time" and perform
some wildly useful task in a specific circumstance.
So yes, you CAN install programs as services "just like that" and
a lot of people have done it with many different programs that are
not services.
I believe with 64-bit windows one other caveat with srvany is if
the thing you are trying to start with srvany.exe is in the real 64 bit
windows\system32 folder, you need to type that in as windows\Sysnative
(Vista only) or to move it somewhere else (XP/2003).
I'm NOT guaranteeing spamd is going to run on all Windows systems
with srvany. I am just answering the original posters request on
the "by the book" way of running a program as a service.
If sc and srvany.exe don't work then you can use
http://www.coretechnologies.com/products/AlwaysUp/srvany.html
or
http://iain.cx/src/nssm/
Both are commercial and cost money but handle a much larger variety
of software than sc & srvany
Have you seen Daniel Lemke's announcement on this list?
http://article.gmane.org/gmane.mail.spam.spamassassin.general/128839
Perhaps the HOWTO referred on that article (I haven't read it) is of
some help.
The OP may be running that version of spamd already, he didn't say.
Ted