Skip to content

Instantly share code, notes, and snippets.

@MorphyDK
Last active January 3, 2023 14:48
Show Gist options
  • Select an option

  • Save MorphyDK/aedcdc8bb6877aec39f08e980d9f68e7 to your computer and use it in GitHub Desktop.

Select an option

Save MorphyDK/aedcdc8bb6877aec39f08e980d9f68e7 to your computer and use it in GitHub Desktop.
Mergerfs service file
[Unit]
Description=Megerfs Service
Requires=rclonemount.service
After=rclonemount.service
RequiresMountsFor=/home/plex/mnt
[Service]
Type=forking
User=plex
Group=plex
ExecStart=/usr/bin/mergerfs /home/plex/move:/home/plex/mnt /home/plex/media -o rw,use_ino,allow_other,func.getattr=newest,category.action=all,category.create=ff,cache.files=auto-full
ExecStop=/home/plex/mnt
Restart=on-failure
[Install]
WantedBy=multi-user.target
@airone01
Copy link

airone01 commented Jan 3, 2023

Thanks 👍

@MorphyDK
Copy link
Author

MorphyDK commented Jan 3, 2023

Updated with some minor changes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment