summaryrefslogtreecommitdiff
path: root/node-startup-controller
Commit message (Collapse)AuthorAgeFilesLines
* systemd: add Install sectionErik Botö2018-01-221-0/+3
| | | | Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
* Fix license headers causing XML formatting errorsJonathan Maw2016-09-211-1/+1
| | | | | | In some versions of python, the XML parser was unable to cope with the XML identifier coming after the comment that contained the license header.
* Change docs license to CC-BY-SA 4.0 and update licensing to GENIVI standardJonathan Maw2015-04-3016-75/+244
| | | | | | | | | | | | | | | | The previous docs format, CC 1.0, is not recommended by GENIVI, and the preferred one is CC-BY-SA 4.0. Other license changes are: * Add Creative Commons copyright headers to documentation. * Add copyright headers to test code. * Add copyright headers to dbus XML that belongs to the NSC. * Update copyright headers to GENIVI's standard. Notable exceptions are: * dbus XML that is used to communicate with other services (e.g. common/nsm-consumer-dbus.xml) has not had copyright statements added, because the Node Startup Controller does not own that interface.
* Remove BusName from systemd service file.Erik Botö2015-01-051-1/+0
| | | | | | | Remove the use of BusName from service file since this is only valid for Type=dbus and generates a warning on each boot. Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
* Unify spelling of focussed.targetErik Botö2014-12-041-1/+1
| | | | | | | Make sure we use the same spelling of focussed in all places to avoid confusion. Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
* Fix missing break statement in NSC application get propertyJonathan Maw2013-01-071-0/+1
| | | | | | | | | This missing break previously caused the method node_startup_controller_application_get_property() to return the Legacy App Handler when asked to get the Node Startup Controller. Signed-off-by: Jonathan Maw <jonathan.maw@codethink.co.uk> Reviewed-by: Jannis Pohlmann <jannis.pohlmann@codethink.co.uk>
* Emit "luc-group-started" even if failing to read the LUCJannis Pohlmann2012-10-111-0/+6
| | | | | | | | | | If we don't do this, the callback provided by the application will not always be called and thus, sd_notify() will only be called if reading the LUC is attempted. That breaks starting the NSC service through systemd. Signed-off-by: Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> Reviewed-by: Jonathan Maw <jonathan.maw@codethink.co.uk>
* Make systemd respond to "READY" notifications from the NSC (GT-2212)Jonathan Maw2012-09-251-1/+1
| | | | | The type of the systemd service is now "notify", because systemd ignores the "READY=1" notification for all other service types.
* Rename all com.contiautomotive to org.geniviJonathan Maw2012-08-103-6/+6
|
* Expand description of the NodeStartupControllerServiceJonathan Maw2012-08-101-4/+22
| | | | | | Expands the description to explain what it does when it receives the "handle-begin-lucregistration", "handle-register-with-luc" and "handle-finish-lucregistration" signals.
* Expand description of the LAHandlerServiceJonathan Maw2012-08-101-16/+42
| | | | | Includes a step-by-step description of what happens when it receives a method call.
* Expand description for TargetStartupMonitorFrancisco Redondo Marchena2012-08-101-10/+14
|
* Expand description of the LUCStarterFrancisco Redondo Marchena2012-08-101-15/+39
| | | | | Includes a step-by-step description of how to start the Last User Context.
* Expand documentation for JobManagerJonathan Maw2012-08-101-2/+13
|
* Remove the list of units and create D-Bus proxy only for wanted targetsFrancisco Redondo Marchena2012-08-091-25/+12
| | | | | | | | | | | | | | Remove the list of units which is not longer used. When the TargetStarterMonitor receives a "job-removed" signal it creates a D-Bus proxy to monitor the unit and check if the state changes to "active". If it does the TargetStartupMonitor sets the node state. The TargetStarterMonitor is only interested in monitoring "focussed.target", "unfocussed.target" and "lazy.target" units. To avoid creating the D-Bus proxy for unneeded units, it should check in target_startup_monitor_job_removed if the unit is a unit which has to be monitored.
* Add callbacks that log when bus names are acquired or lostJonathan Maw2012-08-091-1/+34
| | | | Callbacks added to both the Node Startup Controller and the NSM Dummy
* Edit docs for NodeStartupControllerApplication to be more elaborateJonathan Maw2012-08-081-5/+26
| | | | | Rewrites the description of the NodeStartupControllerApplication to be more explicit in what it contains and what it does.
* Fix minor bugs in NodeStartupControllerApplication's SIGINT handlerJonathan Maw2012-08-081-3/+3
| | | | | | | | The SIGINT handler did not cancel the LUCStarter, it does now. The SIGINT handler made the application quit, but the asynchronous call to deregister its shutdown consumer from the Node State Manager does that when it is finished.
* Fix segmentation faults and remove an unused variableFrancisco Redondo Marchena2012-08-082-3/+4
| | | | | | | | | | | | Fix a segmentation fault in target_startup_monitor_finalize caused by freeing the data of a list item instead of the actual unit list we want to free. Fix another possible segmentation fault in la_handler_service_handle_consumer_lifecycle_request_finish caused by logging a message using the wrong GError. Remove an unused variable in la_handler_service_handle_register.
* Add documentation for the GLib extension functionsFrancisco Redondo Marchena2012-08-081-0/+48
|
* Document the NodeStartupControllerService classJonathan Maw2012-08-081-0/+64
|
* Remove empty lines in node-startup-controller-application.cFrancisco Redondo Marchena2012-08-081-3/+0
|
* Document arguments and remove old function prototype of LAHandlerServiceJonathan Maw2012-08-082-11/+11
| | | | | | | | Previous documentation of the LAHandlerService omitted explaining the @service arguments. A function prototype existed in the header for the LAHandlerService and was included in the documentation, but was never used or defined.
* Document the LUCStarter classFrancisco Redondo Marchena2012-08-081-1/+39
|
* Add documentation for the NodeStartupControllerApplication classFrancisco Redondo Marchena2012-08-071-0/+31
|
* Improve class documentation a bitJannis Pohlmann2012-08-073-8/+9
|
* Add documentation to the TargetStartupMonitor classJonathan Maw2012-08-071-0/+35
|
* Fix name of the LAHandlerService class in the docs and in NEWSJannis Pohlmann2012-08-071-1/+1
|
* Add docuumentation to the la-handler-service classJonathan Maw2012-08-071-1/+56
|
* Add an explanation of the JobManagerCallbackJonathan Maw2012-08-071-0/+12
|
* Add documentation for JobManager's constructorJonathan Maw2012-08-071-1/+10
|
* Document purpose and start/stop methods of job managerJonathan Maw2012-08-071-0/+29
|
* Fix minor alignment issue in glib-extensions.cJonathan Maw2012-08-071-1/+1
| | | | | | g_variant_string_array_has_string was partly aligned using tabs, which only looks good when tab width is set to two spaces. Tabs have now been replaced with spaces.
* Simplify g_variant_lookup_value_with_int_keyFrancisco Redondo Marchena2012-08-071-38/+14
| | | | | An implementation custom-tailored towards "{ias}" dictionaries is sufficient for us.
* Remove the bus_name_id member from LAHandlerServiceFrancisco Redondo Marchena2012-08-061-4/+0
| | | | The bus_name_id member is not longer used in this class.
* Unregister all shutdown consumers when receiving SIGTERMJannis Pohlmann2012-08-061-37/+88
| | | | | | | | | | systemd uses SIGTERM to stop its units. We want to cleanly shut down the NSC when receiving this signal. Part of that is to unregister all shutdown consumers. If we don't do this, the NSM will later during its shutdown phase call all shutdown consumers registered by the NSC. And if the NSC was no longer running, this would cause the NSM to wait for a timeout for every single one of these shutdown consumers. Obviously, that is not desirable.
* Add parentheses in the shutdown mode rejection conditionalsJannis Pohlmann2012-08-031-1/+1
|
* Make shutdown mode registration similar in NSC and helper binaryJonathan Maw2012-08-031-1/+2
| | | | | | | | The shutdown mode checker in the Node Startup Controller now uses the same logging message as the legacy app handler helper binary. The shutdown mode checker in the helper binary now uses the condition statement from the Node Startup Controller
* Make legacy app handler refuse invalid shutdown modesJonathan Maw2012-08-031-0/+11
| | | | | | Added code to the register signal handler to refuse any register signal which is not a combination of NSM_SHUTDOWN_TYPE_NORMAL and NSM_SHUTDOWN_TYPE_FAST and log an error.
* Unregister exported D-Bus objects on finalizationJonathan Maw2012-08-022-0/+4
| | | | | | | | | Adds unregistration to the following services: * legacy app handler * shutdown client * node startup controller * nsm dummy lifecycle control * nsm dummy consumer
* Rework log messages a bit to make them more readableJannis Pohlmann2012-08-016-62/+67
|
* Use DLT_LOG_INFO rather than DLT_LOG_DEBUG for everythingJannis Pohlmann2012-08-015-19/+19
| | | | | | We can't get DLT to log our debug messages, setting LoggingLevel to 7 (LOG_DEBUG) in /etc/dlt.conf does not work as expected. So for now we'll have to resort to logging all debug messages as info messages.
* Adjust DLT log levels (info -> debug, some warnings, some errors)Jannis Pohlmann2012-08-016-22/+23
|
* Exclusively use DLT facilities to build log stringsJannis Pohlmann2012-08-016-171/+121
| | | | | We used to build the log strings using g_strdup_printf() but this results in a certain amount of overhead and extra code.
* Fix the name used for the LUCStarter::node-startup-controller propertyJannis Pohlmann2012-08-011-1/+1
|
* Replace g_debug/g_warning calls with DLT loggingJannis Pohlmann2012-08-011-11/+20
|
* Fix small issues in Makefiles to make "make distcheck" happyJannis Pohlmann2012-07-311-2/+3
|
* Rename all remaining bits and piecesJannis Pohlmann2012-07-314-23/+14
|
* Rename service files and boot-manager binaryJannis Pohlmann2012-07-315-23/+23
|
* Rename BMGR DLT app ID to NSC, rename MGR context to CTRLJannis Pohlmann2012-07-315-43/+43
|