Skip to content

Instantly share code, notes, and snippets.

@alloydwhitlock
Last active December 1, 2025 00:56
Show Gist options
  • Select an option

  • Save alloydwhitlock/aa32f5b3a8e60875545b6e9a3efba901 to your computer and use it in GitHub Desktop.

Select an option

Save alloydwhitlock/aa32f5b3a8e60875545b6e9a3efba901 to your computer and use it in GitHub Desktop.
com.user.mountnas.plist
# ~/Library/LaunchAgents/com.user.mountnas.plist
#
# To set on launch:
# launchctl load ~/Library/LaunchAgents/com.user.mountnas.plist
#
# Oh, these comments gotta be deleted. This is a plist and this
# forced you to read this.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.mountnas</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/mount-nas.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/mountnas.err</string>
<key>StandardOutPath</key>
<string>/tmp/mountnas.out</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment