Skip to content

Service wont start on boot #9

@kayatf

Description

@kayatf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions