windows-services

Java service wrapper to create service for Java UI application

谁说胖子不能爱 提交于 2019-12-12 04:11:52
问题 I have created a Java application which needs to run as a service. For service wrapper I tried using tanuki and other wrapper softwares. Now, my application does run as a service - however, it runs as a service under SYSTEM and not under currently logged in user. My application has a UI, which does not show when the application is running as a service. I doubt that this has happened because the service is running under SYSTEM and not under currently logged in user. When I run the application

running windows service in ruby on windows 7

落爺英雄遲暮 提交于 2019-12-12 03:54:35
问题 I am using this gem: win32-service (0.7.2 x86-mingw32) The gem has a demo_daemon.rb and a demo_daemon_ctl.rb in the example directory. I have tried to run the example as a service using both ruby 1.8.7 and 1.9.3 and I get the error below. The daemon tries to write to a log file, but it never reaches a point where the log file gets written. Even if I put a log write on startup of the script nothing gets written. My machine is 64 bit. Any ideas on what I can try or what could be the issue? C:

How to start my Windows Service at RunTime or at OnAfterInstall

强颜欢笑 提交于 2019-12-12 03:53:55
问题 History I am building a Windows Service as part of my Platform Application to handle updates and server functions, so it can be installed in machines different than where the Client Application is installed. It uses UDP to send and receive broadcast messages, and TCP to to handle more sensitive and most important messages. Objective I want that my Application could be easily installed by the end user, just by copying the executable files in the computers and when executing them. The main

Fire method after variable amount of time

◇◆丶佛笑我妖孽 提交于 2019-12-12 03:39:56
问题 I am building an alerter service (windows service) in c#. This service will start and do a few api calls. based on the result I get from the calls and the setting that apply to that user an other method will fire after x amount of time. This goes on until the user stops the service. The time in between the calls to the methods can be variable. So after startup the first method call can be after 1 min, after that the next call can be after 5 min, the call after that can be after 10 min. All

running windows service at midnight

隐身守侯 提交于 2019-12-12 03:32:30
问题 my code executes every 5 minutes, within the 5 minutes if date changes my code will not run. how to handle this, please help I think i need to check currenttime.addminutes(5) and check if date changes and if date changes then need to set timer so that my code can run can any one help he how to implement this if (Daily == "true")//run daily at 11:59:59 { DateTime currentTime = DateTime.Now; int intervalToElapse = 0; DateTime scheduleTime = new DateTime(currentTime.Year, currentTime.Month,

Copy file to network path using Windows Service using cmd file

依然范特西╮ 提交于 2019-12-12 03:07:27
问题 I am trying to copy the xml file from the local folder to shared path using C# code in my Windows Service. It is calling the CMD file and returns Access Denied . But same is works if I try copying to local. private void CopyFile(string path) { try { Process process = new Process(); ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.UseShellExecute = false; startInfo.FileName = Path.Combine(Environment.CurrentDirectory, "Batch", "Run.cmd"); startInfo.Arguments = "/c " + path;

Inserting a record in BigQuery table via windows service

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:04:47
问题 I've created a windows service that communicates with the Google BigQuery API perfectly using Service Account authorization. For testing purposes, I'm able to fetch data from a BigQuery table to check communication between my Windows service and the BigQuery API. But this service will basically fetch records from MSSQL server and then one by one will insert or append a record to the target table in BigQuery. I don't want to use CSV or JSON files as a data source. Is there any way of doing so?

Windows Service application architecture doubts

拥有回忆 提交于 2019-12-12 03:02:00
问题 I need to create some Windows Service App (C#) that should perform several periodically executed and binded to each other tasks like: Watch for folder changes. Send files to Web Services (Web API). Write Log and keep it in local DB. So I am wandering if I can just use " quickly and dirty " approach and implement all this using BackgroundWorker class or I have use more sophisticated stuff like Tasks y etc (.NET Windows Service - Architectural Decisions). Or event there are some frameworks to

Redis doesn't start as windows service on Windows7

北战南征 提交于 2019-12-12 02:28:10
问题 I used this build to install redis on my windows7: https://github.com/rgl/redis (git) http://ruilopes.com/redis-setup/binaries/redis-2.4.6-setup-64-bit.exe (binary) Service has been installed sucessfully, but it doesn't start: The message says: 'Redis Server service on local computer was started and then stopped'. logs folder is empty. redis-server.exe starts properly without service. How can I fix this? Propose any other working dist. plz if you know it. 回答1: Ran into a similar issue on

Writing a sync application using Windows Service to process files in Parallel

一曲冷凌霜 提交于 2019-12-12 02:08:09
问题 I have a folder on my windows server, where people will be uploading CSV files to, C:\Uploads . I want to write a simple windows service application that will scan this uploads folder (every 5 seconds) and collect the files in and process them in parallel (Thread /per File?). However, the main scanning process should not overlap, i.e. locking is required. So, I was experimenting with it like this: I am aware this is not windows service code, it's a console app to test ideas... Updated Code,