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't get service to work #9

Open
ijffje opened this issue Mar 12, 2017 · 3 comments
Open

Can't get service to work #9

ijffje opened this issue Mar 12, 2017 · 3 comments

Comments

@ijffje
Copy link

ijffje commented Mar 12, 2017

Hi,

This is exactly what i have been looking for! However, i got the program to work, but i can't get it to run as a service. When trying to enable the service i get the following error: "Failed to execute operation: Bad message". Any thoughts on how to fix that? (i copied node-airplayhub.service to the right directory).

@noelhibbard
Copy link
Owner

Did you edit the ExecStart line in the service file to match your pathing? The file I supplied looks like this:
ExecStart=/usr/bin/node /usr/lib/node_modules/node-airplayhub/index.js --config=/etc/airplayhub.json

Type: which node to see where your node bin is and then change the service file to match if it isn't in /usr/bin. Also make sure you edit the path to the index.js to match your system. I'm not a Linux guru so I am just making some guesses.

@noelhibbard
Copy link
Owner

I also found this when googling your message:
http://dev.nuclearrooster.com/2013/08/29/systemd-error-reason-bad-message/

@ijffje
Copy link
Author

ijffje commented Mar 13, 2017

Thanks! You pointed me in the right direction. Got it all to work on an old atom n270 nettop running Debian.

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