node-airplayhub icon indicating copy to clipboard operation
node-airplayhub copied to clipboard

Can't get service to work

Open ijffje opened this issue 7 years ago • 3 comments

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).

ijffje avatar Mar 12 '17 18:03 ijffje

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 avatar Mar 13 '17 18:03 noelhibbard

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

noelhibbard avatar Mar 13 '17 18:03 noelhibbard

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

ijffje avatar Mar 13 '17 19:03 ijffje