| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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>
|
| |
|
|
|
|
|
| |
Make sure we use the same spelling of focussed in all places to
avoid confusion.
Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
| |
The type of the systemd service is now "notify", because systemd ignores
the "READY=1" notification for all other service types.
|
| | |
|
| |
|
|
|
|
| |
Expands the description to explain what it does when it receives the
"handle-begin-lucregistration", "handle-register-with-luc" and
"handle-finish-lucregistration" signals.
|
| |
|
|
|
| |
Includes a step-by-step description of what happens when it receives a
method call.
|
| | |
|
| |
|
|
|
| |
Includes a step-by-step description of how to start the Last User
Context.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
Callbacks added to both the Node Startup Controller and the NSM Dummy
|
| |
|
|
|
| |
Rewrites the description of the NodeStartupControllerApplication to
be more explicit in what it contains and what it does.
|
| |
|
|
|
|
|
|
| |
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 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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
| |
An implementation custom-tailored towards "{ias}" dictionaries is
sufficient for us.
|
| |
|
|
| |
The bus_name_id member is not longer used in this class.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
Adds unregistration to the following services:
* legacy app handler
* shutdown client
* node startup controller
* nsm dummy lifecycle control
* nsm dummy consumer
|
| | |
|
| |
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
| |
We used to build the log strings using g_strdup_printf() but this
results in a certain amount of overhead and extra code.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|