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

Can you fix the --on-start --on-stop options? #7

Closed
mikebrady opened this issue Sep 1, 2014 · 5 comments
Closed

Can you fix the --on-start --on-stop options? #7

mikebrady opened this issue Sep 1, 2014 · 5 comments
Assignees
Labels

Comments

@mikebrady
Copy link
Owner

This is from abrasive#296 (comment):

Btw can you fix the --on-start --on-stop options?
with the commandline /usr/local/bin/shairport -d -a hostname --wait-cmd --on-start='/usr/local/bin/mpc -q stop' -- -d plughw:0,0 I get:
/usr/local/bin/shairport: invalid option -- 'q'
/usr/local/bin/shairport -d -a hostname --wait-cmd --on-start="/usr/local/bin/mpc -q stop" -- -d plughw:0,0 -- -d plughw:0,0 doesn't give the invalid option but doesn't work either. The same happens with /usr/local/bin/shairport -d -a hostname --wait-cmd --on-start='/usr/local/bin/mpc\ -q\ stop' -- -d plughw:0,0

It works with the official version, and also when I merged the on-start/stop/wait commit myself into shairport-sync 2.0. Of course I see why it doesn't work, and I could just make a script, but..

@mikebrady
Copy link
Owner Author

Would you be kind enough to let me have the merge, even if it's out of date? It'll probably save me a lot of time.

@mantheman
Copy link

Seems I just merged the -w / --wait-cmd option to the 2.0 code. So that means one of your later commits broke the parsing of (--on-start) probably. btw I get the "exec of external start command failed" even if it succeeds, but that also happens on the official one shairport. (I just make it quiet anyways)

http://pastebin.com/DXxnqaQM

@mikebrady
Copy link
Owner Author

Thanks. I changed the start/stop code quite a bit from 2.0, so the patch wasn't really applicable. However, I pushed an update which, I think, fixes the problem, and should not result in those bogus (?) error messages. Let me know.

@mantheman
Copy link

It works properly now. Also fixed the bogus error messages. Great!

@mikebrady
Copy link
Owner Author

Great.

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

No branches or pull requests

2 participants