Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The amazon-efs-utils formulae post install steps is the wrong launchd Job #27

Open
thimslugga opened this issue Sep 30, 2023 · 0 comments

Comments

@thimslugga
Copy link
Contributor

thimslugga commented Sep 30, 2023

The amazon-efs-utils formulae provides additional steps on post install. Currently the user is supposed to copy the amazon-efs-mount-watchdog.plist to the /Library/LaunchAgents directory.

issue 1

This should be updated to refer to /Library/LaunchDaemons as LaunchAgents are intended for per-user agents that run on behalf of a user when they they login to the system. LaunchDaemons will run on system startup and without a user logged in to the system.

issue 2

The launchctl load .. and launchctl unload .. commands are considered deprecated and should be updated.

Current:

To enable watchdog for TLS mounts:
  sudo cp #{libexec}/amazon-efs-mount-watchdog.plist /Library/LaunchAgents
  sudo launchctl load /Library/LaunchAgents/amazon-efs-mount-watchdog.plist

To disable watchdog for TLS mounts:
  sudo launchctl unload /Library/LaunchAgents/amazon-efs-mount-watchdog.plist

Updated

To enable watchdog for TLS mounts:
  sudo cp #{libexec}/amazon-efs-mount-watchdog.plist /Library/LaunchDaemons
  sudo launchctl bootstrap system /Library/LaunchDaemons/amazon-efs-mount-watchdog.plist

To disable watchdog for TLS mounts:
  sudo launchctl bootout system /Library/LaunchDaemons/amazon-efs-mount-watchdog.plist

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant