Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Fix reinstall/upgrade on OS X Yosemite, El Capitan #505

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ktheory
Copy link
Contributor

@ktheory ktheory commented May 8, 2015

Fixes #473

When running the install script multiple times on Yosemite (10.10), the
launchctl bootstrap commands fail with a 133 exit code and a message
“Operation already in progress”.

I’ve found that the bootstrap/enable commands can be replaced with
load -Fw to ensure the job is running.

kickstart -k is still needed to restart the job in the case of an
upgrade or re-installation.

NB: I'm not very familiar w/ launchctl and I couldn't find much documentation beyond the man page.

I'm also not sure why or if the -F force flag is needed for load, but I saw it used elsewhere, and it doesn't seem to hurt.

This is tested on the latest public version of OS X Yosemite, 10.10.3.

Fixes basecamp#473

When running the install script multiple times on Yosemite (10.10), the
`launchctl bootstrap` commands fail with a 133 exit code and a message
“Operation already in progress”.

I’ve found that the `bootstrap`/`enable` commands can be replaced with
`load -Fw` to ensure the job is running.

`kickstart -k` is still needed to restart the job in the case of an
upgrade or re-installation.
@ktheory
Copy link
Contributor Author

ktheory commented Jul 22, 2015

Ping! 👋 Would be great to get this released and avoid the gotcha of silently failing when upgrading and reinstalling pow.

Anything I can do to make it easier to merge?

@amrit
Copy link

amrit commented Jul 22, 2015

+1 on this fix!

@bramski
Copy link

bramski commented Dec 22, 2015

+1 Nothing on pow since Oct 2014.

@ktheory
Copy link
Contributor Author

ktheory commented Feb 23, 2016

If others want to use this fix (so you can run the install script idempotently), use:

curl https://raw.githubusercontent.com/ktheory/pow/fix-launchctl-bootstrap/install.sh | sh

@ktheory
Copy link
Contributor Author

ktheory commented Apr 13, 2016

FYI, this fix also applies to El Capitan.

@ktheory ktheory changed the title Fix reinstall/upgrade on OS X Yosemite Fix reinstall/upgrade on OS X Yosemite, El Capitan Apr 13, 2016
@birajendunetskope
Copy link

if you use sudo launchctl load -Fw, you don't need to use kick start

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

Successfully merging this pull request may close these issues.

Installing pow on Yosemite fails silently at launchctl bootstrap
4 participants