mirror of
https://github.com/daniviga/django-ram.git
synced 2026-03-21 15:52:30 +01:00
Manage dcc-usb-connector auto-stop on removal
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
[Unit]
|
||||
Description=DCC USB-to-Network Bridge Daemon
|
||||
After=network.target
|
||||
# Device will be available via udev rule, but add condition as safety check
|
||||
ConditionPathIsReadWrite=/dev/ttyUSB0
|
||||
# Stop this service when the device is no longer needed (removed)
|
||||
StopWhenUnneeded=yes
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/bin/stty -F /dev/ttyUSB0 -echo 115200
|
||||
|
||||
Reference in New Issue
Block a user