noelhibbard/node-airplayhub

Can't get service to work

ijffje opened this issue · 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).

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.

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