linux-automation / usbsdmux

USB-SD-Mux Project - Driver and Documentation
GNU Lesser General Public License v2.1
66 stars 19 forks source link

Socket-activated systemd service for non-root use of usbsdmux #3

Closed SmithChart closed 6 years ago

SmithChart commented 6 years ago

These commits introduce a socket-activated systemd service. This service acts as a proxy for commands to the USB-SD-Mux. Using the proxy enables non-root users to control the USB-SD-Mux from their context.

A socket-activated service is used to reduce load on systems where the USB-SD-Mux is only used sporadically.

The command line interface of the usbsdmuxtool is left unchanged as far as possible:

Communication over the socket is done JSON-encoded.

SmithChart commented 6 years ago

@jluebbe: I had a look at your comments and fixed the issues. Could you have another look at it?