Questions tagged [service]

A Service is a long-running executable that performs specific functions and which is designed not to require user intervention.

A Service is a long-running executable that performs specific functions and which is designed not to require user intervention.

Services usually provide an interface to Start, Stop, Pause and Restart the executable that is running in the computer's background.

23127 questions
57
votes
6 answers

Mysql service is missing

I have installed Mysql server locally and everything was working Ok but today when I tried to get a connection to the local db, I got an error. After checking services showed that the MySql service is missing. What is the problem?
Igal
  • 4,603
  • 14
  • 41
  • 66
55
votes
1 answer

What is the difference between serializing and encoding?

What is the difference between serializing and encoding? When should I use each in a web service?
Rodniko
  • 4,926
  • 20
  • 69
  • 93
54
votes
5 answers

How to access service container in symfony2 global helper function (service)?

This question started out with me not understanding why I couldn't pass variables to a symfony2 global helper function (service), but thanks to people brighter than I, I realized my error was about trying to use the security_context from within a…
Matt Welander
  • 8,234
  • 24
  • 88
  • 138
53
votes
3 answers

How to start Service-only Android app

I am creating an application whose only component is a service which keeps on running in background (basically a proxy server) but I am not able to find a way how to start that service. Application can not have any UI or user interaction so I am not…
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
53
votes
5 answers

How to create a service in Flutter to make an app to run always in background?

I would like to make my Flutter application to run always in background. With android, we have to create a Service that runs always in background. I don't find something about Services in the Flutter documentation. Is it possible to do this kind of…
camilleB
  • 1,961
  • 4
  • 15
  • 20
53
votes
3 answers

How to use the host network, and any other user-defined network together in Docker-Compose?

I want to connect two Docker containers, defined in a Docker-Compose file to each other (app and db). And one of them (app) should also be connected to the host network. The containers should be connected to a common user-defined network (appnet or…
Simon Schürg
  • 2,134
  • 2
  • 20
  • 31
53
votes
7 answers

Android: keeping a background service alive (preventing process death)

I have a service that is defined as: public class SleepAccelerometerService extends Service implements SensorEventListener Essentially, I am making an app that monitors accelerometer activity for various reasons while the user sleeps with his or…
Jon Willis
  • 6,993
  • 4
  • 43
  • 51
53
votes
7 answers

How to automatically start your service after install?

How do you automatically start a service after running an install from a Visual Studio Setup Project? I just figured this one out and thought I would share the answer for the general good. Answer to follow. I am open to other and better ways of…
Jason Z
  • 13,122
  • 15
  • 50
  • 62
53
votes
5 answers

How to handle XML services in AngularJS?

My company has thousands of existing xml web services and is starting to adopt AngularJs for new projects. The tutorial over at http://angularjs.org/ uses json services exclusively. It looks like they make a service call in the controller, parse the…
Nick Vikeras
  • 763
  • 2
  • 6
  • 10
52
votes
5 answers

How to display a Dialog from a Service?

I have read really a lot of posts about this topic, however nothing works for me (or doesn't have the effect I wish). I have a an application, that after logging in starts a background Service (implementation of the Service class). This service…
Filip Majernik
  • 7,700
  • 13
  • 45
  • 53
52
votes
3 answers

How can I access a service outside of a controller with Symfony2?

I'm building a site that relies quite heavily on a third party API so I thought it would make sense to package up the API wrapper as a service, however I'm starting to find instances where it would be useful to have access to it outside of a…
pogo
  • 2,287
  • 2
  • 25
  • 36
52
votes
4 answers

Is there any standard alternative HTTPS port?

HTTP has some well-known alternative ports, like 8080, etc. If I need to deploy any service which is served through secure HTTP, or maybe I need to assign any port to a HTTPS service on my local machine, but I already have another HTTPS service…
Áxel Costas Pena
  • 5,886
  • 6
  • 28
  • 59
52
votes
2 answers

Using Service to run background and create notification

I want my app to start Service when the button is clicked and the Service should run in background to show a notification at a particular time of day. I have the following code to do this. But it shows errors which I don't…
user2648852
  • 711
  • 1
  • 11
  • 13
52
votes
3 answers

What the difference between a Windows service and a Windows process?

What is the difference between a Windows service and a Windows process?
M.Rezaei
  • 992
  • 3
  • 11
  • 28
51
votes
3 answers

Keep a Service running even when phone is asleep?

I have a Service in my application which is designed to run every 10 minutes. It basically checks up on our servers to see if everything is running properly and notifies the user of any problems. I created this application for internal use at our…
PaulG
  • 6,920
  • 12
  • 54
  • 98