ostroproject / swupd-daemon Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
when idle (ie: no subprocess or clients connected), then the server must gracefully exit to save resources. DBus activation will take care to automatically re-launch it. See what systemd-localed and the likes do.
Ensure that systemd service and dbus services link to each other by means of BusName and SystemdUnitName
The daemon should be able to be enabled or disabled (with dependencies being required/not required based on that) when integrated with swupd-client.
Since this project will be merged in swupd-client, they do not want to depend on glib but are okay with libsystemd, since systemd is a core component of both Ostro and ClearLinux.
The sd-bus.h
is very easy to use for both client and server. See an introdution at http://0pointer.de/blog/the-new-sd-bus-api-of-systemd.html and full header at https://github.com/systemd/systemd/blob/master/src/systemd/sd-bus.h
For the main loop concept you can use other parts of libsystemd, like sd-event.h
(https://github.com/systemd/systemd/blob/master/src/systemd/sd-event.h)
verify if the line we execute is injection-proof, that is. It may be tricky if we use "system(3)-like" calls, since it could use envvars and $() or ;. It's safer to directly call the binary giving the command array as execve().
(This is more of a reminder, didn't investigate if this is possible with current code)
since the idea is to replace swupd without breaking user experience, our dbus client should be a drop-in replacement that talks to the actual swupd via the dbus daemon.
This includes progressive delivery of swupd output, so we can get lots and progress on slow downloads and updates.
It is essential to get this merged into swupd-clienti itself, this way clr could use it by default.
TODO: If the client dies, the server may need to cancel the operation? Is it safe?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.