From 6f6be72bf1a825d78a88a70da3f13b83efd35b0e Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 20 Aug 2021 11:21:27 +0200 Subject: [PATCH] improve working directory and syslog --- usb-otg.service | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usb-otg.service b/usb-otg.service index ba9701a..0fb0bfd 100644 --- a/usb-otg.service +++ b/usb-otg.service @@ -1,6 +1,7 @@ [Unit] Description=USB OTG gadgets Documentation=https://github.com/dpavlin/linux-usb-otg +After=systemd-udev-settle.service [Service] User=root @@ -8,6 +9,11 @@ Type=oneshot RemainAfterExit=yes ExecStart=/srv/linux-usb-otg/usb-composite-all.sh ExecStop=/srv/linux-usb-otg/usb-gadget-stop.sh +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=usb-otg +# where will usbdisk.img go +WorkingDirectory=/srv/linux-usb-otg [Install] -WantedBy=multi-user.target +WantedBy=basic.target -- 2.20.1