Advertisement
schmittyd

union-tv.service

May 1st, 2019 (edited)
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. [Unit]
  2. Description=UnionFS TV Mount
  3. AssertPathIsDirectory=/union/tv
  4. #AssertPathIsDirectory=/cloud/flix/media
  5. Requires=gdrive-tv.service
  6.  
  7. [Service]
  8. User=media
  9. Group=flix
  10. Type=forking
  11. ExecStart=/usr/bin/unionfs -o cow,allow_other,direct_io,auto_cache,sync_read,relaxed_permissions,nonempty /media/tv=RW:/gdrive/tv=RO /union/tv
  12. ExecStop=/bin/fusermount -uz /union/tv
  13. Restart=on-failure
  14. RestartSec=3
  15. StartLimitInterval=2
  16. StartLimitBurst=5
  17.  
  18. [Install]
  19. WantedBy=default.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement