I'm running a Perl script as a service which moves files from a particular source directory to the target directory in Windows server 2003 . It polls the source directory and runs in an infinite loop.

The service hangs and perl script does not move files from source to target. Will need to manually go and restart the service thru services to msc to restart the service.

Is there a way i can find out ,what happened to the perl script or the windows service.

Thanks in advance.