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

Why set launched.agents...KeepAlive.Crashed = false #308

Open
DYnamoX513 opened this issue Jan 13, 2025 · 0 comments
Open

Why set launched.agents...KeepAlive.Crashed = false #308

DYnamoX513 opened this issue Jan 13, 2025 · 0 comments

Comments

@DYnamoX513
Copy link

In hm module:

Crashed = false;

causes activate-agent rescheduled every 10 seconds.

$ launchctl print gui/501/org.nix-community.home.activate-agenix                                                                                                                                                                                 
gui/501/org.nix-community.home.activate-agenix = {
        path = /Users/pluto/Library/LaunchAgents/org.nix-community.home.activate-agenix.plist
        type = LaunchAgent
        state = spawn scheduled
        minimum runtime = 10
        exit timeout = 5
        runs = 640 #<<------------ two hours after system reboot
        last exit code = 0
        semaphores = {
                successful exit => 0
                after crash => 0
        }
        spawn type = background (5)
        ...

According to man launchd.plist

Crashed <boolean>
If true, the job will be restarted as long as it exited due to a signal which is typically associated with a crash (SIGILL, SIGSEGV, etc.). If false, the job will be restarted in the inverse condition.
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