generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Dear ec2-macos-init contributors,
I've now tried multiple times (directly through launchd and through ec2-macos-init) to run a simple binary on system boot. This aims to join the machine to an Active Directory, etc... What I managed with this config so far was, that the script got executed correctly - but only a few seconds after a (random) user logged in to the machine - not on boot.
The config looks like this:
[[Module]]
Name = "SetupStartup"
PriorityGroup = 4
[Module.Command]
Cmd = ["/usr/local/bin/startup.sh.x"]
# I've tried this both with root and ec2-user
RunAsUser = "ec2-user"
chmod on the binary is a+x
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested