From Morose Camel, 4 Months ago, written in Plain Text.
  1. [Unit]
  2. Description=My flashdrive script trigger
  3. Requires=media-My\x20HD.mount
  4. After=media-My\x20HD.mount
  5.  
  6. [Service]
  7. User=myusername
  8. EnvironmentFile=/home/.myconf
  9. ExecStart=/opt/myscript
  10.  
  11. [Install]
  12. WantedBy=media-My\x20HD.mount
captcha