improve working directory and syslog
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 20 Aug 2021 09:21:27 +0000 (11:21 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 20 Aug 2021 09:21:27 +0000 (11:21 +0200)
usb-otg.service

index ba9701a..0fb0bfd 100644 (file)
@@ -1,6 +1,7 @@
 [Unit]
 Description=USB OTG gadgets
 Documentation=https://github.com/dpavlin/linux-usb-otg
 [Unit]
 Description=USB OTG gadgets
 Documentation=https://github.com/dpavlin/linux-usb-otg
+After=systemd-udev-settle.service
 
 [Service]
 User=root
 
 [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
 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]
 
 [Install]
-WantedBy=multi-user.target
+WantedBy=basic.target