![]() Bin / fusermount -uz / home / plex / acd-sorted Then a ** mount.sh ** script containing the following code to be executed via ** chmod + x ** ! / Bin / sh encfspass file that will contain only the encfs password. We will create a script that allows to trace all this via cron after a reboot. We will then run this script every 6 minutes via cron, a time between each sync is at least 5 minutes. # Push = pb.push_note ("ACD mount back up", "restart successful") Subprocess.call (, stdin = None, stdout = DEVNUL $ Subprocess.call (, stdin = None, stdout = DEVNULL) # Push = pb.push_note ("ACD mount down", "attempting restart") # Subprocess.call (, stdin = None, stdout = DEVNULL)Įxists = os.path.exists ("/ home / plex /. ![]() #pb = Pushbullet ('pushbullet-api-key-here') Logging.basicConfig (filename = 'acdmount.log', level = logging.INFO, format = '% (asctime) s% (levelname) s% automount.py with the code I modified the script but the source is here : Import os The first one, very simple, will execute an acd_cli sync immediately followed by a python script that will verify if the assembly has planted and reassembled if necessary. The main fault is as explained above, acd_cli sync, which has a tendency to plan the mount point, which prevents to simply place an acd_cli in a crontab.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |