To prevent socket from closing functionfs endpoints descriptors, the
service should not fail definitely. This patch make it restart on its
own on failure.
To prevent fast restarting in case of repeating failure, the delay is
added to the restart mechanism.
Change-Id: I3db100c6dda88a605f7fbb6e35dc8783cd4d4252
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
[Unit]
Description=MTP responder
+StartLimitIntervalSec=0
[Service]
User=network_fw
SmackProcessLabel=System
USBFunctionDescriptors=/etc/mtp-responder/descs
USBFunctionStrings=/etc/mtp-responder/strs
+RestartSec=3
+Restart=on-failure
[Socket]
ListenUSBFunction=/dev/usb-funcs/mtp/default
Service=mtp-responder.service
+TriggerLimitIntervalSec=0