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

macOS launchd plist #20

Open
caesar opened this issue Aug 21, 2017 · 2 comments
Open

macOS launchd plist #20

caesar opened this issue Aug 21, 2017 · 2 comments

Comments

@caesar
Copy link

caesar commented Aug 21, 2017

Would you accept a pull request with a plist file enabling use of kplex as a daemon on macOS?

I have something I use myself but obviously will do some more testing to make sure it is robust before submitting anything, if you do want to include it in core.

@caesar
Copy link
Author

caesar commented May 20, 2019

Just a note that I have added a homebrew formula for kplex to Pavel's "navutils" tap, including a launchd plist. But if you want to include the plist in this repo instead, that would be another option.

@stripydog
Copy link
Owner

Yes (and hey, sorry it's taking me 3 years to work through my issues list). Happy to include the plist file (submit a pull request) or I can link to Pavel's git repo (or if you have a blog page or website discussing kplex on mac I could link to that). I confess to knowing little about launchd. I note your plist file runs kplex in the foreground, but running it in the foreground means it complains to stderr rather than syslog and then I've been trying to work out where stderr gets sent if you don't explicitly send it somewhere. A brief google suggests that fork/exec with parent then exiting (ie normal daemon process) is not OK for launchd. Maybe I should add in a "don't fork but do log to syslog" option. Any thoughts you have on this appreciated (or maybe we should start a discussion on the google group)

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

2 participants