Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I prefer to use lunchy to do the launchctl stuff: https://github.com/eddiezane/lunchy

'gem install lunchy' to install it. Your commands would have been eg 'lunchy stop rethinkdb', 'lunchy start rethinkdb' - it matches on substrings. The ln step is handled slightly differently - it doesn't work with lists of files, and installs to two different places, but this is roughly equivalent:

    for f in /usr/local/opt/cassandra/*.plist; do lunchy install -s $f; done
(here the -s flag is symlink rather than copy)


I have much disdain for this solution - even though it is a solution - because its a non-builtin tool and has dependencies outside the OSX sphere in order to run.

I wish there were some sort of Guild of OS Developers that could be relied on to enforce the inclusion of standardized tools in all OS's released by its members. It seems that a lack of an organizing body to enforce these standards - or in Apples' case, any way for the public to influence the standards they dictate - is a real problem with OS development today.

Nevertheless, good to know about lunchy. I will try to remember to check it out some time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: