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
5
votes
1 answer

In Angular where to subscribe in service or in component & why?

This question is very common, some prefer to use in service some in component: Angular 2 subscribe from component or service?: it says never do the manual subscription means from component! If we don't want any data then why we need to subscribe(in…
Ali Adravi
  • 21,707
  • 9
  • 87
  • 85
5
votes
1 answer

Enabling live restore on docker isn't keeping the containers alive

I read the Enable Live Restore, but when I tried it. ubuntu@ip-10-0-0-230:~$ cat /etc/docker/daemon.json { "live-restore": true } I started an nginx container in detached mode. sudo docker run -d …
Ashwani
  • 1,340
  • 1
  • 16
  • 34
5
votes
6 answers

Batch file to check if a system service is running

I would like to know how to check if a service is running using a batch file e.g. if xxxx service is running go to start stage2.bat else go to echo Service not running Any help would be appreciated Thanks
James
  • 187
  • 2
  • 2
  • 5
5
votes
1 answer

Android: Turn off screen from a service

I am trying to figure out how to turn off the screen from within a service. I have already read this but I am failing to realize how to do this from within a service. I don't really want to deal with wake locks because as soon as the screen goes…
SemperGumbee
  • 474
  • 1
  • 8
  • 19
5
votes
1 answer

Architecture in Node JS wirh Controller, Service and Repository

In order to keep clean architecture of my node.js I have controllers, services and repositories. Data flow: controller -> service -> repository -> service -> controller. In this flow (in simple user story) repository returns data to service and…
5
votes
0 answers

Foreground service pausing/sleeping after a while app is in background

I'm a beginner in app development and would appreciate any help! I have an app that connects to a BLE device and is connected to a foreground service which collects the data given by the BLE Device. The foreground service is bound to the…
gmatcat
  • 155
  • 7
5
votes
1 answer

Angular : service worker configuration

I'm trying to add pwa capabilities to a website running on angular 8. I followed a lot of tutorials, official and unofficial ones and I don't understand what I'm doing wrong. ngsw-config.json is like this : { "$schema":…
Linwe
  • 325
  • 2
  • 13
5
votes
2 answers

Topshelf - Type or namespace name Topshelf cannot be found

I am attempting to play with Topshelf to host a Console application as a Windows Service, but I am running into problems... I have referenced the Topshelf dll, along with the log4net dll from my Console application. However, when I compile - either…
grefly
  • 1,181
  • 2
  • 12
  • 28
5
votes
3 answers

Android abstract activity in manifest

For my application I am going to create a variety of abstract classes that extend the android.app.Activity and android.app.Service classes. When I subclass my abstract classes how do I add them to the android manifest? Do I need to add both the…
5
votes
2 answers

How to access remote connection requests from safari, facebook and other applications on iPhone

I noticed one application on app store recently named onavo which access internet connection usage from other applications on iPhone like safari, facebook, youtube, etc. Is there any API available for this. How they have implemented it. Curious to…
Anil Sivadas
  • 1,658
  • 3
  • 16
  • 26
5
votes
2 answers

Can't schedule refresh in PowerBI Service

I have a PowerBI report with 2 tables sourced from separate web API calls to a similar service, let's call it MyService. The service returns json. The report refreshes perfectly within PBI Desktop. The report publishes to PowerBI.com where it…
cymorg
  • 534
  • 2
  • 10
  • 27
5
votes
1 answer

Daemonization celery in production

I'm trying to run Celery as service in Ubuntu 18.04, using Django 2.1.1 and Celery 4.1.1 that is installed in env and Celery 4.1.0 installed systemwide. I'm going forward with this tutorial to run Celery as service. Here is my Django's project…
mehdi
  • 1,100
  • 1
  • 11
  • 27
5
votes
1 answer

What is the difference between service and service provider interface?

I understand that a service is an interface defining what functions are to be implemented. I also understand that a service provider implements these functions. However, I can't seem to understand what a service provider interface is. Would I be…
Mahamed Ducale
  • 119
  • 1
  • 8
5
votes
4 answers

Android's in-app billing and bindService

I am trying to implement in-app billing in my application based on Sample Application. But bindService always returns false. Here is what I have. AndroidManifest.xml: Preferences.java (need…
LA_
  • 19,823
  • 58
  • 172
  • 308
5
votes
3 answers

ColdFusion 9 calling .NET Web Service- Web service operation with parameters cannot be found. HELP!

Error: Web service operation .... with parameters {part={...},storeId={...},contractId={...}} cannot be found. I created a .NET web service that talks to a ColdFusion page. What happens is when the user types a part number into the part number…
Mike Marks
  • 10,017
  • 17
  • 69
  • 128
1 2 3
99
100