PDA

View Full Version : Running Perl as a service?



Matthew Hodgskiss
2005-03-25, 10:23
I currently have the version 6 of perl slimserver
installed on my XP machine. I have this setup as it
allows me to run Alien BBC (as described by Patrick
Dixon).

I find the performance of the perl version to be
superior to the windows version and I run it through
active perl.

I would like to know if and how I would be able to
make this perl file:

1) Load up on start-up
2) Restart after crashing

in a similar fashion to the slimserver windows
service.

I currently use task manager to start it by running,
C:\Program Files\SlimServer\server\slimserver.pl

Thanks

Matthew



__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

Neil Sleightholm
2005-03-25, 10:41
I'll leave others to question why the performance is better but you can
partly achieve this with a scheduled task in that you can mark them to
run when the machine starts. This doesn't give you the restart
aftercrash though. You could create a batch file that you run that
starts slimserver.pl and then loops back to the start if slimserver
stops e.g.

:Start
perl slimserver.pl
goto :Start

Alternatively, Microsoft used to have a resource tool call srvany that
could run any program as service but I'm not sure where you would get
it from.

Hope this helps

Neil


Matthew Hodgskiss wrote:

> I currently have the version 6 of perl slimserver
> installed on my XP machine. I have this setup as it
> allows me to run Alien BBC (as described by Patrick
> Dixon).
>
> I find the performance of the perl version to be
> superior to the windows version and I run it through
> active perl.
>
> I would like to know if and how I would be able to
> make this perl file:
>
> 1) Load up on start-up
> 2) Restart after crashing
>
> in a similar fashion to the slimserver windows
> service.
>
> I currently use task manager to start it by running,
> C:\Program Files\SlimServer\server\slimserver.pl
>
> Thanks
>
> Matthew
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/

Steve Bernard, Jr
2005-03-25, 11:00
On Fri, 25 Mar 2005 17:41:43 +0000 (UTC), Neil Sleightholm wrote:

>
> Alternatively, Microsoft used to have a resource tool call srvany that
> could run any program as service but I'm not sure where you would get
> it from.

This is in the Windows Server 2003 Resource Kit Tools:

http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

I used to use FireDaemon to run the perl Slimserver when I ran the
server on Windows. That isn't free, however, but it's at
http://www.firedaemon.com/

-Steve