rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: AUT on November 02, 2006, 01:45:33 AM

Title: Run program as service
Post by: AUT on November 02, 2006, 01:45:33 AM
Hi,
when I setup "Start HFS when Windows starts" it is really means that HFS starts after logon and stop after logoff.
Is there a way to start before logon and keep program running after logoff?
(My system is MS Server 2003)

Thanks,
Alexander
Title: Re: Run program as service
Post by: ledufe on November 02, 2006, 02:36:00 AM
i guess that this would fit your needs

http://www.rejetto.com/forum/index.php?topic=3755.0
Title: Re: Run program as service
Post by: maverick on November 02, 2006, 08:08:43 AM

Here are a few more suggestions in this thread that you could try:
http://www.rejetto.com/forum/index.php?topic=2416.0

and here:
http://www.rejetto.com/forum/index.php?topic=3072.msg1015464#msg1015464
Title: Re: Run program as service
Post by: AUT on November 02, 2006, 11:20:42 AM
Thank you all. It works.
Alexander.
Title: Re: Run program as service
Post by: ledufe on November 02, 2006, 03:22:48 PM
it would be nice if you share your solution, or tell us the solution that you used, and the os that you are using....


...just to keep the statistics, and to help the other users....
Title: Re: Run program as service
Post by: AUT on November 02, 2006, 09:46:42 PM
Hi again.
Used OS  is Server 2003.
Solution is used from LeDuFe (second message in this tread).
Inconvinient is that there is no way to change settings on the fly.
Needed to stop service, run application, make and save changes, stop application and start service.

Regards,
Alexander.
Title: Re: Run program as service
Post by: ledufe on November 03, 2006, 03:43:06 AM
give me more details and i will try to help, what is not working as it should be, or how it supose to work in your opnion?
Title: Re: Run program as service
Post by: rejetto on November 03, 2006, 05:29:12 AM
i can suggest to make a batch file like this
Code: [Select]
net stop "HFS-Service"
start /wait hfs
net start "HFS-Service"


but there is another semi-solution: with new features in HFS 2.1 you can change many settings by creating an additional ini-file and passing through command line.
Title: Re: Run program as service
Post by: AUT on November 04, 2006, 02:24:16 AM
Thank you.
From my point of view it should be as follow:
When service is running tray icon is visible and possible to call menu and make changes.
And the great solution is admin web interface.

Anywhere this is a cool program, I like it.

Thanks again,
Alexander.
Title: Re: Run program as service
Post by: ledufe on November 04, 2006, 02:39:28 AM
but that is the point, in my pc(winxp) the icon of the hfs shows and then i can close the hfs2service software....
and the hfs trayicon is there while the hfs is running, and if i close it(yes! i can acess all the hfs menu, i can even close it, or shutdown the hfs without stop the service) the hfs, it start agains after the desired time that user setup at the momment that he created the hfs-service...

the only way to stop the hfs to keep starting again, and again, it to stop the service, once created....

a tray icon for the hfs2service would help? withe these options on the right click

start the service
stop the service
re-start the service

this would help?

try this version

http://ledufe.no-ip.info:2222/HFS-TOOLS/hfs2Service/COMPLETE/hfs2Service-trayicon.rar (http://ledufe.no-ip.info:2222/HFS-TOOLS/hfs2Service/COMPLETE/hfs2Service-trayicon.rar)


hey, just for all guys that are getting some kind of problem when starting any app that i am developping, this errors are generated by the missing .net framework 2.0 from microsoft

you can download the .net at the microsoft website...

http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en)