noelhibbard / node-airplayhub

AirPlay server which accepts streams and then streams the audio back out to multiple AirPlay devices with sync support.
51 stars 12 forks source link

Can't get service to work #9

Open ijffje opened 7 years ago

ijffje commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

ijffje commented 7 years ago

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