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
15
votes
2 answers

zf2 ServiceManager vs ServiceLocator

I am learning zf2, reading docs, tutorials etc from the web. Now I am confused regarding Zend\ServiceManager\ServiceManagerAwareInterface.php and Zend\ServiceManager\ServiceLocatorAwareInterface.php. Also in some place (like controller) I use…
M Hill
  • 225
  • 2
  • 6
8
votes
1 answer

Gaining Root Access w/ Elevated Helper & SMJobBless

I'm working on something that needs to install files periodically into a folder in /Library. I understand that in the past I could have used one of the Authenticate methods but those have since been deprecated in 10.7. What I've understood from my…
aroooo
  • 4,726
  • 8
  • 47
  • 81
7
votes
1 answer

how to create a factory in zend framework 2?

in my Module.php i have the fallowing methods that i would like to move them in a factory class so that i wont clutter the Module class: public function getControllerConfig() { return array( 'factories' => array( …
Patrioticcow
  • 26,422
  • 75
  • 217
  • 337
4
votes
1 answer

Add vendor service to ServiceManager with android treble architecture[SELinux policy]

Note: I am beginner in SELinux policy and followed vndservicemanager by Android I have a java service(MyService) that starts on the BootComplete receiver. Now i am adding myservice to ServiceManager in onCreate of…
4
votes
2 answers

How to get the Request object from the ServiceManger in Zend Framework 2?

I'm developing a RESTful application and I want to build a factory that creates the proper ViewModel (Zend\View\Model\ViewModel, Zend\View\Model\JsonModel, my XmlModel) object dependent on the Accept (e.g. -H 'Accept: application/json') parameter in…
automatix
  • 14,018
  • 26
  • 105
  • 230
4
votes
2 answers

Android MediaPlayer AudioStream AudioFlinger server died!, Fatal signal 11

I have two fragments (left and right) and getting in the left fragment a list of Radiostreams. By clicking on one of these streams, the right fragment should change the Name of the Stream and start playing the stream with the given uri. 2…
3
votes
1 answer

Python 3.6 ~ AttributeError: module 'servicemanager' has no attribute 'Initialize' ~ When creating windows service exe

When using any version of servicemanager with Python 3.6.6 I get AttributeError: module 'servicemanager' has no attribute 'Initialize'* Code Snippet: if __name__ == '__main__': if len(sys.argv) == 1: servicemanager.Initialize() …
2
votes
0 answers

Android ServiceManager Waiting for service media.audio_flinger

I am working on an application that uses a video view to show a video. The video plays fine but for some reason on my G2 I am having an issue where after I close the app it will crash if I start it again. My Log is getting flooded with these…
FoamyGuy
  • 46,603
  • 18
  • 125
  • 156
2
votes
1 answer

How to use services for a form fieldset in Zend Framework 2?

I have a form (Zend\Form\Form) with some nested fieldsets (Zend\Form\Fieldset) in it. The construction is pretty similar to that in the Form Collections tutorial. Storage\Form\MyForm |_'Storage\Form\Fieldset\FooFieldset' …
2
votes
0 answers

SCSM 2012 Retrieving Incident Logs SDK

I'm attempting to write some C# to retrieve Incident Logs using the SCSM 2012 SDK. I have successfully been able to retrieve Incidents, Analyst Comments, and Action Logs, but am having issues finding incident logs. The only way I have found to…
2
votes
1 answer

Use another module in our custom helper in zend framework 2

I want to use WebinoImageThumb moudle in my custom helper , but when I want to create an instance of this module in helper factories I got this error : Zend\View\HelperPluginManager::get was unable to fetch or create an instance for…
Mostafa Solati
  • 1,235
  • 2
  • 13
  • 33
2
votes
5 answers

How to get a reference to the service manager inside the Module's init method (ZF2)?

I need that some code be executed before any MvcEvent::EVENT_BOOTSTRAP listener get execute. Evidently Module::onBootstrap is no an option. I end with the following code: class Module { function init(\Zend\ModuleManager\ModuleManager…
user1785721
2
votes
1 answer

Zend Framework 2 Service Manager

Does anyone know how to pass an instance of a custom Service Manager between 2 actions? As the Zend Framework 2 documentation says, a SM will preserve it's instance if the 'shared' option inside the Module.php class will not be set to false.…
Andrei Stalbe
  • 1,511
  • 6
  • 26
  • 44
2
votes
1 answer

Class not recognized by initializer

I'm pretty new to zf2 but I already setup a site working with it. I got some understanding of the serviceManager but now I'm stuck. Here is the context : I want to implement a logger available on any class of my zf2 application. In my global.php I…
2
votes
3 answers

ZendFramework 2.0.0beta4 Service Manager Configuration - Difference between sub-keys

EDIT: a few weeks after I posted this question Evan Coury wrote an excellent blog post on the topic of the ZF2 ServiceManager, which is where I found the best answers to my questions:…
Alex Ross
  • 3,729
  • 3
  • 26
  • 26
1
2 3 4 5