A design question:
I'd like to build a Windows service that executes different commands at different intervals. For simplicity's sake, let's say I want to run some batch files.
The input it gets is a list of files and the intervals at which to execute.
For example:
a.bat - 4 minutes
b.bat - 1 minute
c.bat - 1 minute
d.bat - 2 minutes
I...
I run Django on Windows Server 2k3 under Nginx using FastCGI.
Nginx is is running as Windows service and is easy to manage and autostart.
Nginx is running using WINSW tool.
I want to make the same for Django app and need to find a way to do it.
Django should be started as separate FCGI application using this command:
python manage.py...
Hi,
I'm developing a windows service in C# .net, Account: LocalSystem, System: Windows XP SP3
I want this service to check for all currently logged users if a specific application is running and if not - start this application AS corresponding user name.
I provide domain, name, password, but Start() throws Win32Exception exception "Acc...
Case 1
If I run below command i.e iperf in UL only, then i am able to capture the o/p in txt file
@output = readpipe("iperf.exe -u -c 127.0.0.1 -p 5001 -b 3600k -t 10 -i 1");
open FILE, ">Misplay_DL.txt" or die $!;
print FILE @output;
close FILE;
Case 2
When I run iperf in DL mode , as we know server will start listening in cont. mo...
I'm trying to run several similar services via ServiceBase.Run(ServiceBase[] ) but it's only running the first one. MSDN doesn't explicitly deny this; does this excerpt mean that they all must be different types? (the bold is by me, not MSDN)
Call this overload in the main() function of the service executable to load an array of as...
I have a windows service that loads multiple "handlers" written by different developers. The windows service exe has it's own app.config which I need.
I'm trying to make it so that each developer can provide their own app.config along with their handler code. However, it seems an exe can only have one app.config. However, ASP.NET seems...
During install of a windows service (using class MyServiceInstaller : Installer, and ServiceInstaller and ServiceProcessInstaller) is there a way to force the installer to re-prompt the user for their user account info if they enter it incorrectly.
When the incorrect info is given the install throws an error 1001 message saying incorrec...
I want to make a Windows service that will access my database. My database is SQL Server 2005.
Actually I am working on a website and my database is inside our server. I need to access my database every second and update the records. For that purpose I need to make a Windows service that will install into our server and perform the task...
I have created a Delphi Service which prints TQuickReports. Everything works fine if compiled and run as a Windows Application. But when converted to operate as a service trying to create a form containing a TQuickRep component throws the exception.
This service runs fine on many other boxes but not this one in particular. Here are s...
I'm writing a server running as a Windows service that by request invokes Firefox to generate a pdf snapshot of a webpage.
I know it is a bad idea to run a GUI program in service mode, but the server nature of my program restricts from running it in the user mode. Running a user-level 'proxy' also is not an option, since there might be...
I have a service monitor app that monitors the status of three other servers app - you know those kind of green, red status stuff, start, stop, etc.
The problem is that it shows the wrong state in Windows 7 even if the user is the administrator.
The start, stop buttons are disabled and the install button enabled, the status color is gr...
Hi,
I have a windows service running under "SYSTEM" account that checks if a specific application is running for each logged in user. If the application is not running, the service starts it (under corresponding user name).
I'm trying to accomplish my goal using CreateProcessAsUser(). The service does start the application under corresp...
Hi there, I'm attempting to build a Windows Service which will execute some method when a user clicks a button in a WinForms application. I'd like to be able to pass in a few strings when the user presses the GUI button which will have the service consume them and processes a specific method. What's the best way to do this?
Thanks for h...
I m able to build a windows service and install it.
I m curious how can i run this service every hour ? I want it to run every hour periodically.
I also need to know the hour range that it s running so that I can store it somewhere.
How can i do that?
Edit : This service will be installed on many machines, therefore, I dont want to c...
Hi,
I am implementing IQueryCancelAutoPlay COM interface and registering it with the Running Objects Table from a Windows Service*.
My problem is that it never gets called when I insert a mass storage device (or any device really). Here's some more information:
My code for registering with the ROT:
Text::string clsIdString = Text::to...
Let's say I have a standalone windows service running in a windows server machine. How to make sure it is highly available?
1). What are all the design level guidelines that you can propose?
2). How to make it highly available like primary/secondary, eg., the clustering solutions currently available in the market
3). How to deal with...
My question is that is this the best practice to do this. Couldn't find any good examples. I have following code in file created by VS2005:
public partial class ObjectFolder : ServiceBase
{
protected override void OnStart(string[] args)
{
ObjectFolderApp.Initialize();
ObjectFolderApp.StartM...
I want to develop windows service in Delphi that communicates with an Oracle server via ADO.
Wich guidelines should I follow?
i really knew ADO, but i dont have experience with the windows services.
Thanks in advance.
...
Hi, I have a strange application in that for development and testing I need a windows forms application so that I can monitor what it is doing. For production, the application will be started from a service and no visible UI is needed. I dont really want to re-write the app. once it is completed into a console app so I would like to leav...
The only way to install windows-service I know is using "Visual Studio 2008 Command Prompt", Is there a way to install windows-service on a machine which isn't having Visual Studio installed (assume that .Net version 2.X is installed.)
...