Questions tagged [servicemanager]

The service control manager (SCM) is started at system boot. It is a remote procedure call (RPC) server, so that service configuration and service control programs can manipulate services on remote machines.

The service functions provide an interface for the following tasks performed by the SCM:

  • Maintaining the database of installed services.
  • Starting services and driver services either upon system startup or upon demand.
  • Enumerating installed services and driver services.
  • Maintaining status information for running services and driver services.
  • Transmitting control requests to running services.
  • Locking and unlocking the service database.
75 questions
1
vote
1 answer

Module not found error in Python script running as a Windows Service

I have a Django "learning project" which hosts a very simple web site, with waitress providing the WSGI server. The project performs as expected when I execute the calling script from the command line. From here I'm trying to set up the scaffolding…
JDM
  • 1,709
  • 3
  • 25
  • 48
1
vote
0 answers

Python service is not starting in windows machine error 1053

I have created Flask Application as windows service by using Pyinstaller. I installed it in my local machine(Windows 10). Its working fine. The same exe I tried to install in Windows server, it is installed but not running and throwing error, Error…
Raj De Inno
  • 1,092
  • 2
  • 14
  • 33
1
vote
0 answers

AOSP : How to add service in service manager after removal of android:sharedUserId="android.uid.system" from manifest

Unable to start service . Line is added in onCreate of service.
ServiceManager.addService(ACTION_REMOTE_SERVICE, (IBinder) new xxxRemoteservice(this));
Changes we removed android:sharedUserId="android.uid.system" from manifest . But…
1
vote
1 answer

Using configparser in Python service is not starting the service

I have used configparser to read a configuration file in python. When the script is converted to Windows Service it is giving error saying "Error starting service: The service did not respond to the start or control request in a timely fashion." I…
1
vote
1 answer

Can I call a service inside a service in zf3?

I am really new into frameworks and into ZF3, but I need to make a API, with the following logic. I receive parameters, I store them in an bd and if the call is action is to be made at this point(call Manager), I send it to the (provider caller). I…
ines pelaez
  • 473
  • 1
  • 3
  • 10
1
vote
2 answers

ZF3 - Call a function with parameters in factories' Module class

I'm new in ZendFramework3 and I just want to know if it's possible to call a function with more arguments than just the serviceManager in factories (within my Module class) : (Is it possible to pass an argument next to the $sm argument?) //class…
1
vote
1 answer

How to replace a ZF2 class with a custom one in Zend Framework?

In Zend Framework 2 it's quite easy to use a custom class instead of an invocable one from the framework. E.g. a ViewHelper: namespace Application; ... class Module { public function onBootstrap(MvcEvent $mvcEvent) { $application =…
automatix
  • 14,018
  • 26
  • 105
  • 230
1
vote
2 answers

ZF2 - Loading Models in Service Manager

In my module config file, I have these lines that loads libraries and models into ServiceManager so that I can retrieve them in Controllers. You can see all my models require same dependency. May I ask, how can I inject them without these repetitive…
Tony
  • 425
  • 1
  • 5
  • 12
1
vote
1 answer

ZF2 Error trying to use ZfcUser\Service\User::register method to register User from another controller

I want to register a user using ZfcUser and add a model to the database within one form. So I extended the registration form and validate the data by giving the postdata to different forms like this: namespace Application\Controller; use…
DonL
  • 123
  • 6
1
vote
1 answer

Making stand-alone ZF module invokable in non-ZF application via Service Layer

I have created a Zend Framework Module which manages a set of DB and filesystem operations. I have managed to get a 100% Test Coverage (with mocked databases) and I would like to test the integration of this module into a testing environment. I have…
1
vote
3 answers

Zend Framework 2 Inject Service Manager into Fieldset

I just update my ZF2 to V2.1.4 so that I can use the init method of the Zend\Form class for inject the ServiceLocator into FieldSet as explains the Zend documentation. I have in the Global.php and Module.php files a definitions of Database driver…
1
vote
1 answer

Where is the ServiceManager object initialized in the Zend Framework 2 User Guide?

In the album example of the Zend Framework 2 User Guide the model is configured like this:
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
0 answers

Can a user at the linux shell check whether sd_watchdog is enabled?

Is there a way to check from the command line whether the service manager expects. watchdog keep-alive notifications from a service; as in a command that makes this…
Black
  • 5,023
  • 6
  • 63
  • 92
0
votes
1 answer

can I simply edit a linux *.service file and restart the service to configure it?

I have an application that regularly sends sd_notify signals to the Service Manager that it is running. I found the myapp.service file currently residing at: /usr/lib/systemd/system/myapp.service It has the WatchdogSec line commented out…
Black
  • 5,023
  • 6
  • 63
  • 92
0
votes
1 answer

SMLETS: Powershell

We want to generate an SR per row based on the criteria of a CSV file looking like: SR templete The additional criteria: if the SLO countdown is less than 7 days then the due date is always 7 days for the ticket to be due. Otherwise then then…