-
Notifications
You must be signed in to change notification settings - Fork 6
Home
macmounter is basically a mounting workflow engine. macmounter doesn't know about the internals of any mounting protocols, but relies on commands you specify to do the mounting.
The main goal is to automatically mount remote folders on login, and keep them mounted.
For instance, for a samba (smbfs) mount, we would need to specify a config file with something like this:
[example.com]
PRE_MOUNT_CMD=/bin/mkdir -p /Volumes/example
MOUNT_CMD=/sbin/mount -t smbfs //roubles@example.com/remotefolder /Volumes/example
The important thing to realize is that macmounter, just orchestrates the PRE_MOUNT_CMD and MOUNT_CMD and does not know lick about samba.
All config files are stored in the ~/.macmounter folder. They are in the standard python config file format and contain sections, keys and values. Each config file can have one or multiple sections. Each section is treated as a separate remote folder to mount.
macmounter launches one thread per section in config file. This thread will constantly monitor the config file. If any changes are made to the config file they will be picked up instantly. If you add new sections, threads will be added. If you remove sections, threads will be nuked.
macmounter will constantly monitor the ~/.macmounter folder for new config files, changed config files and deleted config files. There should be no need to ever restart macmounter. Though, macmounter does support the HUP signal, and will internally restart on receiving a SIGHUP.
macmounter supports a well defined mounting workflow and supported by a set of keys. They are documented in the following links. It is the users responsibility to come with the actual command line commands they want to insert.
Workflow
All the configuration keys are covered in the sample configs.
Example configs
All log files are in ~/Library/Application Support/macmounter/macmounter.log. These logs should send you in the right direction if you are troubleshooting why mounts are not sticking.